예제 #1
0
 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))
예제 #2
0
 def select_by_year(self, year):
     return sql_execute(select_by_year_sql(year))
예제 #3
0
 def select_by_code(self, code):
     return sql_execute(select_by_code_sql(code))
예제 #4
0
 def delete_all(self):
     sql_execute(delete_all_sql)
예제 #5
0
 def insert(self, code, date):
     sql_execute(insert_sql(code, date))
예제 #6
0
 def create_table(self):
     if not self.is_table_exist():
         sql_execute(create_sql)
예제 #7
0
 def select_all(self):
     return sql_execute(select_all_sql)
예제 #8
0
 def delete_by_code(self, code):
     sql_execute(delete_by_code_sql(code))
예제 #9
0
 def insert(self, price):
     sql_execute(insert_sql(price))