1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 4.3.2 or newer
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2008 - 2009, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * MySQLi Utility Class
22 * @author ExpressionEngine Dev Team
23 * @link http://codeigniter.com/user_guide/database/
25 class CI_DB_mysqli_utility extends CI_DB_utility {
33 function _list_databases()
35 return "SHOW DATABASES";
38 // --------------------------------------------------------------------
41 * Optimize table query
43 * Generates a platform-specific query so that a table can be optimized
46 * @param string the table name
49 function _optimize_table($table)
51 return "OPTIMIZE TABLE ".$this->db->_escape_identifiers($table);
54 // --------------------------------------------------------------------
59 * Generates a platform-specific query so that a table can be repaired
62 * @param string the table name
65 function _repair_table($table)
67 return "REPAIR TABLE ".$this->db->_escape_identifiers($table);
70 // --------------------------------------------------------------------
76 * @param array Preferences
79 function _backup($params = array())
81 // Currently unsupported
82 return $this->db->display_error('db_unsuported_feature');
88 * The functions below have been deprecated as of 1.6, and are only here for backwards
89 * compatibility. They now reside in dbforge(). The use of dbutils for database manipulation
90 * is STRONGLY discouraged in favour if using dbforge.
98 * @param string the database name
101 function _create_database($name)
103 return "CREATE DATABASE ".$name;
106 // --------------------------------------------------------------------
112 * @param string the database name
115 function _drop_database($name)
117 return "DROP DATABASE ".$name;
122 /* End of file mysqli_utility.php */
123 /* Location: ./system/database/drivers/mysqli/mysqli_utility.php */