Beispiel #1
0
	def __init__(self, database):
		DbModel.__init__(self, database)
		mapper(AirPlane, self.table)
		self.datas = self.session.query(AirPlane).all()
		return
def init_db():
    db = DbModel('kzz_data')
    return db
Beispiel #3
0
	def __init__(self, database):
		DbModel.__init__(self, database)
		mapper(AirCompany, self.table)
		self.datas = self.session.query(AirCompany).all()