dbmate
pv-migrate
Our great sponsors
dbmate | pv-migrate | |
---|---|---|
25 | 8 | |
4,345 | 1,286 | |
- | - | |
8.1 | 9.1 | |
7 days ago | 7 days ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dbmate
-
Ask HN: What tool(s) do you use to code review and deploy SQL scripts?
A regular code repo with the scripts (with pull/merge requests for review) and then a CI job that builds containers with something like dbmate https://github.com/amacneil/dbmate that can then be run against any staging/prod environment.
-
Level UP your RDBMS Productivity in GO
As we want to maintain the track of our changes to the DB, we are going to use migrations. In this case, we are going to use dbmate. But, you can use any other tool you want.
-
Rails 7.1 Released
> For example having database migrations built in etc.
I actually went the exact opposite route, at least when possible: https://github.com/amacneil/dbmate
Pure SQL migrations, regardless of the back end technology that you use, completely decoupled from how each framework/library views things and therefore not dependent on them (you could even rewrite the back end in another technology later on, if needed; or swap ORMs; or avoid issues when there's a major ORM version update).
It's really nice when you can generate entity mappings based on a live database, like with https://blog.jetbrains.com/dotnet/2022/01/31/entity-framewor...
So in my case, I can have:
* a DB that has migrations applied with dbmate, completely decoupled from any back end(s) that might use it
- FLaNK Stack Weekly 2 October 2023
-
How do your teams run DB migrations?
You can run dbmate as part of your CI/CD pipeline. You just keep a dbmate directory in your repo and deploy migrations with your code.
-
Working with TypeORM 0.3x with Nestjs - I wasn't aware so many people were facing issues with it
In general with ORMs, you will face a problem in one way or another. I ended up simply using https://github.com/gajus/slonik and https://github.com/amacneil/dbmate for migrations. My life is way much better since then.
-
what do you use for migrations? or how do you the sql tables and seeding?
I like dbmate, super simple and straightforward to use. For your specific use case, it can also be configured using your .env!
- GORM
-
New post: Is Prisma better than your 'traditional' ORM?
Would always go for a language agnostic migration tool, e.g. https://github.com/amacneil/dbmate to stay flexible and stay away from lock-in effects (besides sql).
- I greatly dislike ORMs, but I find myself wanting ORM agnostic SQL migration tools. What do you use to perform RDBMS table migrations outside of an ORM?
pv-migrate
-
migrate PVs data from one cluster to another
I can't get Velero to work with my cloud providers (Hetzner) CSI, so that's not really an option. I also tried to use https://github.com/utkuozdemir/pv-migrate but this also doesn't seem to work for me (maybe I'm just being stupid but I did some troubleshooting already).
-
A script for copying PVC data across StorageClassses
There’s a kubectl plugin called pv-migrate that’s really nice and full featured. Can copy across storage classes, namespaces, and even too different clusters.
-
How to migrate a docker volume from a host to another host?
Check this out https://github.com/utkuozdemir/pv-migrate
-
Anyone have experience with pv-migrate for Kubernetes?
I've been looking at https://github.com/utkuozdemir/pv-migrate and am curious if anyone has used it in production? Been thinking about what options I have available if I need to migrate storage and resize is not available. Seems like the above would do the trick but want to see if anyone here has experience with it in a prod environment.
-
I built a cross-platform metric exporter and a graphical dashboard for Nvidia GPU usage
I wanted to share with you the cross-platform Prometheus metric exporter I built, and the Grafana dashboard for that. Here it is: https://github.com/utkuozdemir/pv-migrate
- utkuozdemir/pv-migrate
- I built a command-line tool to easily copy data across PersistentVolumeClaims in different namespaces/clusters
What are some alternatives?
sqlite-bench - PostgreSQL & SQLite Speed Test
migrator - Super fast and lightweight DB migration & evolution tool written in Go
goose - A database migration tool. Supports SQL migrations and Go functions.
pg-shifter - Golang struct to postgres table shifter.
Flyway - Flyway by Redgate • Database Migrations Made Easy.
crane - Tool for migrating Kubernetes workloads, and their data, between clusters.
liquibase - Main Liquibase Source
migrate - Database migrations. CLI and Golang library.
migra - Like diff but for PostgreSQL schemas
kubectl-df-pv - kubectl plugin - giving admins df (disk free) like utility for persistent volumes
SQLBoiler - Generate a Go ORM tailored to your database schema.
kubeseal-convert - A tool for importing secrets from a pre-existing secrets management systems (e.g. Vault, Secrets Manager) into a SealedSecret :shushing_face: