regolith/mongoclient.py
def load_database(self, db):
        """Loads a database via mongoimport.  Takes a database dict db."""
        dbpath = dbpathname(db, self.rc)
        for f in iglob(os.path.join(dbpath, '*.json')):
            base, ext = os.path.splitext(os.path.split(f)[-1])
            cmd = ['mongoimport', '--db',  db['name'], '--collection', base,
                   '--file', f]
            subprocess.check_call(cmd)
Loads a database via mongoimport.  Takes a database dict db.
Loads a database via mongoimport.  Takes a database dict db.
Loads a database via mongoimport . Takes a database dict db .
def load_database(self, db):
        dbpath = dbpathname(db, self.rc)
        for f in iglob(os.path.join(dbpath, '*.json')):
            base, ext = os.path.splitext(os.path.split(f)[-1])
            cmd = ['mongoimport', '--db',  db['name'], '--collection', base,
                   '--file', f]
            subprocess.check_call(cmd)
def load_database ( self , db ) : dbpath = dbpathname ( db , self . rc ) for f in iglob ( os . path . join ( dbpath , '*.json' ) ) : base , ext = os . path . splitext ( os . path . split ( f ) [ - 1 ] ) cmd = [ 'mongoimport' , '--db' , db [ 'name' ] , '--collection' , base , '--file' , f ] subprocess . check_call ( cmd )
Loads a database via mongoimport.
Loads a database via mongoimport .
"""Loads a database via mongoimport.  Takes a database dict db."""
self
db