Skip to content
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

Support for migrate #60

Open
ntnn opened this issue Jun 29, 2020 · 0 comments
Open

Support for migrate #60

ntnn opened this issue Jun 29, 2020 · 0 comments
Labels
backlog Doesn't need to be done immediately discussion Issue needs more discussion

Comments

@ntnn
Copy link
Contributor

ntnn commented Jun 29, 2020

migrate is a Golang application and library to apply migrations based on .sql files.
The dabase/sql interface doesn't hand itself nicely to this, as it doesn't support bulk transactions and support to send multiple language commands per query depends on the driver.

To add support the driver interface from migrate must be implemented: https://github.com/golang-migrate/migrate/blob/master/database/driver.go
The library works similar to database/sql/driver - a valid driver must register itself.

To avoid forcing more dependencies than absolutely required these implementations should be placed in separate packages - e.g. cgo in cgo/migrate and go in go/migrate. Consumers can then explicitly import these packages.

@ntnn ntnn added backlog Doesn't need to be done immediately discussion Issue needs more discussion labels Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Doesn't need to be done immediately discussion Issue needs more discussion
Projects
None yet
Development

No branches or pull requests

1 participant