You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered:
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.goThe 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 ingo/migrate
. Consumers can then explicitly import these packages.The text was updated successfully, but these errors were encountered: