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) |
|
59 | |||
60 | /** |
||
61 | * Shows the list of tables. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | 6 | public function showTables() |
|
82 | |||
83 | /** |
||
84 | * Prepares the columns that have foreign keys. |
||
85 | * |
||
86 | * @param array &$columns |
||
87 | * @param object $row |
||
88 | */ |
||
89 | 12 | protected function setForeignColumn(array &$columns, $row) |
|
102 | |||
103 | /** |
||
104 | * Prepares the query for getting the foreign columns. |
||
105 | * |
||
106 | * @param array $columns |
||
107 | * @param string $tableName |
||
108 | * @return array |
||
109 | */ |
||
110 | 12 | protected function prepareForeignColumns(array $columns, $tableName) |
|
123 | |||
124 | /** |
||
125 | * Sets the properties of the specified column. |
||
126 | * |
||
127 | * @param mixed $row |
||
128 | * @param \Rougin\Describe\Column &$column |
||
129 | * @return void |
||
130 | */ |
||
131 | 12 | protected function setProperties($row, Column &$column) |
|
142 | } |
||
143 |