데이터베이스 조작
Manipulate Database/Collection
client.list_database_names()db = client.test_database
# or
db = client['test_database']db.list_collection_names()collection = db['test_collection']
# or
collection = db.test_collectiondb.create_collection(‘test_collection’)db.test_collection.drop()
# or
db.drop_collection('test_collection’)Dictionary
Last updated
Was this helpful?