Documentation
¶
Index ¶
- func AsDuplicate(err error, dup error) error
- func AsNotFound(err error, msg string) error
- func IsUniqueViolation(err error, constraint string) bool
- func WithService(ctx context.Context, db Beginner, ...) error
- func WithTenant(ctx context.Context, db Beginner, id Identity, ...) error
- type Beginner
- type DB
- func (d *DB) Acquire(ctx context.Context) (*pgxpool.Conn, error)
- func (d *DB) Begin(ctx context.Context) (pgx.Tx, error)
- func (d *DB) Close()
- func (d *DB) Ping(ctx context.Context) error
- func (d *DB) Pool() *pgxpool.Pool
- func (d *DB) Read(ctx context.Context, fn func(ctx context.Context, q DBTX) error) error
- func (d *DB) Reset()
- func (d *DB) Tx(ctx context.Context) DBTX
- func (d *DB) Within(ctx context.Context, fn func(ctx context.Context) error) error
- type DBTX
- type Identity
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsDuplicate ¶
func AsNotFound ¶
func IsUniqueViolation ¶
func WithService ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.