Expand description
Executable statement schemas and mutation parameter analysis.
Structs§
- Analyzed
Statement - Analyzed syntax with immutable input conversions and no optimized access paths. A caller must validate the original statement, catalog, namespace, authority and parser settings in the selected statement snapshot before offering this entry for reuse. Parameter values remain supplied by each execution; their inferred types and explicit declarations must still match.
- Procedural
Plan Analysis - Statement
Analysis Context
Enums§
- Analyzed
Result - The result a statement’s analysis derives: the column types of a query or of a data-modifying statement’s
RETURNINGlist,Nonewhere analysis derives no type, or no result for any other statement.
Traits§
- Statement
Analysis Scopes - Retain a fresh catalog, namespace and transition scope for each statement analysis.
- Statement
Binding Scope - Borrow binding inputs only when the statement’s semantic branch requires them.
Functions§
- analyze_
command_ parameters - analyze_
executable_ plan - analyze_
executable_ plan_ for_ cache - Analyze once and report whether the converted inputs can be reused by a later ordinary message. Prepared definitions use their separate creation lifetime.
- analyze_
for_ statement_ reuse - Analyze under the current caller’s scope, then retain only inputs whose conversion lifetime spans ordinary messages. A parameter whose shape cannot be captured disables reuse without changing the original analysis’s result or diagnostic order.
- analyze_
plan_ result - Analyze a statement in one binding scope, retain input-function results in its executable tree and derive its result without running statement expressions.
- analyze_
procedural_ plan - Analyze a reached SQL occurrence once in its retained catalog scope. CALL resolves and converts its selected inputs before successful publication too.