sql = new $class; } // -------------------------------------------------------------------------- /** * Connect to a different database * * @param string $name */ public function switch_db($name) { // @todo Implement return FALSE; } // -------------------------------------------------------------------------- /** * Empty a table * * @param string $table */ public function truncate($table) { $sql = 'TRUNCATE "' . $table . '"'; $this->query($sql); } // -------------------------------------------------------------------------- /** * Return the number of rows returned for a SELECT query * * @return int */ public function num_rows() { return (isset($this->statement)) ? $this->statement->rowCount : FALSE; } // -------------------------------------------------------------------------- /** * Get a list of schemas for the current connection * * @return array */ public function get_schemas() { $sql = <<driver_query($sql); } } //End of pgsql_driver.php