1
0
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:
Jakub Vrana
2025-06-11 15:14:44 +02:00
parent 3ec750ef7e
commit b960c41d63

View File

@@ -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);
}