return ($where || $table_status["Engine"] != "InnoDB" ? null : $table_status["Rows"]);
}
+ /* Not used is MySQL but checked in compile.php:
/** Get user defined types
* @return array
- */
function types() {
return array();
}
/** Get existing schemas
* @return array
- */
function schemas() {
return array();
}
/** Get current schema
* @return string
- */
function get_schema() {
return "";
}
* @param string
* @param Min_DB
* @return bool
- */
function set_schema($schema, $connection2 = null) {
return true;
}
+ */
/** Get SQL command to create table
* @param string
return array();
}
- function schemas() {
- return array();
- }
-
- function get_schema() {
- return "";
- }
-
- function set_schema($scheme) {
- return true;
- }
-
function create_sql($table, $auto_increment, $style) {
global $connection;
$return = $connection->result("SELECT sql FROM sqlite_master WHERE type IN ('table', 'view') AND name = " . q($table));
"copy" => array("copy_tables"),
"database" => array("create_database", "rename_database", "drop_databases"),
"dump" => array("use_sql", "create_sql", "truncate_sql", "trigger_sql"),
- "indexes" => array("indexes"),
"kill" => array("kill_process", "connection_id", "max_connections"),
"processlist" => array("process_list"),
- "routine" => array("routines", "routine", "routine_languages", "create_routine", "routine_id"),
+ "routine" => array("routines", "routine", "routine_languages", "routine_id"),
"scheme" => array("schemas", "get_schema", "set_schema"),
"status" => array("show_status"),
- "table" => array("search_tables", "is_view"),
+ "table" => array("is_view"),
"trigger" => array("triggers", "trigger", "trigger_options", "trigger_sql"),
"type" => array("types"),
"variables" => array("show_variables"),
return null;
}
- /** Create index
- * @param string
- * @return mixed
- */
- function create_database($db) {
- return connection()->rootQuery(urlencode($db), null, 'PUT');
- }
-
- /** Remove index
- * @param array
- * @return mixed
- */
- function drop_databases($databases) {
- return connection()->rootQuery(urlencode(implode(',', $databases)), null, 'DELETE');
- }
-
/** Alter type
* @param array
* @return mixed