mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Move possible drivers and JUSH to Driver
This commit is contained in:
@@ -131,6 +131,9 @@ if (isset($_GET["clickhouse"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static $possibleDrivers = array("allow_url_fopen");
|
||||
static $jush = "clickhouse";
|
||||
|
||||
var $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL");
|
||||
var $grouping = array("avg", "count", "count distinct", "max", "min", "sum");
|
||||
|
||||
@@ -380,10 +383,4 @@ if (isset($_GET["clickhouse"])) {
|
||||
function support($feature) {
|
||||
return preg_match("~^(columns|sql|status|table|drop_col)$~", $feature);
|
||||
}
|
||||
|
||||
function driver_config() {
|
||||
return array(
|
||||
'jush' => "clickhouse",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -122,6 +122,9 @@ if (isset($_GET["elastic"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static $possibleDrivers = array("json + allow_url_fopen");
|
||||
static $jush = "elastic";
|
||||
|
||||
var $editFunctions = array(array("json"));
|
||||
var $operators = array("=", "must", "should", "must_not");
|
||||
|
||||
@@ -564,11 +567,4 @@ if (isset($_GET["elastic"])) {
|
||||
function last_id() {
|
||||
return connection()->last_id;
|
||||
}
|
||||
|
||||
function driver_config() {
|
||||
return array(
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -113,6 +113,9 @@ if (isset($_GET["elastic5"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static $possibleDrivers = array("json + allow_url_fopen");
|
||||
static $jush = "elastic";
|
||||
|
||||
var $editFunctions = array(array("json"));
|
||||
var $operators = array("=", "must", "should", "must_not");
|
||||
|
||||
@@ -530,11 +533,4 @@ if (isset($_GET["elastic5"])) {
|
||||
function last_id() {
|
||||
return connection()->last_id;
|
||||
}
|
||||
|
||||
function driver_config() {
|
||||
return array(
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -115,6 +115,9 @@ if (isset($_GET["firebird"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static $possibleDrivers = array("interbase");
|
||||
static $jush = "firebird";
|
||||
|
||||
var $operators = array("=");
|
||||
}
|
||||
|
||||
@@ -301,11 +304,4 @@ ORDER BY RDB$INDEX_SEGMENTS.RDB$FIELD_POSITION';
|
||||
function support($feature) {
|
||||
return preg_match("~^(columns|sql|status|table)$~", $feature);
|
||||
}
|
||||
|
||||
function driver_config() {
|
||||
return array(
|
||||
'possible_drivers' => array("interbase"),
|
||||
'jush' => "firebird",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -118,6 +118,9 @@ if (isset($_GET["simpledb"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static $possibleDrivers = array("SimpleXML + allow_url_fopen");
|
||||
static $jush = "simpledb";
|
||||
|
||||
var $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");
|
||||
var $grouping = array("count");
|
||||
|
||||
@@ -465,11 +468,4 @@ if (isset($_GET["simpledb"])) {
|
||||
} while ($xml->NextToken);
|
||||
return $return;
|
||||
}
|
||||
|
||||
function driver_config() {
|
||||
return array(
|
||||
'possible_drivers' => array("SimpleXML + allow_url_fopen"),
|
||||
'jush' => "simpledb",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user