Skip to main content

Module sql

Module sql 

Source

Structs§

SqlOutput

Constants§

DML_CTE
A junction table, or the CTE standing in for one. Same @cte: sentinel source_ref honours: a multi-link populated by the statement’s own nested DML reads the junction rows back out of the CTE that wrote them, since Postgres does not show them in the table yet. The name the emitter gives the CTE wrapping a SELECT (INSERT/UPDATE …)’s own mutation, and the stem of the junction CTEs beside it (_dml__ml_add_0). Public because the compiler has to name those same CTEs when it points a shape at them — see read_nested_links_from_their_ctes.

Functions§

emit
emit_expr
emit_expr_with_fanouts
emit_expr, reading the types with subtypes through fanouts the way emit does — see IrOutput::subtype_fanouts.
emit_fn_body
Emit the SQL body expression for a user-defined function DDL.
pg_schema_str