MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / query

Function query

packages/db/scripts/find-duplicate-events.ts:130–134  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

128}
129
130async function query<T>(sql: string): Promise<T[]> {
131 return ch
132 .query({ query: sql, format: 'JSONEachRow' })
133 .then((res) => res.json<T>());
134}
135
136// ---------------------------------------------------------------------------
137// Report

Callers 1

sessionConsistencyFunction · 0.85

Calls 2

queryMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected