Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Get a list of the names of all databases on the connected server.
        

src/n/o/NoSQLMap-HEAD/nosqlmap.py   NoSQLMap(Download)
		try:
			print "List of databases:"
			dbList = conn.database_names()
			print "\n".join(dbList)
			print "\n"
	                conn = pymongo.MongoClient(target,27017)
			print "Connected to " + target
			dbList = conn.database_names()
 
			print "Successful default access on " + target

src/s/y/synapse-0.2/synapse/synapse_dumpdb.py   synapse(Download)
 
    if  dbname : dbnames = [dbname]
    else       : dbnames = db_client.database_names ()
 
    for name in dbnames :

src/r/a/radical.utils-0.7.2/bin/dump_mongodb.py   radical.utils(Download)
 
    if  dbname : dbnames = [dbname]
    else       : dbnames = db_client.database_names ()
 
    for name in dbnames :

src/s/u/suricate-HEAD/bin/run_me.py   suricate(Download)
 
    # if user doesn't exist create new DB!
    if user_id not in client.database_names():
        db = client[user_id]
        db.add_user(user_id, USERS[user_id][0], roles=['readWrite'])

src/d/e/Dex-0.6/dex/dex.py   Dex(Download)
        if databases == []:
            try:
                databases = connection.database_names()
            except:
                message = "Error: Could not list databases on server. Please " \
        if databases == []:
            try:
                databases = connection.database_names()
            except:
                message = "Error: Could not list databases on server. Please " \

src/d/e/dex-HEAD/dex/dex.py   dex(Download)
        if databases == []:
            try:
                databases = connection.database_names()
            except:
                message = "Error: Could not list databases on server. Please " \
        if databases == []:
            try:
                databases = connection.database_names()
            except:
                message = "Error: Could not list databases on server. Please " \