1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-21 21:55:43 +02:00

Add more system tables help links

This commit is contained in:
Jakub Vrana
2018-02-08 11:21:33 +01:00
parent 8b8cfd9f04
commit cddd61c214
7 changed files with 44 additions and 3 deletions

View File

@@ -314,6 +314,15 @@ if (!defined("DRIVER")) {
}
}
function tableHelp($name) {
if (information_schema(DB)) {
return strtolower(str_replace("_", "-", $name)) . "-table.html";
}
if (DB == "mysql") {
return "system-database.html"; //! more precise link
}
}
}

View File

@@ -216,6 +216,17 @@ if (isset($_GET["pgsql"])) {
return $this->_conn->warnings();
}
function tableHelp($name) {
$links = array(
"information_schema" => "infoschema",
"pg_catalog" => "catalog",
);
$link = $links[$_GET["ns"]];
if ($link) {
return "$link-" . str_replace("_", "-", $name) . ".html";
}
}
}

View File

@@ -218,6 +218,15 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
return queries("REPLACE INTO " . table($table) . " (" . implode(", ", array_keys(reset($rows))) . ") VALUES\n" . implode(",\n", $values));
}
function tableHelp($name) {
if ($name == "sqlite_sequence") {
return "fileformat2.html#seqtab";
}
if ($name == "sqlite_master") {
return "fileformat2.html#$name";
}
}
}