pg_query
v6.1.1 GrowingPostgreSQL parser that uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parse tree.
Quick Verdict
- โStable API (6.x for 5+ years)
- โTrusted by 162 crates
- โPermissive license (MIT)
Security
Deep Insights
138.5K downloads in the last 30 days (4.6K/day). Volume is roughly flat compared to the previous period.
162 crates depend on pg_query. Reasonable ecosystem adoption, though not yet a core dependency.
The API has been stable (1.x) for over 5 years with 17 releases. This level of maturity means you can depend on it without worrying about breaking changes.
2.0MB is relatively large. May impact download and compile times.
Notable dependents include eugene, diesel-guard, prew, reshape, postgres-syntax. When high-quality crates choose pg_query, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata