auto flush databases
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import pymongo
|
||||
|
||||
def flush_mongo():
|
||||
client = pymongo.MongoClient('mongodb://python:PasswordPassword123@localhost:27017/')
|
||||
mongodb = client['document_table']
|
||||
mongodb.drop_collection("documents")
|
||||
client.close()
|
||||
Reference in New Issue
Block a user