Skip to main content

Module compiled

Module compiled 

Source
Expand description

Compiled project IR.

This module contains the validated semantic structures produced by object compilation and project assembly — the layer between raw parsed SQL and the dependency-aware graph in ir::graph.

  • DatabaseObject is a single .sql file after validation and name normalization: one primary CREATE statement plus its indexes, grants, comments, and tests. All identifiers are fully qualified.
  • Project groups validated objects by (database, schema) with module-level statements, but has no dependency graph. Dependency extraction happens downstream in analysis::deps, which produces the final graph::Project.

Structs§

Database
A validated database containing multiple schemas.
DatabaseObject
A validated database object with its primary statement and supporting declarations.
FullyQualifiedName
Fully qualified name parsed from file path structure.
Project
A fully validated compiled project.
Schema
A validated schema containing multiple database objects.

Functions§

rewrite_in_cluster 🔒
Rewrite an optional RawClusterName::Unresolved ident if it matches a key in the map.