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