Expand description
§SQL Execution Bridge
Unified SQL execution pipeline that routes all SQL through a single AST.
§Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ SQL Text │ --> │ Lexer │ --> │ Parser │ --> │ AST │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│
┌──────────────────────────────────────────────┘
│
v
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Executor │ <-- │ Planner │ <-- │ Validator │
└─────────────┘ └─────────────┘ └─────────────┘
│
v
┌─────────────┐
│ Result │
└─────────────┘§Benefits
- Single parser: All SQL goes through one lexer/parser
- Type-safe AST: Structured representation of all queries
- Dialect normalization: MySQL/PostgreSQL/SQLite → canonical AST
- Extensible: Add new features by extending AST, not string parsing
Structs§
- SqlBridge
- Unified SQL executor that routes through AST
Enums§
- Execution
Result - Execution result types
Traits§
- SqlConnection
- Storage connection trait for executing SQL against actual storage