rustio rustio.net
51

pg_query

v6.1.1 Growing

PostgreSQL parser that uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parse tree.

MIT Edition 2021

Quick Verdict

  • โœ“Stable API (6.x for 5+ years)
  • โœ“Trusted by 228 crates
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
1.7M
Dependents
228
Releases
17
Size
2.0MB

Deep Insights

๐Ÿ“‰
Download decline

100.4K downloads in the last 30 days, down 33% from the previous period. May indicate migration to alternatives.

๐Ÿ”—
Moderate adoption

228 crates depend on pg_query. Reasonable ecosystem adoption, though not yet a core dependency.

โœ…
Stable for 5+ years

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.

๐Ÿ“
Large crate size

2.0MB is relatively large. May impact download and compile times.

๐ŸŒŸ
Used by top crates

Notable dependents include diesel-guard, eugene, prew, reshape, postgres-syntax. When high-quality crates choose pg_query, it's a strong quality signal.

Health Breakdown

Maintenance 8/25

Recency, release consistency, active ratio

Quality 12/25

Yanked ratio, deps, size, maturity, features

Community 11/20

Reverse deps, ownership, ecosystem

Popularity 7/15

Downloads, momentum, growth trend

Documentation 13/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
4K/day avg-62%
05K10K15K20K4/265/146/16/197/77/24

Top Dependents

Version Adoption

v5.1.0
90%
v6.1.1
7%
v6.1.0
2%
v0.8.2
0%
v6.0.0
0%

Release Timeline

10 releasessince 2022
J
F
M
A
M
J
J
A
S
O
N
D
2022
1
2023
3
2024
4
2025
2
2026
Less
More

README

Loading README...

Maintainers

Dependencies
14
direct dependencies
Dependents
228
crates depend on pg_query