(self)
return [db["name"] for db in
                self._database_default_options("admin").command(
                    SON([("listDatabases", 1),
                         ("nameOnly", True)]))["databases"]]
Get a list of the names of all databases on the connected server.
Get a list of the names of all databases on the connected server.
Get a list of the names of all databases on the connected server .
def database_names(self):
        """Get a list of the names of all databases on the connected server."""
        return [db["name"] for db in
                self._database_default_options("admin").command(
                    SON([("listDatabases", 1),
                         ("nameOnly", True)]))["databases"]]
def database_names ( self ) : return [ db [ "name" ] for db in self . _database_default_options ( "admin" ) . command ( SON ( [ ( "listDatabases" , 1 ) , ( "nameOnly" , True ) ] ) ) [ "databases" ] ]