pg_query
PostgreSQL parser for Rust that uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parse tree.
Warning! This library is in early stages of development so any APIs exposed are subject to change.
Getting started
Add the following to your Cargo.toml
[]
= "0.1"
Example: Parsing a query
use Node;
let result = parse;
assert!;
let result = result.unwrap;
assert!;
Credits
A huge thank you to Lukas Fittl for all of his amazing work creating libpg_query.