Ejemplo n.º 1
0
 def get_all_ids():
     rows = db.db_fetch_all(gametime.DATABASE_FILENAME, "SELECT id FROM MyGame")
     return [row["id"] for row in rows]
Ejemplo n.º 2
0
 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]