Decision Workspace
bsql-query-macros vs simple_pg_macros vs soma-schema
Side-by-side comparison of Rust crates
52
bsql-query-macros
experimentalv1.0.0-alpha.5
Proc-macro foundation for bsql's compile-checked query API. Reads the schema catalog generated at build time by bsql-build and validates referenced table.column pairs against the real migration-replayed schema, emitting compile_error for unknown tables/columns. Reads its input only at expansion; ships no runtime types.
56
simple_pg_macros
growingv0.6.0
Procedural macros for simple_pg: the sql! query macro and its companions.
55
soma-schema
experimentalv0.4.0
A standalone, reusable SQL migration tool — plain SQL files with UP/DOWN, version tracking, and advisory-lock safety. Postgres first, designed multi-DB.
Core Metrics
| bsql-query-macros | simple_pg_macros | soma-schema | |
|---|---|---|---|
| Health Score | 52 | 56 | 55 |
| Total Downloads | 149 | 7.1K | 227 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 5 | 16 | 4 |
| Releases | 5 | 6 | 5 |
| Last Updated | 34d ago | 65d ago | 104d ago |
| Age | 2m | 2y 9m | 3m |
Health Breakdown
bsql-query-macros
Maintenance
11
Quality
18
Community
8
Popularity
3
Documentation
12
simple_pg_macros
Maintenance
13
Quality
16
Community
9
Popularity
5
Documentation
13
soma-schema
Maintenance
17
Quality
14
Community
8
Popularity
3
Documentation
13
Technical Details
| bsql-query-macros | simple_pg_macros | soma-schema | |
|---|---|---|---|
| Version | 1.0.0-alpha.5 | 0.6.0 | 0.4.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | Apache-2.0 |
| Dependencies | 5 | 0 | 14 |
| Crate Size | 48KB | 20KB | 81KB |
| Features | 2 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.96 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •simple_pg_macros leads with a health score of 56/100, but none of the options score above 80.
- •simple_pg_macros, soma-schema are pre-1.0 — API may change.