Example #1
0
 def init_db(self):
     self.engine = db.Engine()
     table = db.Tables()[self.table_name]
     self.columns = [
         getattr(table, column_name) for column_name in self.column_names
     ]
     self.session = db.sessionmaker(bind=self.engine)()
Example #2
0
 def init_db(self):
     self.engine = db.Engine()
     table = db.Tables()[self.table_name]
     self.column = getattr(table, self.column_name)
     self.session = db.sessionmaker(bind=self.engine)()
Example #3
0
 def init_db(self):
     self.engine = db.Engine()
     self.table = db.Tables()[self.table_name]
     self.session = db.sessionmaker(bind=self.engine)()