Documentation
¶
Overview ¶
Package postgres adapts the gorm.io/driver/postgres driver (pgx) to gormdb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct{}
Driver implements gormdb.PostgresDriver. The upstream dialector already translates constraint errors to gorm's sentinels while keeping the *pgconn.PgError, so no wrapper is needed.
To build the pool differently (credentials that rotate, a tracing wrapper), embed Driver in a type of your own and replace OpenDB.
Click to show internal directories.
Click to hide internal directories.