Skip to main content

Crate palimpsest_sql

Crate palimpsest_sql 

Source
Expand description

SQL parser, validation, and MIR scaffolding for Palimpsest.

Re-exports§

pub use catalog::Catalog;
pub use catalog::ColumnSchema;
pub use catalog::ColumnType;
pub use catalog::TableSchema;
pub use limits::enforce_graph_size;
pub use limits::enforce_input_size;
pub use limits::QueryLimits;
pub use lower::lower_select_statement;
pub use lower::parse_and_lower;
pub use lower::parse_and_lower_with_limits;
pub use normalize::normalize_statement;
pub use normalize::parse_and_normalize;
pub use normalize::validate_statement_against_catalog;
pub use parser::parse_select;
pub use parser::parse_select_with_limits;
pub use parser::validate_query;

Modules§

canonical
Canonical-form fingerprint and reused-subgraph collapsing. Internal to MIR processing — exposed for callers that compare/dedupe graphs.
catalog
Logical catalog the parser/lower passes consult to resolve table and column references and to type-check expressions.
limits
Resource bounds applied to inbound SQL.
lower
Lowering from sqlparser AST into MirGraph.
mir
Mid-level IR.
normalize
Statement normalization (alias removal, catalog binding) used by the canonical-form / dedup paths.
parser
SQL parsing entry points (Postgres dialect).

Enums§

SqlError
Errors surfaced by the SQL parsing, lowering, and validation passes.