}
}
+ function tableHelp($name) {
+ if (information_schema(DB)) {
+ return strtolower(str_replace("_", "-", $name)) . "-table.html";
+ }
+ if (DB == "mysql") {
+ return "system-database.html"; //! more precise link
+ }
+ }
+
}
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";
+ }
+ }
+
}
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";
+ }
+ }
+
}
* @return null
*/
function selectLinks($tableStatus, $set = "") {
+ global $jush, $driver;
echo '<p class="links">';
$links = array("select" => lang('Select data'));
if (support("table") || support("indexes")) {
if ($set !== null) {
$links["edit"] = lang('New item');
}
+ $name = $tableStatus["Name"];
foreach ($links as $key => $val) {
- echo " <a href='" . h(ME) . "$key=" . urlencode($tableStatus["Name"]) . ($key == "edit" ? $set : "") . "'" . bold(isset($_GET[$key])) . ">$val</a>";
+ echo " <a href='" . h(ME) . "$key=" . urlencode($name) . ($key == "edit" ? $set : "") . "'" . bold(isset($_GET[$key])) . ">$val</a>";
}
+ echo doc_link(array($jush => $driver->tableHelp($name)), "?");
echo "\n";
}
return '';
}
+ /** Get help link for table
+ * @param string
+ * @return string relative URL or null
+ */
+ function tableHelp($name) {
+ }
+
}
/** Create link to database documentation
* @param array $jush => $path
+* @param string HTML code
* @return string HTML code
*/
-function doc_link($paths) {
+function doc_link($paths, $text = "<sup>?</sup>") {
global $jush, $connection;
$version = preg_replace('~^(\\d\\.?\\d).*~s', '\\1', $connection->server_info);
$urls = array(
'mssql' => "https://msdn.microsoft.com/library/",
'oracle' => "https://download.oracle.com/docs/cd/B19306_01/server.102/b14200/",
);
- return ($paths[$jush] ? "<a href='$urls[$jush]$paths[$jush]'" . target_blank() . "><sup>?</sup></a>" : "");
+ return ($paths[$jush] ? "<a href='$urls[$jush]$paths[$jush]'" . target_blank() . ">$text</a>" : "");
}
/** Wrap gzencode() for usage in ob_start()
Adminer 4.6.1-dev:
Speed up rendering of long tables (regression from 4.4.0)
Sticky position of table actions
+Add system tables help links
MySQL: Support non-utf8 charset in search in column
MySQL: Support geometry in MySQL 8 (bug #574)
SQLite: Allow deleting PRIMARY KEY from tables with auto increment