Files
kis_trader/scratch/check_env_ext.py

11 lines
301 B
Python

import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
from database import TradeDB
db = TradeDB()
try:
cols = [dict(r)['Field'] for r in db.conn.execute("SHOW COLUMNS FROM env_config_ext").fetchall()]
print(f"env_config_ext cols: {cols}")
finally:
db.close()