Documentation ¶
Index ¶
- Variables
- func GDALErrorf(format string, a ...any) error
- func GetSelectorFromNonStructErr(rt reflect.Type) error
- func GormTagShouldBeKVsErr(tag string) error
- func InvalidReflectValueErr(rv reflect.Value) error
- func IsErrDryRunModeUnsupported(err error) bool
- func IsErrDuplicatedKey(err error) bool
- func IsErrEmptySlice(err error) bool
- func IsErrInvalidDB(err error) bool
- func IsErrInvalidData(err error) bool
- func IsErrInvalidField(err error) bool
- func IsErrInvalidTransaction(err error) bool
- func IsErrInvalidValue(err error) bool
- func IsErrInvalidValueOfLength(err error) bool
- func IsErrMissingWhereClause(err error) bool
- func IsErrModelAccessibleFieldsRequired(err error) bool
- func IsErrModelValueRequired(err error) bool
- func IsErrNotImplemented(err error) bool
- func IsErrPreloadNotAllowed(err error) bool
- func IsErrPrimaryKeyRequired(err error) bool
- func IsErrRecordNotFound(err error) bool
- func IsErrRegistered(err error) bool
- func IsErrSubQueryRequired(err error) bool
- func IsErrUnsupportedDriver(err error) bool
- func IsErrUnsupportedRelation(err error) bool
- func IsGDALErr(err error) bool
- func NonStructBasedModelErr(rt reflect.Type) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRecordNotFound record not found error ErrRecordNotFound = gorm.ErrRecordNotFound // ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback` ErrInvalidTransaction = gorm.ErrInvalidTransaction // ErrNotImplemented not implemented ErrNotImplemented = gorm.ErrNotImplemented // ErrMissingWhereClause missing where clause ErrMissingWhereClause = gorm.ErrMissingWhereClause // ErrUnsupportedRelation unsupported relations ErrUnsupportedRelation = gorm.ErrUnsupportedRelation // ErrPrimaryKeyRequired primary keys required ErrPrimaryKeyRequired = gorm.ErrPrimaryKeyRequired // ErrModelValueRequired model value required ErrModelValueRequired = gorm.ErrModelValueRequired // ErrModelAccessibleFieldsRequired model accessible fields required ErrModelAccessibleFieldsRequired = gorm.ErrModelAccessibleFieldsRequired // ErrSubQueryRequired sub query required ErrSubQueryRequired = gorm.ErrSubQueryRequired // ErrInvalidData unsupported data ErrInvalidData = gorm.ErrInvalidData // ErrUnsupportedDriver unsupported driver ErrUnsupportedDriver = gorm.ErrUnsupportedDriver // ErrRegistered registered ErrRegistered = gorm.ErrRegistered // ErrInvalidField invalid field ErrInvalidField = gorm.ErrInvalidField // ErrEmptySlice empty slice found ErrEmptySlice = gorm.ErrEmptySlice // ErrDryRunModeUnsupported dry run mode unsupported ErrDryRunModeUnsupported = gorm.ErrDryRunModeUnsupported // ErrInvalidDB invalid db ErrInvalidDB = gorm.ErrInvalidDB // ErrInvalidValue invalid value ErrInvalidValue = gorm.ErrInvalidValue // ErrInvalidValueOfLength invalid values do not match length ErrInvalidValueOfLength = gorm.ErrInvalidValueOfLength // ErrPreloadNotAllowed preload is not allowed when count is used ErrPreloadNotAllowed = gorm.ErrPreloadNotAllowed // ErrDuplicatedKey occurs when there is a unique key constraint violation ErrDuplicatedKey = gorm.ErrDuplicatedKey )
View Source
var (
GDALErr = errors.New("[GDAL] error")
)
Functions ¶
func GDALErrorf ¶
func GormTagShouldBeKVsErr ¶
func InvalidReflectValueErr ¶
func IsErrDuplicatedKey ¶
func IsErrEmptySlice ¶
func IsErrInvalidDB ¶
func IsErrInvalidData ¶
func IsErrInvalidField ¶
func IsErrInvalidTransaction ¶
func IsErrInvalidValue ¶
func IsErrMissingWhereClause ¶
func IsErrModelValueRequired ¶
func IsErrNotImplemented ¶
func IsErrPreloadNotAllowed ¶
func IsErrPrimaryKeyRequired ¶
func IsErrRecordNotFound ¶
func IsErrRegistered ¶
func IsErrSubQueryRequired ¶
func IsErrUnsupportedDriver ¶
func NonStructBasedModelErr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.