MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / pluginQuery

Function pluginQuery

apps/desktop/main/worker/workerManager.ts:316–322  ·  view source on GitHub ↗
(
  sessionId: string,
  sql: string,
  params: any[] | Record<string, any> = []
)

Source from the content-addressed store, hash-verified

314 * 超时设为 120s,因为多个 pluginQuery 可能在 Worker 队列中排队等待
315 */
316export 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

Callers

nothing calls this directly

Calls 1

sendToWorkerFunction · 0.85

Tested by

no test coverage detected