dibs is a Postgres toolkit for Rust with two pillars:
- Schema as Rust (facet): your Rust types are the source of truth for tables/columns/constraints.
- Queries as Styx: you write queries in a small DSL, get LSP support, and generate typed Rust + SQL.
From those, dibs generates migrations (also Rust), so you can do backfills and data fixes without switching mental models.
Start here
- How dibs works (model + workspace layout + deployment)
- The Guide
- Reference