migrate
migrate copied to clipboard
Implement WithConnection for sqlserver database driver
Similar methods have already been implemented for the mysql and postgres database. This adds WithConnection(ctx context.Context, conn *sql.Conn, config *Config) (*SQLServer, error) to the SQL Server database driver as well.
Issues/PRs for this can be found here:
- Issue: https://github.com/golang-migrate/migrate/issues/578
- PR for MySQL: https://github.com/golang-migrate/migrate/pull/583
- PR for Postgresql: https://github.com/golang-migrate/migrate/pull/659
I tried to align as close as possible to the other implementations.
Note: The linter errors dont seem to be related to the contents of this PR.