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

Function all

src/services/message/fetch.ts:27–29  ·  view source on GitHub ↗
(sql: string, params: unknown[] = [])

Source from the content-addressed store, hash-verified

25 const adapter = getDataAdapter()
26 return {
27 all<T>(sql: string, params: unknown[] = []): Promise<T[]> {
28 return adapter.pluginQuery<T>(sessionId, sql, params)
29 },
30 async get<T>(sql: string, params: unknown[] = []): Promise<T | undefined> {
31 const rows = await adapter.pluginQuery<T>(sessionId, sql, params)
32 return rows[0]

Callers

nothing calls this directly

Calls 1

pluginQueryMethod · 0.65

Tested by

no test coverage detected