mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Elasticsearch: Implemented function drop_databases()
This commit is contained in:
@@ -288,6 +288,15 @@ if (isset($_GET["elastic"])) {
|
|||||||
return $connection->query(urlencode($db), array(), 'PUT');
|
return $connection->query(urlencode($db), array(), 'PUT');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Drop databases
|
||||||
|
* @param array
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
function drop_databases($databases) {
|
||||||
|
global $connection;
|
||||||
|
return $connection->query(urlencode(implode(',', $databases)), array(), 'DELETE');
|
||||||
|
}
|
||||||
|
|
||||||
$jush = "elastic";
|
$jush = "elastic";
|
||||||
$operators = array("=", "query");
|
$operators = array("=", "query");
|
||||||
$functions = array();
|
$functions = array();
|
||||||
|
Reference in New Issue
Block a user