Skip to main content Module statement_facts Copy item path Source SqlAssignmentFact One SET/VALUES assignment classified without keeping the sqlparser AST. SqlBareRead A bare column that a subquery reads, with the base tables that could own it. SqlBareViewRowRead A bare reference sharing a name with a view’s whole-row alias. SqlBareViewRowScope Inputs whose columns can bind a bare name at a single lexical scope. SqlBoundFact One executed SELECT, UPDATE or DELETE, reduced to its row-count facts.
Key uniqueness is determined later against the schema catalog. SqlBoundItem One FROM item and the columns or index expressions the statement pins on it. SqlBoundOutput Syntactic value provenance for one projected column, independent of query row cardinality. SqlBoundPin A conjunct that equates one column or index expression of an item with a value. SqlBoundQuery A query body: its FROM items, and whether it caps its own row count. SqlCatalogPredicate Single-relation WHERE disjunctions that require catalog evidence. SqlColumnUseFact A bare column reference resolved to a base relation when possible. SqlConflictWhereProof Conjunctive no-op proofs on ON CONFLICT … WHERE. SqlConjunctFact SqlCountExistenceFact A scalar COUNT(*) comparison testing presence or absence of matching rows. SqlDuplicateKeyedLookupFact One duplicate keyed lookup of the same relation within a single statement scope. SqlExistsSetOpFact An EXISTS whose subquery uses a set operation. SqlGroupKey One plain GROUP BY key. constant is a single value; item is the FROM item it reads. SqlInsertFact One executed INSERT recovered from PostgreSQL SQL. SqlJsonWriteFact A literal top-level JSON object key assigned by an executed INSERT or UPDATE.
Column ownership and same-row foreign keys are resolved from the prepared catalog. SqlLimitFact One LIMIT / FETCH FIRST row cap, at the position of its count. SqlNaturalJoinPeers SqlOnConflictFact ON CONFLICT action recovered from an INSERT.SqlPossibleTemporary SqlQualifiedRead A schema-qualified reference which did not match a relation name syntactically. SqlQualifiedScope Candidate relations in one lexical query scope for a qualified read. SqlRelationPredicateFact One base-table instance and the columns a predicate constrains on it. SqlScalarReads Local bare-column candidates and known enclosing relations for an independent scalar read. SqlSelectFact One SELECT that names relations in FROM/JOIN. SqlStarProjectionFact A star projection resolved to one base relation. SqlStatementFileFacts Statement facts for one SQL source (file or embedded call). SqlSweepFact A limited SELECT over one base table, ordered by plain columns of that table: the shape of
a page of a keyset walk. Only the WHERE conjuncts decide whether the walk is selective. SqlTransformedColumnProbeFact Bare probe key whose catalog type must be proven before exempting driving transforms. SqlTransformedColumnUseFact A syntactic column reference below a cast or function, resolved against base relations.
An empty table needs catalog disambiguation; absent candidates mean unknown scope. SqlTriggerFact One CREATE TRIGGER. SqlViewUseFact A relation read from a join or a scalar subquery, before catalog classification. SqlWriteFact One syntactic INSERT, UPDATE, or MERGE write, independent of any catalog. SqlBoundInputMode How inputs determine a query’s returned rows. SqlBoundItemKind SqlBoundKind Which statement a bound fact judges. SqlColumnClause Where a bare column reference was used. SqlConflictArbiter SqlCursorBound The direction of a cursor comparison: id > $1 bounds id from below, id < $1 from above.
A range (id >= $1 AND id < $2) has both, which narrows the walk. SqlLimitValue SqlOnConflictAction SqlPinSource SqlTransformedColumnClause Predicate context for a cast or function applied to a column. SqlTriggerEvent SqlTriggerPeriod SqlValueForm SqlWriteColumns