Expand description
Structured name types for SQL objects.
Structs§
- Aug
- Dependency
Ids - A set of IDs references by the
HirRelationExpr
of an object. - Dependency
Visitor - Full
Item Name - A fully-qualified human readable name of an item in the catalog.
- Full
Schema Name - A fully-qualified human readable name of a schema in the catalog.
- IdDependenc
Visitor 🔒 - Item
Dependency Modifier - Item
Qualifiers - Item
Resolution 🔒Config - Whether to resolve an name in the types namespace, the functions namespace, or the relations namespace. It is possible to resolve name in multiple namespaces, in which case types are preferred to functions are preferred to relations.
- Name
Resolver - Name
Simplifier - Partial
Item Name - An optionally-qualified human-readable name of an item in the catalog.
- Partial
Schema Name - An optionally-qualified name of an schema in the catalog.
- Qualified
Item Name - A fully-qualified non-human readable name of an item in the catalog using IDs for the database and schema.
- Qualified
Schema Name - The fully-qualified non-human readable name of a schema in the catalog.
- Resolved
Cluster Name - Resolved
Cluster Replica Name - Resolved
Ids - A set of items and their corresponding collections resolved by name resolution.
- Resolved
Network Policy Name - Resolved
Role Name
Enums§
- Comment
Object Id - Comments can be applied to multiple kinds of objects (e.g. Tables and Role), so we need a way
to represent these different types and their IDs (e.g.
CatalogItemId
andRoleId
), as well as the inner kind of object that is represented, e.g.CatalogItemId
is used to identify both Tables and Views. No other kind of ID encapsulates all of this, hence this new “*Id” type. - Database
Id - The identifier for a database.
- Object
Id - RawDatabase
Specifier - A human readable name of a database.
- Resolved
Column Reference - Resolved
Data Type - Resolved
Database Name - Resolved
Database Specifier - An id of a database.
- Resolved
Item Name - Resolved
Object Name - Resolved
Schema Name - Schema
Id - The identifier for a schema.
- Schema
Specifier - An id of a schema.
- System
Object Id
Statics§
Functions§
- dependencies
- Returns the
CatalogItemId
dependencies the providednode
has. - modify_
dependency_ item_ ids - Updates any references in the provided AST node that are keys in
id_map
. If an id is found it will be updated to the value of the key inid_map
. This assumes the names of the reference(s) are unmodified (e.g. each pair of ids refer to an item of the same name, whose id has changed). - resolve
- Resolves names in an AST node using the provided catalog.
- visit_
dependencies