SQLiteDatabaseInfo Class Reference

Inheritance diagram for SQLiteDatabaseInfo:

DatabaseInfo

List of all members.

Protected Member Functions

 initTables ()
 initSequences ()
 SQLite does not support sequences.


Detailed Description

Definition at line 31 of file SQLiteDatabaseInfo.php.


Member Function Documentation

SQLiteDatabaseInfo::initSequences (  )  [protected]

SQLite does not support sequences.

Returns:
void
Exceptions:
SQLException 

Reimplemented from DatabaseInfo.

Definition at line 59 of file SQLiteDatabaseInfo.php.

00060     {
00061         // throw new SQLException("MySQL does not support sequences natively.");
00062     }

SQLiteDatabaseInfo::initTables (  )  [protected]

Exceptions:
SQLException 
Returns:
void

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     }


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8