def get_engine(): return DBSelector().get_engine('db_stock')
def get_basic_info(): DB = DBSelector() engine = DB.get_engine('db_stock', 'qq') base_info = pd.read_sql('tb_basic_info', engine, index_col='index') return base_info
def get_engine(self): return DBSelector().mongo('qq')