Merge branch 'master' of github.com:jasonchuan/gorm

This commit is contained in:
chenchuan 2024-01-31 15:06:07 +08:00
commit ebb541f53e

View File

@ -63,6 +63,7 @@ func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
db, err = gorm.Open(postgres.New(postgres.Config{
DSN: dbDSN,
PreferSimpleProtocol: true,
DriverName: "postgres",
}), cfg)
case "sqlserver":
// go install github.com/microsoft/go-sqlcmd/cmd/sqlcmd@latest