database

package
v0.0.0-...-36993d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound    = errors.New("record not found")
	ErrKeyConflict = errors.New("key conflict")
)

Functions

func IsKeyConflictErr

func IsKeyConflictErr(err error) bool

func IsRecordNotFoundErr

func IsRecordNotFoundErr(err error) bool

func MigrateDB

func MigrateDB(pool *pgxpool.Pool, migrateRiver bool) error

func NewDatabase

func NewDatabase(ctx context.Context, cfg *config.DBConfig, logCfg *config.DBLoggingConfig, lg *zap.Logger) (*pgxpool.Pool, error)

func NewTestDatabase

func NewTestDatabase(tb testing.TB, migration bool) *pgxpool.Pool

Types

This section is empty.

Directories

Path Synopsis
jet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL