1 | <?php |
||
15 | class Connection extends \yii\db\Connection |
||
16 | { |
||
17 | /** |
||
18 | * Firebird server version |
||
19 | */ |
||
20 | public $firebird_version = null; |
||
21 | |||
22 | /** |
||
23 | * @see https://www.firebirdsql.org/file/documentation/release_notes/html/en/3_0/rnfb30-ddl-enhance.html#rnfb30-ddl-identity |
||
24 | * @var boolean|null |
||
25 | */ |
||
26 | public $supportColumnIdentity = null; |
||
27 | |||
28 | /** |
||
29 | * @see https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-dml-insert.html#fblangref25-dml-insert-select-unstable |
||
30 | * @var boolean|null |
||
31 | */ |
||
32 | public $supportStableCursor = null; |
||
33 | |||
34 | /** |
||
35 | * @see https://bugs.php.net/bug.php?id=72931 |
||
36 | * @var boolean|null |
||
37 | */ |
||
38 | public $supportReturningInsert = null; |
||
39 | |||
40 | /** |
||
41 | * @see https://bugs.php.net/bug.php?id=61183 |
||
42 | * @var boolean|null |
||
43 | */ |
||
44 | public $supportBlobDataType = null; |
||
45 | |||
46 | /** |
||
47 | 138 | * @inheritdoc |
|
48 | */ |
||
49 | 138 | public $schemaMap = [ |
|
50 | 'firebird' => 'edgardmessias\db\firebird\Schema', // Firebird |
||
51 | ]; |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public $pdoClass = 'edgardmessias\db\firebird\PdoAdapter'; |
||
57 | |||
58 | 6 | /** |
|
59 | * @inheritdoc |
||
60 | 6 | */ |
|
61 | public $commandClass = 'edgardmessias\db\firebird\Command'; |
||
62 | 6 | /** |
|
63 | 6 | * @var Transaction the currently active transaction |
|
64 | */ |
||
65 | 6 | private $_transaction; |
|
66 | |||
67 | 6 | /** |
|
68 | * Returns the currently active transaction. |
||
69 | * @return Transaction the currently active transaction. Null if no active transaction. |
||
70 | 263 | */ |
|
71 | public function getTransaction() |
||
75 | 263 | ||
76 | 263 | /** |
|
77 | * Starts a transaction. |
||
78 | 160 | * @param string|null $isolationLevel The isolation level to use for this transaction. |
|
79 | * See [[Transaction::begin()]] for details. |
||
80 | 160 | * @return Transaction the transaction initiated |
|
81 | */ |
||
82 | 160 | public function beginTransaction($isolationLevel = null) |
|
93 | |||
94 | public function close() |
||
101 | |||
102 | public function init() |
||
134 | |||
135 | /** |
||
136 | * Reset the connection after cloning. |
||
137 | */ |
||
138 | public function __clone() |
||
144 | } |
||
145 |