import sqlite3

db_path = 'data/futures_analysis.db'

conn = sqlite3.connect(db_path)

print('=== AI模型配置 ===')
cursor = conn.execute("SELECT * FROM ai_model_configs")
cols = [desc[0] for desc in cursor.description]
print(f'字段: {cols}')
rows = cursor.fetchall()
print(f'记录数: {len(rows)}')
for row in rows:
    print(dict(zip(cols, row)))

print('\n=== 分析设置 ===')
cursor = conn.execute("SELECT * FROM analysis_settings")
rows = cursor.fetchall()
for row in rows:
    print(row)

conn.close()
