The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 4 Rust Migration Projects
-
Project mention: Show HN: Reshape – Zero-downtime schema migrations for Postgres | news.ycombinator.com | 2023-11-16
-
Project mention: We built our customer data warehouse all on Postgres | news.ycombinator.com | 2024-02-02
Thanks! Yeah definitely agree that building out declarative table management for Postgres would be a major effort. A few open source projects I've seen in that area include:
https://github.com/sqldef/sqldef (Go)
https://github.com/bikeshedder/tusker (Python but being ported to Rust)
https://github.com/tyrchen/renovate (Rust)
https://github.com/blainehansen/postgres_migrator (Rust)
Some of these are based on parsing SQL, and others are based on running the CREATEs in a temporary location and introspecting the result.
The schema export side can be especially tricky for Postgres, since it lacks a built-in equivalent to MySQL's SHOW CREATE TABLE. So most of these declarative pg tools shell out to pg_dump, or require the user to do so. But sqldef actually implements CREATE TABLE dumping in pure Golang if I recall correctly, which is pretty cool.
There's also the question of implementing the table diff logic from scratch, vs shelling out to another tool or using a library. For the latter path, there's a nice blog post from Supabase about how they evaluated the various options: https://supabase.com/blog/supabase-cli#choosing-the-best-dif...
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
-
rust-starter-pack
Rust Starter Pack - With Tokio Axum, Sqlx, Docker, DB Migrations, Codegen, and more! Project is inspired by Ardan Labs Ultimate Service.
Rust Migrations related posts
- Show HN: Reshape – Zero-downtime schema migrations for Postgres
- Database Migrations
- Conceptually how do you handle deploys of SQL related things (table definition, scripts, stored procs etc) in a CI/CD way?
- The operational relational schema paradigm
- Reshape: An experimental, easy-to-use, zero-downtime migration tool for Postgres
- Reshape
- Reshape: An experimental, easy-to-use, zero-downtime schema migration tool for Postgres
-
A note from our sponsor - WorkOS
workos.com | 18 Apr 2024
Index
What are some of the best open-source Migration projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | reshape | 1,617 |
2 | postgres_migrator | 76 |
3 | models | 50 |
4 | rust-starter-pack | 12 |