Expand description
Source-side parser: SQL bytes → IR.
This module accepts a directory of CREATE-style DDL files and produces a
crate::ir::catalog::Catalog. Construction is I/O-free at the type level —
the only I/O is performed by parse_directory on behalf of callers.
Re-exports§
pub use directives::FileDirectives;pub use directives::extract_file_directives;pub use error::ParseError;pub use error::SourceLocation;pub use statement::Statement;
Modules§
- ast_
canon - AST canonicalization pass for view and materialized view bodies.
- builder
- AST → IR builders.
- cluster
- Cluster-level source parser — per-file SQL router for cluster objects.
- directives
-- @pgevolvefile-level directives.- error
- Errors raised by the source parser.
- normalize_
body - Statement-scope body canonicalization.
- normalize_
expr - Build
NormalizedExprvalues frompg_queryAST nodes. - statement
- Classify a top-level
pg_querystatement node into the v0.1 whitelist.
Functions§
- parse_
directory - Parse every
*.sqlfile underroot, recursively, and produce a fully- populatedCatalog. Files matching any pattern inignoresare skipped. - parse_
directory_ with_ locations - Like
parse_directorybut also returns the per-qname source-location map built during parsing. Used by the lint engine (Phase 10) to know which file each object was declared in.