2 rcs_id('$Id: PearDB_mysql.php,v 1.1 2001-09-18 19:16:23 dairiki Exp $');
4 require_once('lib/WikiDB/backend/PearDB.php');
6 class WikiDB_backend_mysql
7 extends WikiDB_backend_PearDB
14 foreach ($this->_table_names as $table) {
15 $dbh->query("OPTIMIZE TABLE $table");
22 function _lock_tables($write_lock = true) {
23 $lock_type = $write_lock ? "WRITE" : "READ";
24 foreach ($this->_table_names as $table) {
25 $tables[] = "$table $lock_type";
27 $this->_dbh->query("LOCK TABLES " . join(",", $tables));
33 function _unlock_tables() {
34 $this->_dbh->query("UNLOCK TABLES");
38 // (c-file-style: "gnu")
43 // c-hanging-comment-ender-p: nil
44 // indent-tabs-mode: nil