1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

SQLite: Show all supported pragmas in Variables

This commit is contained in:
Jakub Vrana
2025-02-20 18:11:18 +01:00
parent 00607012af
commit e3fbc56b6f
2 changed files with 4 additions and 2 deletions

View File

@@ -758,8 +758,9 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
function show_variables() {
global $connection;
$return = array();
foreach (array("auto_vacuum", "cache_size", "count_changes", "default_cache_size", "empty_result_callbacks", "encoding", "foreign_keys", "full_column_names", "fullfsync", "journal_mode", "journal_size_limit", "legacy_file_format", "locking_mode", "page_size", "max_page_count", "read_uncommitted", "recursive_triggers", "reverse_unordered_selects", "secure_delete", "short_column_names", "synchronous", "temp_store", "temp_store_directory", "schema_version", "integrity_check", "quick_check") as $key) {
$return[$key] = $connection->result("PRAGMA $key");
$result = $connection->query("PRAGMA pragma_list");
while ($row = $result->fetch_row()) {
$return[$row[0]] = $connection->result("PRAGMA $row[0]");
}
return $return;
}

View File

@@ -1,4 +1,5 @@
Adminer 4.16.1-dev:
SQLite: Show all supported pragmas in Variables
Adminer 4.16.0 (released 2025-02-20):
MySQL: Fix saving bit(64) values (bug #839)