"SET NAMES UTF-8 COLLATE 'UTF-8'", )); } if (strpos($dsn, 'mysql') === FALSE) { $dsn = 'mysql:'.$dsn; } parent::__construct($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