| Crates.io | vibesql-ast |
| lib.rs | vibesql-ast |
| version | 0.1.4 |
| created_at | 2025-12-04 00:01:25.582531+00 |
| updated_at | 2026-01-19 06:25:00.094988+00 |
| description | Abstract Syntax Tree definitions for vibesql SQL parser |
| homepage | |
| repository | https://github.com/rjwalters/vibesql |
| max_upload_size | |
| id | 1965518 |
| size | 416,133 |
Abstract Syntax Tree (AST) definitions for SQL:1999.
This crate defines the structure of SQL statements and expressions as parsed from SQL text. The AST provides a tree representation that preserves the semantic structure of SQL queries.
Add this to your Cargo.toml:
[dependencies]
vibesql-ast = "0.1"
Basic example:
use vibesql_ast::{SelectStmt, Expression};
// AST nodes represent SQL structures
let expr = Expression::BinaryOp {
left: Box::new(Expression::Identifier("age".to_string())),
op: BinaryOperator::GreaterThan,
right: Box::new(Expression::Literal(SqlValue::Integer(18))),
};
This project is licensed under either of:
at your option.