1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 01:30:12 +02:00

Driver specific USE

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1471 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-04-21 22:37:16 +00:00
parent a29ac72c9c
commit 58c80e369c
4 changed files with 24 additions and 1 deletions

View File

@@ -666,10 +666,24 @@ if (!defined("DRIVER")) {
return $connection->result("SHOW CREATE TABLE " . idf_escape($table), 1);
}
/** Get SQL command to change database
* @param string
* @return string
*/
function use_sql($database) {
return "USE " . idf_escape($database);
}
/** Get server variables
* @return array ($name => $value)
*/
function show_variables() {
return get_key_vals("SHOW VARIABLES");
}
/** Get status variables
* @return array ($name => $value)
*/
function show_status() {
return get_key_vals("SHOW STATUS");
}