Ejemplo n.º 1
0
def dbpopulate():
    eng = connect(app)
    mgr = GDAXDataManager(eng)
    qmgr = QuandlDataManager(eng, app)
    local_mgr = LocalDataManager(eng, app)
    mgr.populate_fixed_resources()
    local_mgr.fill_base_data()
    qmgr.backfill_historical_data('BTC', 'USD')
Ejemplo n.º 2
0
 def __init__(self, app):
     self.app = app
     self.eng = connect(app)
Ejemplo n.º 3
0
def dbdrop():
    if prompt_bool('Are you sure? This will delete all your services (y/n)'):
        print('dropping database ...')
        eng = connect(app)
        Base.metadata.drop_all(bind=eng)
        print('database dropped')
Ejemplo n.º 4
0
def dbinit():
    eng = connect(app)
    Base.metadata.create_all(bind=eng)