db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorParser added in v1.0.0

type ErrorParser interface {
	FromDBRowScan(err error, _type string) error
}

ErrorParser analyses external errors to create matchstick-video variants.

type ErrorParserImpl added in v1.0.0

type ErrorParserImpl struct{}

ErrorParserImpl implements ErrorParser

func NewErrorParserImpl added in v1.0.0

func NewErrorParserImpl() *ErrorParserImpl

NewErrorParserImpl is a constructor

func (*ErrorParserImpl) FromDBRowScan added in v1.0.0

func (e *ErrorParserImpl) FromDBRowScan(err error, _type string) error

FromDBRowScan tries to extract errors from the response to db row scans

type NotFoundError

type NotFoundError struct {
	Type string
}

NotFoundError is returned when an entity cannot be retrieved from persistence.

func NewNotFoundError

func NewNotFoundError(_type string) *NotFoundError

NewNotFoundError is a constructor

func (*NotFoundError) Error

func (n *NotFoundError) Error() string

type UniqueConstraintError added in v1.0.0

type UniqueConstraintError struct {
	Cause error
}

UniqueConstraintError is returned when a transaction fails a uniqueness constraint set in the database.

func NewUniqueConstraintError added in v1.0.0

func NewUniqueConstraintError(cause error) *UniqueConstraintError

NewUniqueConstraintError is a constructor

func (*UniqueConstraintError) Error added in v1.0.0

func (u *UniqueConstraintError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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