Esempio n. 1
0
 def __init__(self):
     """
     Initializes database connection and sessionmaker.
     Creates deals table.
     """
     engine = db_connect()
     create_events_table(engine)
     self.Session = sessionmaker(bind=engine)
Esempio n. 2
0
 def __init__(self):
     """
     Initializes database connection and sessionmaker.
     Creates deals table.
     """
     engine = db_connect()
     create_events_table(engine)
     self.Session = sessionmaker(bind=engine)
Esempio n. 3
0
 def __init__(self, url): #url is the lele service API url
     self.url = url
     engine = db_connect()
     create_events_table(engine)
     self.Session = sessionmaker(bind=engine)
Esempio n. 4
0
 def __init__(self, url):  #url is the lele service API url
     self.url = url
     engine = db_connect()
     create_events_table(engine)
     self.Session = sessionmaker(bind=engine)