def get_db_connection_in_memory(cls): return DbContext.get_connection(':memory:')
def connect_db(): database_path = os.path.join(APP_ROOT, 'database/' + app.config['DATABASE']) return DbContext.get_connection(database_path)
def get_db_connection(cls): db_path = DatabaseUtils._get_database_test_path() return DbContext.get_connection(db_path)