Protected Member Functions | |
initTables () | |
initSequences () | |
SQLite does not support sequences. |
Definition at line 31 of file SQLiteDatabaseInfo.php.
SQLiteDatabaseInfo::initSequences | ( | ) | [protected] |
SQLite does not support sequences.
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 59 of file SQLiteDatabaseInfo.php.
SQLiteDatabaseInfo::initTables | ( | ) | [protected] |
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 37 of file SQLiteDatabaseInfo.php.
References $result.
00038 { 00039 include_once 'creole/drivers/sqlite/metadata/SQLiteTableInfo.php'; 00040 00041 $sql = "SELECT name FROM sqlite_master WHERE type='table' UNION ALL SELECT name FROM sqlite_temp_master WHERE type='table' ORDER BY name;"; 00042 $result = sqlite_query($this->dblink, $sql); 00043 00044 if (!$result) { 00045 throw new SQLException("Could not list tables", sqlite_last_error($this->dblink)); 00046 } 00047 00048 while ($row = sqlite_fetch_array($result)) { 00049 $this->tables[strtoupper($row[0])] = new SQLiteTableInfo($this, $row[0]); 00050 } 00051 }