"SET NAMES UTF-8 COLLATE 'UTF-8'", )); parent::__construct("mysql:{$dsn}", $username, $password, $options); } // -------------------------------------------------------------------------- /** * 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) { $this->query("TRUNCATE `{$table}`"); } } //End of mysql_driver.php