$ sqlparser_derive
v0.4.0MAJOR UPDATEProcedural (proc) macros for sqlparser
Latest Update Summary
Crate
Name: sqlparser_derive New version: 0.4.0 Release date: 2025-12-07T00:57:59.291851Z
Crate readme
Short description Extensible SQL Lexer and Parser for Rust
Long description This crate contains a lexer and parser for SQL that conforms with the ANSI/ISO SQL standard and other dialects. It is used as a foundation for SQL query engines, vendor-specific parsers, and various SQL analysis.
Features • serde • visitor • recursive-protection
Code Examples Basic usage
use sqlparser::dialect::GenericDialect;
use sqlparser::parser::Parser;
let sql = "SELECT a, b, 123, myfunc(b) \
FROM table_1 \
WHERE a > b AND b < 100 \
ORDER BY a DESC, b";
let dialect = GenericDialect {};
let ast = Parser::parse_sql(&dialect, sql).unwrap();
println!("AST: {{:?}}", ast);
Links • https://crates.io/crates/sqlparser • https://docs.rs/sqlparser • https://github.com/apache/datafusion-sqlparser-rs
https://docs.rs/sqlparser_derive/
Release info
Release version: N/A
Release description N/A
Code Examples N/A
Minor update: 0.3.0 → 0.4.0
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add sqlparser_deriveOr add to Cargo.toml: sqlparser_derive = "0.4.0"