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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user