logoalt Hacker News

leosanchezyesterday at 9:26 AM1 replyview on HN

I use goose[1] for db migrations.

[1]: https://github.com/pressly/goose


Replies

ghthoryesterday at 1:53 PM

Goose is great, been using it for many years and is my goto db schema manager.

Love how you can write you migrations in go using goose and mix in raw sql migrations as well. Allows for great flexibility when doing complicated migrations and enables writing unit tests for migrations with regular go test