Expand description
Core data types, validators, and SQL compilation for VlorQl.
This crate implements the plan-then-execute boundary described in the VlorQl design notes:
- The LLM only ever emits a
QueryPlan(a typed JSON object). validate::ValidationPipelineruns schema, policy, operand, and dialect validation on the plan and aggregates every violation into a singleerrors::ValidationErrors.compile::QueryBuilderturns a validated plan into parameterized SQL, delegating dialect-specific syntax to acompile::SqlCompilerimplementation.
The crate has no I/O dependencies and can be used standalone
(e.g. to construct or inspect plans in unit tests) or as the
foundation of the higher-level vlorql
facade.
Modulesยง
- cache
- Pluggable caching layer for VlorQl core operations.
- compile
- Safe, parameterized SQL compilation for supported dialects.
- errors
- Structured, machine-readable errors for the VlorQl core.
- observability
- OpenTelemetry integration for VlorQl.
- optimizer
- Logical rewrite rules applied to a validated
QueryPlan. - policy
- Access-control policy configuration and evaluation.
- prompt
- LLM system-prompt construction with minimized authorized context.
- schema
- Typed schema and query-plan models.
- statistics
- Table- and column-level statistics and pluggable providers.
- validate
- Aggregating schema, policy, operand, and dialect validation.