( sessionId: string, sql: string, params: any[] | Record<string, any> = [] )
| 314 | * 超时设为 120s,因为多个 pluginQuery 可能在 Worker 队列中排队等待 |
| 315 | */ |
| 316 | export async function pluginQuery<T = Record<string, any>>( |
| 317 | sessionId: string, |
| 318 | sql: string, |
| 319 | params: any[] | Record<string, any> = [] |
| 320 | ): Promise<T[]> { |
| 321 | return sendToWorker('pluginQuery', { sessionId, sql, params }, 120000) |
| 322 | } |
| 323 | |
| 324 | // ==================== 导出的异步 API ==================== |
| 325 |
nothing calls this directly
no test coverage detected