Ejemplo n.º 1
0
def show_collections(server, db_name):
    collection_list = Dmango.find_mongodb(
        server).cx[db_name].collection_names()
    return dict(server=server,
                total=len(collection_list),
                db_names=collection_list)
Ejemplo n.º 2
0
def show_collections(server, db_name):
    collection_list = Dmango.find_mongodb(server).cx[db_name].collection_names()
    return dict(server=server, total=len(collection_list), db_names=collection_list)
Ejemplo n.º 3
0
def show_dbs(server):
    db_list = Dmango.find_mongodb(server).cx.database_names()
    return dict(server=server, total=len(db_list), db_names=db_list)
Ejemplo n.º 4
0
def show_dbs(server):
    db_list = Dmango.find_mongodb(server).cx.database_names()
    return dict(server=server, total=len(db_list), db_names=db_list)