close function for mongodb
This commit is contained in:
parent
e4a1ef8dd7
commit
18d6ff90fe
|
@ -47,6 +47,8 @@ class Mongo :
|
||||||
p = self.dbname in self.client.list_database_names()
|
p = self.dbname in self.client.list_database_names()
|
||||||
q = self.uid in self.client[self.dbname].list_collection_names()
|
q = self.uid in self.client[self.dbname].list_collection_names()
|
||||||
return p and q
|
return p and q
|
||||||
|
def close(self):
|
||||||
|
self.db.close()
|
||||||
|
|
||||||
class MongoReader(Mongo,Reader):
|
class MongoReader(Mongo,Reader):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue