1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! 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`](schema::QueryPlan) (a typed JSON object).
//! * [`validate::ValidationPipeline`] runs schema, policy, operand,
//! and dialect validation on the plan and aggregates every
//! violation into a single [`errors::ValidationErrors`].
//! * [`compile::QueryBuilder`] turns a validated plan into
//! parameterized SQL, delegating dialect-specific syntax to a
//! [`compile::SqlCompiler`] implementation.
//!
//! 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`](https://docs.rs/vlorql)
//! facade.
pub
pub
/// Initialise the function registry with built-in functions.
///
/// Should be called once during program startup (e.g. from the
/// application's `main` or the `vlorql` facade's `build` method).