feat(Core/UI): 백테스트 전역 엔진 선택 버튼 추가 및 스캘핑 Rust 방어로직 포팅 1차 완료
This commit is contained in:
32
scratch/find_real_column.py
Normal file
32
scratch/find_real_column.py
Normal file
@@ -0,0 +1,32 @@
|
||||
from database import TradeDB
|
||||
db = TradeDB()
|
||||
try:
|
||||
sql = """
|
||||
SELECT TABLE_NAME, COLUMN_NAME
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = 'kis_quant_db'
|
||||
AND COLUMN_NAME = 'LS_WS_MAX_SUBSCRIPTIONS'
|
||||
"""
|
||||
results = db.conn.execute(sql).fetchall()
|
||||
|
||||
if results:
|
||||
print("찐 컬럼 발견!")
|
||||
for r in results:
|
||||
print(f"테이블: {r[0]} | 컬럼명: {r[1]}")
|
||||
else:
|
||||
print("kis_quant_db 의 어떤 테이블에도 'LS_WS_MAX_SUBSCRIPTIONS' 라는 이름의 컬럼은 찐으로 없습니다.")
|
||||
|
||||
# 혹시 이름이 비슷한게 있는지 LIKE로 검색
|
||||
sql_like = """
|
||||
SELECT TABLE_NAME, COLUMN_NAME
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = 'kis_quant_db'
|
||||
AND COLUMN_NAME LIKE '%LS_WS%'
|
||||
"""
|
||||
like_results = db.conn.execute(sql_like).fetchall()
|
||||
if like_results:
|
||||
print("\n비슷한 컬럼명 발견 (LIKE %LS_WS%):")
|
||||
for r in like_results:
|
||||
print(f"테이블: {r[0]} | 컬럼명: {r[1]}")
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user