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

Function isReturningIntoParentQuery

src/postgres/parse-pg-query.ts:61–62  ·  view source on GitHub ↗
(path: QueryNodePath<QueryParser.QueryNode<any>>)

Source from the content-addressed store, hash-verified

59 getNodeType(node).endsWith("Stmt") && !isPlaceholderSelect(node)
60
61const isReturningIntoParentQuery = (path: QueryNodePath<QueryParser.QueryNode<any>>) =>
62 ["larg", "rarg", "selectStmt"].indexOf(path.parentPropKey) > -1
63
64function getSubqueries(
65 statementPath: QueryNodePath<QueryParser.Query>

Callers 1

instantiateQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected