mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 19:13:59 +02:00
MongoDB: implemented function count_tables()
This commit is contained in:
committed by
Jakub Vrana
parent
683f6eefc7
commit
7d83d0ecb9
@@ -165,7 +165,12 @@ if (isset($_GET["mongo"])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function count_tables($databases) {
|
function count_tables($databases) {
|
||||||
return array();
|
global $connection;
|
||||||
|
$return = array();
|
||||||
|
foreach ($databases as $db) {
|
||||||
|
$return[$db] = count($connection->_link->selectDB($db)->getCollectionNames(true));
|
||||||
|
}
|
||||||
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function tables_list() {
|
function tables_list() {
|
||||||
|
Reference in New Issue
Block a user