()
| 170 | |
| 171 | // 获取数据库统计信息 |
| 172 | export function getDatabaseStats() { |
| 173 | initDatabase() |
| 174 | const industries = getIndustries() |
| 175 | const exchanges = new Set(allStocks.map(s => s.exchange)) |
| 176 | |
| 177 | return { |
| 178 | totalStocks: allStocks.length, |
| 179 | industries: industries.length, |
| 180 | exchanges: exchanges.size, |
| 181 | exchangeList: Array.from(exchanges), |
| 182 | } |
| 183 | } |
nothing calls this directly
no test coverage detected