Permalink
Browse files

Add store.drop_collection

  • Loading branch information...
1 parent 53339ae commit aecde455fa0760beb580fa559706a43950865dae Johan Dahlin committed with jdahlin-litl Jan 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 thunder/store.py
View
@@ -141,6 +141,11 @@ def flush(self):
def drop_cache(self):
self._cache = {}
+ def drop_collection(self, cls):
+ cls_info = get_cls_info(cls)
+ collection = cls_info.get_collection(self)
+ collection.drop()
+
def drop_collections(self):
for name in self.database.collection_names():
if name.startswith('system'):

0 comments on commit aecde45

Please sign in to comment.