1 | <?php |
||
16 | class SQLiteDriver implements DriverInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var \PDO |
||
20 | */ |
||
21 | protected $pdo; |
||
22 | |||
23 | /** |
||
24 | * @param PDO $pdo |
||
25 | */ |
||
26 | 18 | public function __construct(\PDO $pdo) |
|
30 | |||
31 | /** |
||
32 | * Returns the result. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 12 | public function getTable($table) |
|
68 | |||
69 | /** |
||
70 | * Shows the list of tables. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | 6 | public function showTables() |
|
91 | |||
92 | /** |
||
93 | * Prepares the columns that have foreign keys. |
||
94 | * |
||
95 | * @param array &$columns |
||
96 | * @param object $row |
||
97 | */ |
||
98 | 12 | protected function setForeignColumn(array &$columns, $row) |
|
111 | |||
112 | /** |
||
113 | * Sets the properties of the specified column. |
||
114 | * |
||
115 | * @param mixed $row |
||
116 | * @param \Rougin\Describe\Column &$column |
||
117 | * @return void |
||
118 | */ |
||
119 | 12 | protected function setProperties($row, Column &$column) |
|
130 | } |
||
131 |