Documentation ¶
Overview ¶
Package dberrs help processing database errors
Index ¶
- Variables
- func AllowHasEffects(c int64, err error) error
- func AllowNoAffects(c int64, err error) error
- func AllowNoRows(err error) error
- func AllowNonExists(exist bool, err error) error
- func DuplicateKeyError(exec gomodel.Executor, err error, key string, newErr error) error
- func DuplicateKeyFunc(exec gomodel.Executor, err error, keyfunc func(key string) error) error
- func DuplicatePrimaryKeyError(exec gomodel.Executor, err error, newErr error) error
- func ForeignKeyError(exec gomodel.Executor, err error, key string, newErr error) error
- func ForeignKeyFunc(exec gomodel.Executor, err error, keyfunc func(key string) error) error
- func HasAffects(c int64, err, newErr error) error
- func NoAffects(c int64, err, newErr error) error
- func NoRows(err, newErr error) error
- func NonExists(exist bool, err, newErr error) error
- func PrimaryKey(exec gomodel.Executor) string
- type KeyParser
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NonError = errors.New("non error")
)
Only tested for mysql
Functions ¶
func AllowHasEffects ¶ added in v0.6.3
func AllowNoAffects ¶ added in v0.6.3
func AllowNoRows ¶ added in v0.6.3
func AllowNonExists ¶ added in v0.6.3
func DuplicateKeyError ¶
func DuplicateKeyFunc ¶
func ForeignKeyError ¶
func ForeignKeyFunc ¶
func HasAffects ¶
func PrimaryKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.