Skip to main content

Module compilation

Module compilation 

Source
Expand description

Routine language validation and body lowering over declared types and fresh binding inputs.

Structs§

RoutineCompilationContext
SQLRoutineLowering
How a SQL routine statement is lowered from its stored syntax.

Traits§

RoutineCompilationCatalog
RoutineParserCatalog

Functions§

bind_analyzed_sql_body_types
A successfully analyzed body keeps resolved type identities independently of its raw source. Domain coercions still resolve current constraint definitions.
compile_function_body
compile_function_body_for_execution
Compile executable procedural structure without validating unreached SQL fragments.
compile_persisted_function_body
defer_function_body
The body CREATE FUNCTION compiles under check_function_bodies = off: the declaration is checked as always, a SQL-standard body, which the statement itself analyzes, is compiled, and a body given as a string is left unexamined, None, for each session to compile when it first calls the routine.
lower_sql_routine_statement
Lower one statement of a SQL routine body with its relations bound, before routine calls are bound.
with_parser_context
Read live lexical settings only after the routine’s own configuration has been applied, and deliver parser notices even if compilation fails.