Files
kis_trader/scratch/show_ext_cols.py

10 lines
264 B
Python

from database import TradeDB
db = TradeDB()
try:
cols = db.conn.execute("SHOW COLUMNS FROM env_config_ext").fetchall()
print("--- env_config_ext 테이블의 실제 컬럼들 ---")
for r in cols:
print(dict(r)['Field'])
finally:
db.close()