Decision Workspace
psqlfmt vs pgsqlfmt vs libpgfmt
Side-by-side comparison of Rust crates
42
psqlfmt
experimentalv0.2.0
An opinionated Rust PostgreSQL SQL formatter
45
pgsqlfmt
experimentalv0.2.2
A formatter for PostgreSQL SQL / PL/pgSQL
61
libpgfmt
growingv1.5.0
A Rust library for formatting PostgreSQL SQL and PL/pgSQL
Core Metrics
| psqlfmt | pgsqlfmt | libpgfmt | |
|---|---|---|---|
| Health Score | 42 | 45 | 61 |
| Total Downloads | 85 | 12 | 1.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 23 |
| Releases | 2 | 1 | 16 |
| Last Updated | 128d ago | 8d ago | 16d ago |
| Age | 4m | 8d | 6m |
Health Breakdown
psqlfmt
Maintenance
11
Quality
12
Community
6
Popularity
2
Documentation
11
pgsqlfmt
Maintenance
12
Quality
14
Community
6
Popularity
1
Documentation
12
libpgfmt
Maintenance
18
Quality
17
Community
10
Popularity
4
Documentation
12
Technical Details
| psqlfmt | pgsqlfmt | libpgfmt | |
|---|---|---|---|
| Version | 0.2.0 | 0.2.2 | 1.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | PostgreSQL | MIT | BSD-3-Clause |
| Dependencies | 9 | 1 | 3 |
| Crate Size | 44KB | 92KB | 161KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | 1.85 | 1.96 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •libpgfmt leads with a health score of 61/100, but none of the options score above 80.
- •psqlfmt, pgsqlfmt are pre-1.0 — API may change.