Expand description
Static SQL type propagation and PostgreSQL-compatible common-type rules.
Structs§
Enums§
- Cast
Method - A
PostgreSQLcast’s implementation, separate from its value conversion.
Traits§
Functions§
- assignment_
type_ compatible - Whether
PostgreSQLassignment coercion accepts the declared source and target. Domains use their base type for cast selection and retain constraint checking at the value conversion boundary; array coercion applies element by element. - bind_
type_ introspection - Bind polymorphic type-introspection calls and common-type coercions while the input schema still carries declared SQL types.
- bind_
type_ introspection_ with_ control - Bind an admitted scalar tree while every new type name, cast and selected-call allocation remains under the original tree’s allowance and both cancellation scopes.
- bind_
type_ introspection_ with_ resolver - Bind type-introspection calls with access to catalog-backed function and aggregate overloads.
- builtin_
function_ argument_ targets - Return the declared argument targets selected by PostgreSQL-compatible built-in resolution. Known argument types are retained for polymorphic calls, while fixed signatures and overloaded operators supply the context needed to resolve
unknownarguments. - builtin_
function_ type - cast_
catalog_ entry - Return the same cast identity used by static coercion compatibility.
- coerce_
common_ context_ value - common_
context_ expression_ type - Resolve an expression participating in
PostgreSQL’s common-type selection. Bare string and NULL literals retain the parser’sunknowntype until the surrounding VALUES, set operation, CASE, or array context selects a concrete type. - common_
context_ type_ with_ control - Preserve unknown-literal and domain rules when selecting an operator’s common type without a catalog callback.
- common_
type - equality_
operand_ type - equality_
operand_ type_ with_ control - Preserve the existing equality coercion rules while retaining any copied type payload under the caller’s allowance.
- explicit_
type_ compatible - Whether an explicit SQL cast has a
PostgreSQLcoercion path, independently of its value. NULL input does not make an otherwise missing cast valid. - foreign_
key_ operand_ type - Resolve the comparison type accepted by a
PostgreSQLforeign key. The referenced key’s operator class makes compatibility directional: an implicit cast from the referencing type to the referenced type is valid, while the reverse cast alone is not. Integer widths, floating widths, character strings, and date/timestamp types additionally have cross-type equality operators in their shared operator families. - resolve_
declared_ column_ type - scalar_
cast_ source_ type_ name_ with_ control - Casts retain a source domain’s identity so an identity cast cannot re-run its constraints. Operator consumers continue to use the underlying type.
- scalar_
integer_ operation_ width - scalar_
integer_ operation_ width_ with_ control - Select the existing arithmetic width from borrowed IR and schema metadata without constructing an untracked inferred type or name.
- scalar_
operand_ type_ name - scalar_
operand_ type_ name_ with_ control - Preserve explicit binding and domain precedence while admitting inferred types and their emitted names. Optional semantic inference failures remain absent; resource failures propagate to the original caller.
- scalar_
type - scalar_
type_ with_ control - Infer a scalar type from borrowed schema and parameter metadata while retaining every constructed type and temporary buffer under the supplied allowance.
- scalar_
type_ with_ resolver - values_
column_ types