feat: register MSSQL and Postgres drivers in db-wrapper for improved factory pattern support

This commit is contained in:
2026-04-15 23:09:56 -05:00
parent f09284ecdc
commit ea41a7c218
3 changed files with 69 additions and 13 deletions

View File

@@ -8,6 +8,12 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
)
func init() {
Register("postgres", func() DbWrapper {
return &postgresDbWrapper{dialect: "postgres"}
})
}
type postgresRowResult struct {
columns []string
rows pgx.Rows