1 | <?php |
||
16 | class SQLiteDriver implements DriverInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var \PDO |
||
20 | */ |
||
21 | protected $pdo; |
||
22 | |||
23 | /** |
||
24 | * @param PDO $pdo |
||
25 | */ |
||
26 | 21 | public function __construct(\PDO $pdo) |
|
30 | |||
31 | /** |
||
32 | * Returns the result. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 15 | public function getTable($table) |
|
63 | |||
64 | /** |
||
65 | * Shows the list of tables. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 6 | public function showTables() |
|
86 | |||
87 | /** |
||
88 | * Prepares the columns that have foreign keys. |
||
89 | * |
||
90 | * @param array &$columns |
||
91 | * @param object $row |
||
92 | */ |
||
93 | 12 | protected function setForeignColumn(array &$columns, $row) |
|
106 | |||
107 | /** |
||
108 | * Prepares the query for getting the foreign columns. |
||
109 | * |
||
110 | * @param array $columns |
||
111 | * @param string $tableName |
||
112 | * @return array |
||
113 | */ |
||
114 | 15 | protected function prepareForeignColumns(array $columns, $tableName) |
|
127 | |||
128 | /** |
||
129 | * Sets the properties of the specified column. |
||
130 | * |
||
131 | * @param mixed $row |
||
132 | * @param \Rougin\Describe\Column &$column |
||
133 | * @return void |
||
134 | */ |
||
135 | 12 | protected function setProperties($row, Column &$column) |
|
146 | } |
||
147 |