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

Function buildWhereSQL

packages/db/src/clickhouse/query-builder.test.ts:7–12  ·  view source on GitHub ↗
(column: string, op: any, value: any)

Source from the content-addressed store, hash-verified

5const fakeClient = {} as ClickHouseClient;
6
7const buildWhereSQL = (column: string, op: any, value: any) =>
8 clix(fakeClient)
9 .select(['*'])
10 .from('events')
11 .where(column, op, value)
12 .toSQL();
13
14describe('query-builder escapeValue', () => {
15 it('fully escapes user paths that contain a date substring', () => {

Callers 1

Calls 5

clixFunction · 0.90
toSQLMethod · 0.80
selectMethod · 0.80
whereMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected