MCPcopy Create free account
hub / github.com/andywer/postguard / createQueryNodePath

Function createQueryNodePath

src/postgres/query-traversal.ts:13–24  ·  view source on GitHub ↗
(
  node: Node,
  ancestors: Array<QueryNodePath<any>>,
  parentPropKey: string
)

Source from the content-addressed store, hash-verified

11const $cancelToken = Symbol("cancel")
12
13export function createQueryNodePath<Node extends QueryNode<any>>(
14 node: Node,
15 ancestors: Array<QueryNodePath<any>>,
16 parentPropKey: string
17): QueryNodePath<Node> {
18 return {
19 ancestors,
20 node,
21 parentPropKey,
22 type: getNodeType(node)
23 }
24}
25
26export function createQueryNodeSubpath<Node extends QueryNode<any>>(
27 path: QueryNodePath<QueryNode<any>>,

Callers 1

parsePostgresQueryFunction · 0.90

Calls 1

getNodeTypeFunction · 0.90

Tested by

no test coverage detected