def insert(self, code, name, short_name, market, sector, unit): sql_execute( insert_sql(code=code, name=name, short_name=short_name, market=market, sector=sector, unit=unit))
def select_by_year(self, year): return sql_execute(select_by_year_sql(year))
def select_by_code(self, code): return sql_execute(select_by_code_sql(code))
def delete_all(self): sql_execute(delete_all_sql)
def insert(self, code, date): sql_execute(insert_sql(code, date))
def create_table(self): if not self.is_table_exist(): sql_execute(create_sql)
def select_all(self): return sql_execute(select_all_sql)
def delete_by_code(self, code): sql_execute(delete_by_code_sql(code))
def insert(self, price): sql_execute(insert_sql(price))