MySQLiDatabaseInfo Class Reference

Inheritance diagram for MySQLiDatabaseInfo:

DatabaseInfo

List of all members.

Protected Member Functions

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


Detailed Description

Definition at line 31 of file MySQLiDatabaseInfo.php.


Member Function Documentation

MySQLiDatabaseInfo::initSequences (  )  [protected]

MySQL does not support sequences.

Returns:
void
Exceptions:
SQLException 

Reimplemented from DatabaseInfo.

Definition at line 57 of file MySQLiDatabaseInfo.php.

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

MySQLiDatabaseInfo::initTables (  )  [protected]

Exceptions:
SQLException 
Returns:
void

Reimplemented from DatabaseInfo.

Definition at line 36 of file MySQLiDatabaseInfo.php.

References $result.

00037     {
00038         include_once 'creole/drivers/mysqli/metadata/MySQLiTableInfo.php';
00039         
00040         $result = @mysqli_query($this->conn->getResource(), 'SHOW TABLES FROM ' . $this->dbname);
00041     
00042         if (!$result) {
00043             throw new SQLException("Could not list tables", mysqli_error($this->conn->getResource()));
00044         }
00045         
00046         while ($row = mysqli_fetch_row($result)) {
00047             $this->tables[strtoupper($row[0])] = new MySQLiTableInfo($this, $row[0]);
00048         }
00049     }


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