python - How do I iterate over collections in a database in mongoengine? -


is possible iterate on collections in mongoengine. have collections named log_xxx , i'd find of them.

mongoengine built on top of pymongo, can can in pymongo.

for example,

class example(document):     pass  db = example._get_db() collection_name in db.collection_names():     print collection_name 

Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -