import sqlite3

conn = sqlite3.connect('data/futures_analysis.db')
cursor = conn.execute('SELECT id, symbol, created_at FROM ai_analysis_cache ORDER BY created_at DESC LIMIT 10')

print('AI分析缓存记录:')
print('ID | 合约 | 创建时间')
print('-' * 60)
for row in cursor:
    print(f'{row[0]} | {row[1]} | {row[2]}')

conn.close()
