Example #1
0
 def create_database(dbfile):
     """
         Creates the database file, initialises all the models in this file and binds the 
         database to webscavator's session. 
     """
     db = connect(path.join(CASE_FILE_DIR, dbfile))
     init_database(db)
     bind(db)
Example #2
0
 def load_database(dbfile):
     """
         Given a database file, connects to the database and binds it to webscavator's session.
     """
     db = connect(path.join(CASE_FILE_DIR, dbfile))
     bind(db)