. */ require_once 'creole/metadata/DatabaseInfo.php'; /** * MySQLi implementation of DatabaseInfo. * * @author Sebastian Bergmann * @version $Revision: 1.3 $ * @package creole.drivers.mysqli.metadata */ class MySQLiDatabaseInfo extends DatabaseInfo { /** * @throws SQLException * @return void */ protected function initTables() { include_once 'creole/drivers/mysqli/metadata/MySQLiTableInfo.php'; $result = @mysqli_query($this->conn->getResource(), 'SHOW TABLES FROM ' . $this->dbname); if (!$result) { throw new SQLException("Could not list tables", mysqli_error($this->conn->getResource())); } while ($row = mysqli_fetch_row($result)) { $this->tables[strtoupper($row[0])] = new MySQLiTableInfo($this, $row[0]); } } /** * MySQL does not support sequences. * * @return void * @throws SQLException */ protected function initSequences() { // throw new SQLException("MySQL does not support sequences natively."); } }