1 | <?php |
||
7 | abstract class AbstractMysqlDriver implements MysqlDriverInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var AdapterInterface |
||
11 | */ |
||
12 | protected $adapter; |
||
13 | |||
14 | /** |
||
15 | * Schema name. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $schema; |
||
20 | |||
21 | /** |
||
22 | * Used to restore innodb stats mysql global variable. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $mysql_innodbstats_value; |
||
27 | |||
28 | /** |
||
29 | * @param AdapterInterface $adapter |
||
30 | * @param string $schema database name |
||
31 | */ |
||
32 | 23 | public function __construct(AdapterInterface $adapter, $schema) |
|
37 | |||
38 | /** |
||
39 | * Disable innodbstats will increase speed of metadata lookups. |
||
40 | */ |
||
41 | 4 | protected function disableInnoDbStats() |
|
61 | |||
62 | /** |
||
63 | * Restore old innodbstats variable. |
||
64 | */ |
||
65 | 4 | protected function restoreInnoDbStats() |
|
73 | } |
||
74 |