Module names

Source
Expand description

Structured name types for SQL objects.

Structs§

Aug
DependencyIds
A set of IDs references by the HirRelationExpr of an object.
DependencyVisitor
FullItemName
A fully-qualified human readable name of an item in the catalog.
FullSchemaName
A fully-qualified human readable name of a schema in the catalog.
IdDependencVisitor 🔒
ItemDependencyModifier
ItemQualifiers
ItemResolutionConfig 🔒
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.
NameResolver
NameSimplifier
PartialItemName
An optionally-qualified human-readable name of an item in the catalog.
PartialSchemaName
An optionally-qualified name of an schema in the catalog.
QualifiedItemName
A fully-qualified non-human readable name of an item in the catalog using IDs for the database and schema.
QualifiedSchemaName
The fully-qualified non-human readable name of a schema in the catalog.
ResolvedClusterName
ResolvedClusterReplicaName
ResolvedIds
A set of items and their corresponding collections resolved by name resolution.
ResolvedNetworkPolicyName
ResolvedRoleName

Enums§

CommentObjectId
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 and RoleId), 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.
DatabaseId
The identifier for a database.
ObjectId
RawDatabaseSpecifier
A human readable name of a database.
ResolvedColumnReference
ResolvedDataType
ResolvedDatabaseName
ResolvedDatabaseSpecifier
An id of a database.
ResolvedItemName
ResolvedObjectName
ResolvedSchemaName
SchemaId
The identifier for a schema.
SchemaSpecifier
An id of a schema.
SystemObjectId

Statics§

PUBLIC_ROLE_NAME

Functions§

dependencies
Returns the CatalogItemId dependencies the provided node 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 in id_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