-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use gh-ost as a Go library directly? #959
Comments
Please see the following (rather old) issues:
Personally I haven't experimented running |
Good to know! Without using it as a library can I ask how y'all are running |
This is how GitHub does it:
https://github.blog/2020-02-14-automating-mysql-schema-migrations-with-github-actions-and-more/
|
Oh that's an awesome writeup! Thanks! |
Whoops. Leaving open to for reporting back on how it went with |
Closing this questions as answered |
I know the main documentation is around the
gh-ost
CLI tool, but I'm wondering if there are any concerns about using the library directly (e.g. theMigrationContext
+Migrator
API which the CLI leverages), especially w/r to trying to run multiple migrations from within a single process context (e.g. are there shared globals that might have issues? thread/goroutine blocking? unsafe/unlocked vars?).My use case is that I'd like to write a small migration management (internal) web app to integrate with
gh-ost
and it seems like invoking the CLI tool and then communicating over the unix/TCP socket would be a bit more wonky than just being able to import the golang lib and work with it that way.The text was updated successfully, but these errors were encountered: