Skip to main content

Module stored_ast

Module stored_ast 

Source
Expand description

Traversal and identity binding for durable SQL syntax trees.

Structs§

StoredAstVisitor

Functions§

bind_stored_expression_routines
bind_stored_expression_sites
Apply the sites of a bound copy of expression. Returns whether the syntax changed.
bind_stored_statement_routines
bind_stored_statement_sites
Apply the sites of a bound copy of statement. Returns whether the syntax changed.
copy_stored_source_column_shapes
Apply only planned source aliases and physical columns. The column-dependency binder’s expression normalization is analysis state, not a replacement for the stored query.
fold_assigned_stored_literal
Assignment of a stored unknown literal to target, as coerce_to_target_type converts an untyped constant with the target type’s input function when a default, generation expression or result is analyzed: the literal becomes a constant of the enum or enum-array type, or of that base type of a domain, whose own check applies when the value is assigned. Any other expression is coerced when it is evaluated.
read_unknown_stored_literal
Read an unknown literal with the input function of target, which reports what the type’s input rejects, and store the typed constant. coerce_type passes interval modifiers to input; other length and precision modifiers apply when a row is assigned. The constant keeps a written cast’s modifier when keep_modifier says so.
rewrite_expression_routine_identity
rewrite_statement_routine_identity
stored_expression_type_names
stored_statement_relation_names
stored_statement_type_names
visit_stored_expression
visit_stored_statement_expressions
visit_stored_statement_merges
visit_stored_statement_projections
Visit each select list or RETURNING item of a stored statement before its expression, and each expression in the order of the other visits.
visit_stored_statement_sources

Type Aliases§

ExpressionCallback
MergeCallback
ProjectionCallback
SourceCallback