mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Move edit functions to Driver
This commit is contained in:
@@ -385,7 +385,6 @@ if (isset($_GET["clickhouse"])) {
|
||||
'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"),
|
||||
'edit_functions' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -122,6 +122,8 @@ if (isset($_GET["elastic"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $editFunctions = array(array("json"));
|
||||
|
||||
function __construct($connection) {
|
||||
parent::__construct($connection);
|
||||
$this->types = array(
|
||||
@@ -569,7 +571,6 @@ if (isset($_GET["elastic"])) {
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(array("json")),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -113,6 +113,8 @@ if (isset($_GET["elastic5"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $editFunctions = array(array("json"));
|
||||
|
||||
function __construct($connection) {
|
||||
parent::__construct($connection);
|
||||
$this->types = array(
|
||||
@@ -535,7 +537,6 @@ if (isset($_GET["elastic5"])) {
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(array("json")),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -308,7 +308,6 @@ ORDER BY RDB$INDEX_SEGMENTS.RDB$FIELD_POSITION';
|
||||
'operators' => array("="),
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -470,7 +470,6 @@ if (isset($_GET["simpledb"])) {
|
||||
'operators' => array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL"),
|
||||
'functions' => array(),
|
||||
'grouping' => array("count"),
|
||||
'edit_functions' => array(array("json")),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user