1 | <?php |
||
15 | class Database extends \PDO |
||
16 | { |
||
17 | /** |
||
18 | * The current transaction level. |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $transLevel = 0; |
||
23 | |||
24 | /** |
||
25 | * Check database drivers that support savepoints. |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function nestable() |
||
35 | |||
36 | /** |
||
37 | * @return bool|void |
||
38 | */ |
||
39 | public function beginTransaction() |
||
49 | |||
50 | /** |
||
51 | * @return bool|void |
||
52 | */ |
||
53 | public function commit() |
||
63 | |||
64 | /** |
||
65 | * @return bool|void |
||
66 | * @throws \LogicException |
||
67 | */ |
||
68 | public function rollBack() |
||
82 | } |
||
83 |