mirror of https://github.com/go-gorm/gorm.git
35 lines
1.3 KiB
Go
35 lines
1.3 KiB
Go
package gorm
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// ErrRecordNotFound record not found error
|
|
ErrRecordNotFound = errors.New("record not found")
|
|
// ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback`
|
|
ErrInvalidTransaction = errors.New("no valid transaction")
|
|
// ErrNotImplemented not implemented
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
// ErrMissingWhereClause missing where clause
|
|
ErrMissingWhereClause = errors.New("WHERE conditions required")
|
|
// ErrUnsupportedRelation unsupported relations
|
|
ErrUnsupportedRelation = errors.New("unsupported relations")
|
|
// ErrPrimaryKeyRequired primary keys required
|
|
ErrPrimaryKeyRequired = errors.New("primary key required")
|
|
// ErrModelValueRequired model value required
|
|
ErrModelValueRequired = errors.New("model value required")
|
|
// ErrInvalidData unsupported data
|
|
ErrInvalidData = errors.New("unsupported data")
|
|
// ErrUnsupportedDriver unsupported driver
|
|
ErrUnsupportedDriver = errors.New("unsupported driver")
|
|
// ErrRegistered registered
|
|
ErrRegistered = errors.New("registered")
|
|
// ErrInvalidField invalid field
|
|
ErrInvalidField = errors.New("invalid field")
|
|
// ErrEmptySlice empty slice found
|
|
ErrEmptySlice = errors.New("empty slice found")
|
|
// ErrDryRunModeUnsupported dry run mode unsupported
|
|
ErrDryRunModeUnsupported = errors.New("dry run mode unsupported")
|
|
)
|