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

Function cleanQuery

packages/db/src/clickhouse/client.ts:245–248  ·  view source on GitHub ↗
(query?: string)

Source from the content-addressed store, hash-verified

243export const originalCh = clients[0]!;
244
245const cleanQuery = (query?: string) =>
246 typeof query === 'string'
247 ? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim()
248 : undefined;
249
250/**
251 * Run `operation` against the next round-robin node, retrying on the next

Callers 1

chQueryWithMetaFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected