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

Method pluginQuery

src/services/data/types.ts:241–241  ·  view source on GitHub ↗

* 执行只读 SQL 查询并返回原始行。 * * 用途边界:仅用于消息浏览/搜索/分页与 session-index 等通用数据访问; * 图表与分析必须走专用的缓存端点(core 计算 → analytics 路由 → 上面的 getXxx 方法), * 不要再用本方法在前端拉全量数据后自行计算。

(sessionId: string, sql: string, params?: unknown[])

Source from the content-addressed store, hash-verified

239 * 不要再用本方法在前端拉全量数据后自行计算。
240 */
241 pluginQuery<T = Record<string, unknown>>(sessionId: string, sql: string, params?: unknown[]): Promise<T[]>
242}

Callers 5

getSessionsMethod · 0.65
getByTimeRangeMethod · 0.65
getRecentMethod · 0.65
allFunction · 0.65

Implementers 1

FetchDataAdaptersrc/services/data/fetch.ts

Calls

no outgoing calls

Tested by

no test coverage detected