Conditions | 1 |
Paths | 1 |
Total Lines | 3 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function getForeignKeys($tableName, $pkName, $dbName = null): array { |
||
16 | $recordset = $this->dbInstance->query ( "SELECT \"TABLE\" as TABLE_NAME , \"to\" as COLUMN_NAME , \"from\" as REFERENCED_TABLE_SCHEMA FROM pragma_foreign_key_list('".$tableName."') WHERE \"to\"='".$pkName."';"); |
||
17 | return $recordset->fetchAll ( \PDO::FETCH_ASSOC ); |
||
18 | } |
||
48 |