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

Function explain

packages/db/src/services/chart-sql.test.ts:46–50  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

44let chReachable = false;
45
46async function explain(sql: string): Promise<void> {
47 // EXPLAIN runs the parser + analyzer and builds the query plan, which
48 // catches UNKNOWN_IDENTIFIER and AMBIGUOUS_IDENTIFIER. It does not execute.
49 await ch.command({ query: `EXPLAIN ${sql}` });
50}
51
52beforeAll(async () => {
53 // The chart service is chatty; mute log spam during the test run.

Callers 1

chart-sql.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected