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

Function validateSubquery

src/validation.ts:168–180  ·  view source on GitHub ↗
(query: Query, tables: TableSchema[])

Source from the content-addressed store, hash-verified

166}
167
168function validateSubquery(query: Query, tables: TableSchema[]) {
169 try {
170 assertNoBrokenTableRefs(query, tables)
171 assertNoBrokenColumnRefs(query, tables)
172 assertCompleteInsertValues(query, tables)
173 } catch (error) {
174 throw augmentFileValidationError(error, query)
175 }
176
177 for (const subquery of query.subqueries) {
178 validateSubquery(subquery, tables)
179 }
180}
181
182function validateQueryInvocation(invocation: QueryInvocation, tables: TableSchema[]) {
183 if (

Callers 1

validateQueryFunction · 0.85

Calls 4

assertNoBrokenTableRefsFunction · 0.85
assertNoBrokenColumnRefsFunction · 0.85

Tested by

no test coverage detected