SQL parser and planning components for the Alopex DB SQL dialect.
This crate provides:
- Tokenizer: Lexical analysis of SQL strings
- Parser: SQL parsing into an AST
- Catalog: Table and index metadata management
- Planner: AST to logical plan conversion with type checking
Quick Start
use ;
use MemoryCatalog;
use Planner;
// Parse SQL using the convenience method
let sql = "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)";
let dialect = default;
let stmts = parse_sql.unwrap;
let stmt = &stmts;
// Plan with catalog
let catalog = new;
let planner = new;
let plan = planner.plan.unwrap;