MCPcopy
hub / github.com/simstudioai/sim / isJoinNode

Function isJoinNode

apps/sim/lib/table/__tests__/sql.test.ts:43–50  ·  view source on GitHub ↗
(n: unknown)

Source from the content-addressed store, hash-verified

41}
42
43function isJoinNode(n: unknown): n is { fragments: unknown[]; separator: unknown } {
44 return (
45 typeof n === 'object' &&
46 n !== null &&
47 'fragments' in n &&
48 Array.isArray((n as { fragments: unknown[] }).fragments)
49 )
50}
51
52/** Recursively render a mock SQL node into its generated SQL string. */
53function renderSql(node: SqlNode | unknown): string {

Callers 1

renderSqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected