Add option for database migration #2976
scaccomatto
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hi @scaccomatto thanks for bringing this idea to the community. I see the value on this, although I'm not sure if we want to distribute the goose dependencies to all our users in the case we added that option to the core. I'd see it more of a separate module that exposes the functional options satisfying the customiser interface, so that modules can use it. And I think you can explore that idea under your own account and see how it works before contributing it as a tc-go module. Wdyt? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I started recently to use TestContainer and I think it's a brilliant solution! Thank you very much to all of you!
I meanly use it to spin up the database (MySql in my case). We are also using "pressly/goose" as migration tool, to manage all the database schema updates. Sinse goose is written in Go, I was wondering if it can be usefull to add a function like "testcontainers.WithMigration" to allow people to manage migration at TestContainer level. Pseudo code could look like this:
If you think that this could be useful, I'll be happy to open a PR.
Beta Was this translation helpful? Give feedback.
All reactions