mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Move operators, functions and grouping to Driver
This commit is contained in:
@@ -131,6 +131,9 @@ if (isset($_GET["clickhouse"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
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");
|
||||
|
||||
function __construct($connection) {
|
||||
parent::__construct($connection);
|
||||
$this->types = array( //! arrays
|
||||
@@ -382,9 +385,6 @@ if (isset($_GET["clickhouse"])) {
|
||||
return array(
|
||||
'jush' => "clickhouse",
|
||||
'unsigned' => array(),
|
||||
'operators' => array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL"),
|
||||
'functions' => array(),
|
||||
'grouping' => array("avg", "count", "count distinct", "max", "min", "sum"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -123,6 +123,7 @@ if (isset($_GET["elastic"])) {
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $editFunctions = array(array("json"));
|
||||
var $operators = array("=", "must", "should", "must_not");
|
||||
|
||||
function __construct($connection) {
|
||||
parent::__construct($connection);
|
||||
@@ -568,9 +569,6 @@ if (isset($_GET["elastic"])) {
|
||||
return array(
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -114,6 +114,7 @@ if (isset($_GET["elastic5"])) {
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $editFunctions = array(array("json"));
|
||||
var $operators = array("=", "must", "should", "must_not");
|
||||
|
||||
function __construct($connection) {
|
||||
parent::__construct($connection);
|
||||
@@ -534,9 +535,6 @@ if (isset($_GET["elastic5"])) {
|
||||
return array(
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -115,6 +115,7 @@ if (isset($_GET["firebird"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $operators = array("=");
|
||||
}
|
||||
|
||||
|
||||
@@ -305,9 +306,6 @@ ORDER BY RDB$INDEX_SEGMENTS.RDB$FIELD_POSITION';
|
||||
return array(
|
||||
'possible_drivers' => array("interbase"),
|
||||
'jush' => "firebird",
|
||||
'operators' => array("="),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -118,6 +118,9 @@ if (isset($_GET["simpledb"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");
|
||||
var $grouping = array("count");
|
||||
|
||||
public $primary = "itemName()";
|
||||
|
||||
function _chunkRequest($ids, $action, $params, $expand = array()) {
|
||||
@@ -467,9 +470,6 @@ if (isset($_GET["simpledb"])) {
|
||||
return array(
|
||||
'possible_drivers' => array("SimpleXML + allow_url_fopen"),
|
||||
'jush' => "simpledb",
|
||||
'operators' => array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL"),
|
||||
'functions' => array(),
|
||||
'grouping' => array("count"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user