MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / get

Function get

packages/core/src/query/__tests__/message-query-functions.test.ts:68–71  ·  view source on GitHub ↗
(sql: string, _params: unknown[] = [])

Source from the content-addressed store, hash-verified

66 return Promise.resolve((store.get(extractQueryKey(sql)) ?? []) as T[])
67 },
68 get<T>(sql: string, _params: unknown[] = []): Promise<T | undefined> {
69 const rows = (store.get(extractQueryKey(sql)) ?? []) as T[]
70 return Promise.resolve(rows[0])
71 },
72 }
73}
74

Callers

nothing calls this directly

Calls 3

extractQueryKeyFunction · 0.85
setTimeoutFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected