Skip to main content

Module shared

Module shared 

Source
Expand description

Helpers shared by all AST โ†’ IR builders.

Functionsยง

build_default_expr
Convert a column-default expression node into a DefaultExpr.
ident
Build an unquoted Identifier, wrapping crate::ir::IrError into a source-located ParseError::Ir.
qname_from_string_list
Resolve a repeated Node type-name list (as produced by CreateEnumStmt, CreateDomainStmt, CompositeTypeStmt, etc.) into a QualifiedName.
render_type_name_to_string
Render a pg_query::TypeName into a string ColumnType::parse_from_pg_type_string can consume.
resolve_qname
Resolve a RangeVar into a QualifiedName, filling in default_schema when the source did not qualify the object.
type_name_to_column_type
Convert a TypeName into a ColumnType, propagating parser errors.