def _get_connection(): tools.makeFile(tools.dataPath) conn = db.connect(database_path, timeout=60.0) conn.row_factory = _dict_factory return conn
def _get_connection(filepath): tools.makeFile(tools.dataPath) conn = db.connect(filepath) conn.row_factory = _dict_factory return conn