Exemple #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)
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)
Exemple #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)
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)