rust-db/refinery
Powerful SQL migration toolkit for Rust. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 28.5
- age_days: 3157
- days_rel: 84
- days_push: 9
- n_releases_24m: 3
Adoption not part of the score
1696 stars · 161 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Refinery is a SQL database migration toolkit for Rust that runs versioned migrations on database connections, either embedded in Rust code via macros or through a standalone CLI. It supports postgres, tokio-postgres, mysql, mysql_async, rusqlite, and tiberius drivers, and integrates with Barrel for programmatic schema generation.
Use cases
- run sql migrations in a rust application
- version database schema changes for postgres
- embed migrations in rust binary
- migrate sqlite database schema from rust
- run database migrations via cli
- generate schema migrations with barrel
- async database migrations with tokio-postgres
When to choose
- you are building a Rust application that needs versioned SQL schema migrations
- you need migrations embedded in your binary or runnable from a CLI
- you use postgres, mysql, sqlite, or mssql with Rust drivers
- you want programmatic schema generation with Barrel
When to avoid
- you use SQLx and prefer its built-in migration tooling
- you need migrations for non-Rust stacks or polyglot projects
- you need NoSQL or ORM-managed schema evolution
Facets
library · maturity stable
database orm cli databases developer-tools backend rust windows cli sql-migrations database-migrations schema-migration postgres mysql sqlite mssql barrel linux macos
2 sources
- readme: https://github.com/rust-db/refinery · fetched 2026-08-28 · 764f668478ae
- registry_crates: https://crates.io/api/v1/crates/refinery · fetched 2026-08-29 · ccfa97ba76fc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-db/refinery | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="rust-db/refinery")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem