refactor: unify db dialect definition in dbdialects package
This commit is contained in:
@@ -4,13 +4,14 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
dbdialects "git.ksdemosapps.com/kylesoda/go-migrate/internal/app/db-wrapper/db-dialects"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
func init() {
|
||||
Register("postgres", func() DbWrapper {
|
||||
return &postgresDbWrapper{dialect: "postgres"}
|
||||
Register(dbdialects.Postgres, func() DbWrapper {
|
||||
return &postgresDbWrapper{dialect: dbdialects.Postgres}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user