예제 #1
0
파일: run.py 프로젝트: Tiru-hcl/Py_MDB_Csv
 def get_records(self):
     '''
     dta op method to record count
     '''
     try:
         record_count = MongoDB.db_config().find().count()
     except Exception as e:
         return e
     else:
         return record_count
예제 #2
0
파일: run.py 프로젝트: Tiru-hcl/Py_MDB_Csv
 def __init__(self):
     self.db_config = MongoDB.db_config()