Documentation ¶
Index ¶
- func IsError(err error, code string, cols ...string) bool
- func IsForeignKeyViolationError(err error, cols ...string) bool
- func IsNotFoundError(err error) bool
- func IsNotNullViolationError(err error, cols ...string) bool
- func IsUniqueViolationError(err error, cols ...string) bool
- type DB
- func (db *DB) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (db *DB) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (db *DB) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- func (db *DB) RunTx(ctx context.Context, fn func(ctx context.Context) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶ added in v0.3.0
func IsNotNullViolationError ¶
func IsUniqueViolationError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.