mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
SQLite: Display all rows of variable values
This commit is contained in:
@@ -756,10 +756,14 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
|
||||
}
|
||||
|
||||
function show_variables() {
|
||||
global $connection;
|
||||
$return = array();
|
||||
foreach (get_rows("PRAGMA pragma_list") as $row) {
|
||||
$return[$row["name"]] = $connection->result("PRAGMA $row[name]");
|
||||
$name = $row["name"];
|
||||
if ($name != "pragma_list" && $name != "compile_options") {
|
||||
foreach (get_rows("PRAGMA $name") as $row) {
|
||||
$return[$name] .= implode(", ", $row) . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ if (!$variables) {
|
||||
foreach ($variables as $key => $val) {
|
||||
echo "<tr>";
|
||||
echo "<th><code class='jush-" . $jush . ($status ? "status" : "set") . "'>" . h($key) . "</code>";
|
||||
echo "<td>" . h($val);
|
||||
echo "<td>" . nl_br(h($val));
|
||||
}
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
Adminer-4.17.2-dev:
|
||||
SQLite: Add command Check tables
|
||||
SQLite: Display all rows of variable values
|
||||
MongoDB: Remove support for deprecated extension mongo
|
||||
|
||||
Adminer-4.17.1 (released 2025-02-25):
|
||||
|
Reference in New Issue
Block a user