Documentation
¶
Overview ¶
Package dberrs help processing database errors
Index ¶
- Constants
- 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 PrimaryKey(exec gomodel.Executor) string
- type KeyParser
Constants ¶
View Source
const (
NonError = errors.Err("non error")
)
Only tested for mysql
Variables ¶
This section is empty.
Functions ¶
func DuplicateKeyError ¶
func DuplicateKeyFunc ¶
func ForeignKeyError ¶
func ForeignKeyFunc ¶
func HasAffects ¶
func PrimaryKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.