mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Elasticsearch: Implemented function drop_tables()
This commit is contained in:
@@ -297,6 +297,19 @@ if (isset($_GET["elastic"])) {
|
|||||||
return $connection->query(urlencode(implode(',', $databases)), array(), 'DELETE');
|
return $connection->query(urlencode(implode(',', $databases)), array(), 'DELETE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Drop tables
|
||||||
|
* @param array
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function drop_tables($tables) {
|
||||||
|
global $connection;
|
||||||
|
$result = true;
|
||||||
|
foreach ($tables as $table) { // convert to bulk api
|
||||||
|
$result = $result && $connection->query(urlencode($table), array(), 'DELETE');
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
$jush = "elastic";
|
$jush = "elastic";
|
||||||
$operators = array("=", "query");
|
$operators = array("=", "query");
|
||||||
$functions = array();
|
$functions = array();
|
||||||
|
Reference in New Issue
Block a user