mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
Elastic: Display indexes in alias (unused for now)
This commit is contained in:
@@ -408,6 +408,11 @@ if (isset($_GET["elastic"])) {
|
||||
return $table_status["Engine"] == "view";
|
||||
}
|
||||
|
||||
function view(string $name): array {
|
||||
$return = connection()->rootQuery("_alias/" . urlencode($name) . "");
|
||||
return array("select" => implode("\n", array_keys($return)));
|
||||
}
|
||||
|
||||
function error() {
|
||||
return h(connection()->error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user