Support computing DB infos

Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp>
This commit is contained in:
Takashi SHIRAI 2019-03-26 12:59:26 +09:00 committed by Jakub Vrana
parent 91da14b15c
commit fb38ae2ffd
2 changed files with 7 additions and 1 deletions

View file

@ -200,7 +200,12 @@ ORDER BY 1"
}
function count_tables($databases) {
return array();
global $connection;
$return = array();
foreach ($databases as $db) {
$return[$db] = $connection->result("SELECT COUNT(*) FROM all_tables WHERE tablespace_name = " . q($db));
}
return $return;
}
function table_status($name = "") {

View file

@ -10,6 +10,7 @@ PostgreSQL: Avoid exporting empty sequence last value (bug #768)
PostgreSQL: Do not show triggers from other schemas (PR #412)
PostgreSQL: Fix multi-parameter functions in default values (bug #736)
PostgreSQL PDO: Do not select NULL function for false values in edit
Oracle: Count tables
SimpleDB, Firebird, ClickHouse: Move to plugin
Adminer 4.7.9 (released 2021-02-07):