def __init__(self):
     conn = get_connection()
     self.admins_DAO = Admins_DAO(conn)
 def __init__(self):
     conn = get_connection()
     self.condominium_DAO = Condominium_DAO(conn)
示例#3
0
 def __init__(self):
     conn = get_connection()
     self.apartments_DAO = Apartments_DAO(conn)
示例#4
0
 def __init__(self):
     conn = get_connection()
     self.residents_DAO = Residents_DAO(conn)
示例#5
0
def get_database():
    connection = dao.get_connection()
    database = connection.mydb
    return database
示例#6
0
 def __init__(self):
     conn = get_connection()
     self.bills_DAO = Bills_DAO(conn)
示例#7
0
def delete(lunchId):
    param = int(lunchId)
    dao.getCursor().execute("""DELETE FROM lunch WHERE id = ?""", [param])
    dao.get_connection().commit()
示例#8
0
def add(time, owner_id, place, description):
    dao.getCursor().execute(
        """INSERT INTO lunch (time, owner_id, place, description) VALUES (?, ?, ?, ?)""",
        (time, int(owner_id), place, description))
    dao.get_connection().commit()