Documentation
¶
Index ¶
- Variables
- func IsKeyConflictErr(err error) bool
- func IsRecordNotFoundErr(err error) bool
- func MigrateDB(pool *pgxpool.Pool, migrateRiver bool) error
- func NewDatabase(ctx context.Context, cfg *config.DBConfig, logCfg *config.DBLoggingConfig, ...) (*pgxpool.Pool, error)
- func NewTestDatabase(tb testing.TB, migration bool) *pgxpool.Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("record not found") ErrKeyConflict = errors.New("key conflict") )
Functions ¶
func IsKeyConflictErr ¶
func IsRecordNotFoundErr ¶
func NewDatabase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.