def get_all_ids(): rows = db.db_fetch_all(gametime.DATABASE_FILENAME, "SELECT id FROM MyGame") return [row["id"] for row in rows]
def get_all(): rows = db.db_fetch_all(gametime.DATABASE_FILENAME, "SELECT * FROM MyGame") return [db.get_generic(MyGame(), row, False) for row in rows]