Skip to main content Module statements Copy item path Source pub use super::view_bounds::bounded_view_selects ;pub use super::view_bounds::BOUNDED_VIEW_MARKER ;SqlAliasedViewPeer 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. SqlBoundSourceLines 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. SqlFunctionBounds SqlGroupKey One plain GROUP BY key. constant is a single value; item is the FROM item it reads. SqlGroupingQuery SqlInsertFact One executed INSERT recovered from PostgreSQL SQL. SqlIsolationChanges 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. SqlLifecycleBatch SqlLifecycleStep 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. SqlQualifiedViewKey SqlQueryShapeFact 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. SqlSchemaQualifiedViewRead 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. SqlUsingViewRowRead SqlViewReads SqlViewUseFact A relation read from a join or a scalar subquery, before catalog classification. SqlViewValuesSortRead SqlViewValuesWidth SqlWriteFact One syntactic INSERT, UPDATE, or MERGE write, independent of any catalog. StatementPolicySources 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. SqlIsolation SqlIsolationEffect Effect of a submitted SQL batch on a tracked executor’s transaction. SqlLimitValue SqlLocationDemand SqlOnConflictAction SqlPinSource SqlQueryShape SqlTransformedColumnClause Predicate context for a cast or function applied to a column. SqlTriggerEvent SqlTriggerPeriod SqlValueForm SqlViewKeyCondition SqlWriteColumns SCALAR_BUILTINS Common PostgreSQL builtins with scalar return cardinality. Unknown names stay opaque;
this is an explicit semantic inventory, not a naming convention or catalog fallback. SET_RETURNING_BUILTINS All known pg_catalog set-returning functions expand an aggregate select-list row.
Server-state functions remain opaque as FROM items; only CALLER_SIZED functions
are sized by their arguments. PredicateProjection collect_select_query_projected extract_from_parsed_with_recovered_placeholders extract_sql_conflict_policy_facts Prepare only the fields consumed by the sole conflict-ordering policy. extract_sql_lock_scope_facts extract_sql_statement_facts Extract INSERT/SELECT/trigger facts from one SQL source. extract_sql_statement_facts_for_embedded_call Extract statement facts from SQL recovered by crate::extract_embedded_sql_from_source . extract_sql_statement_facts_with_bounds Extract the requested SQL projections without reparsing for row bounds. extract_sql_statement_facts_with_json_writes extract_sql_statement_facts_with_location_demand extract_sql_statement_facts_with_policy extract_sql_statement_facts_with_recovered_placeholders Extract facts while identifying the SQL-local positions of recovered interpolation markers. extract_sql_variant_statement_facts extract_with_bound_values form_is_stable has_top_level_not_exists_in Whether SQL contains a top-level conjunctive NOT EXISTS predicate. insert_keyword_count lookup_bound_query Equality facts for key lookups; no output cardinality cap is consulted. mask_quoted_sql Mask comments, quoted strings, and dollar-quoted bodies in one scan so
comment markers inside literals and quotes inside comments cannot nest. project_bounds select_policy walk_executed BindValues SqlViewKeyDependencies A key depends on the view if every condition in any one alternative holds.