]> git.joonet.de Git - adminer.git/commitdiff
Elastic: Display indexes in alias (unused for now)
authorJakub Vrana <jakub@vrana.cz>
Wed, 11 Jun 2025 13:14:44 +0000 (15:14 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 11 Jun 2025 13:16:19 +0000 (15:16 +0200)
plugins/drivers/elastic.php

index 726176260ee67a3aa5f0d6aa197f57f04d9af08d..200e717d1144f85e4aa9e6af62e4aca791ec453e 100644 (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);
        }