}
$collations = collations();
-$engines = engines();
+$engines = $driver->engines();
// case of engine may differ
foreach ($engines as $engine) {
if (!strcasecmp($engine, $row["Engine"])) {
return get_val("SELECT collation_name FROM sys.databases WHERE name = " . q($db));
}
- function engines() {
- return array();
- }
-
function logged_user() {
return get_val("SELECT SUSER_NAME()");
}
}
return $c_style;
}
+
+ function engines() {
+ $return = array();
+ foreach (get_rows("SHOW ENGINES") as $row) {
+ if (preg_match("~YES|DEFAULT~", $row["Support"])) {
+ $return[] = $row["Engine"];
+ }
+ }
+ return $return;
+ }
}
return $return;
}
- /** Get supported engines
- * @return array
- */
- function engines() {
- $return = array();
- foreach (get_rows("SHOW ENGINES") as $row) {
- if (preg_match("~YES|DEFAULT~", $row["Support"])) {
- $return[] = $row["Engine"];
- }
- }
- return $return;
- }
-
/** Get logged user
* @return string
*/
return get_val("SELECT value FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET'"); //! respect $db
}
- function engines() {
- return array();
- }
-
function logged_user() {
return get_val("SELECT USER FROM DUAL");
}
return get_val("SELECT datcollate FROM pg_database WHERE datname = " . q($db));
}
- function engines() {
- return array();
- }
-
function logged_user() {
return get_val("SELECT user");
}
return get_val("PRAGMA encoding"); // there is no database list so $db == DB
}
- function engines() {
- return array();
- }
-
function logged_user() {
return get_current_user(); // should return effective user
}
return false;
}
+ /** Get supported engines
+ * @return array
+ */
+ function engines() {
+ return array();
+ }
+
/** Check whether table supports indexes
* @param array result of table_status()
* @return bool
//
}
- function engines() {
- return array();
- }
-
function count_tables($databases) {
$return = connection()->rootQuery('_aliases');
return array("elastic" => ($return ? count($return) : 0));
function db_collation($db, $collations) {
}
- function engines() {
- return array();
- }
-
function logged_user() {
$adminer = adminer();
$credentials = $adminer->credentials();
function fk_support($table_status) {
}
- function engines() {
- return array();
- }
-
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
return connection()->create($name);
}
function fk_support($table_status) {
}
- function engines() {
- return array();
- }
-
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
if ($table == "") {
connection()->_db->createCollection($name);
function fk_support($table_status) {
}
- function engines() {
- return array();
- }
-
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
return ($table == "" && sdb_request('CreateDomain', array('DomainName' => $name)));
}