Versions in this module Expand all Collapse all v6 v6.0.0 Oct 16, 2026 Changes in this version + var ErrBatchOperationFailed = errors.New("batch operation failed") + var ErrConditionFailed = errors.New("condition check failed") + var ErrDuplicatePrimaryKey error = invalidModelSubtypeError("duplicate primary key definition") + var ErrEmptyValue = errors.New("empty value") + var ErrEncryptedFieldNotQueryable = errors.New("encrypted fields are not queryable/filterable") + var ErrEncryptionNotConfigured = errors.New("encryption not configured") + var ErrImmutableModelMutation = errors.New("immutable model mutation") + var ErrIndexNotFound = errors.New("index not found") + var ErrInvalidEncryptedEnvelope = errors.New("invalid encrypted envelope") + var ErrInvalidModel = errors.New("invalid model") + var ErrInvalidOperator = errors.New("invalid query operator") + var ErrInvalidPrimaryKey = errors.New("invalid primary key") + var ErrInvalidTag = errors.New("invalid struct tag") + var ErrItemNotFound = errors.New("item not found") + var ErrMissingPrimaryKey = errors.New("missing primary key") + var ErrNoUpdatableFields = errors.New("no non-key fields to update") + var ErrProtectedFieldMutation = errors.New("protected field mutation") + var ErrRejectedDeployAuthorityEvidence = errors.New("rejected deploy authority evidence") + var ErrTableNotFound = errors.New("table not found") + var ErrThrottled = errors.New("throttled") + var ErrTransactionConflict = transactionSubtypeError("transaction conflict") + var ErrTransactionFailed = errors.New("transaction failed") + var ErrUnsupportedType = errors.New("unsupported type") + var ErrVersionConflict = conditionSubtypeError("version conflict") + func IsConditionFailed(err error) bool + func IsInvalidModel(err error) bool + func IsNotFound(err error) bool + type CancellationReason struct + Code string + Index int + Message string + type EncryptedFieldError struct + Err error + Field string + Operation string + func (e *EncryptedFieldError) Error() string + func (e *EncryptedFieldError) Unwrap() error + type TheorydbError struct + Context map[string]any + Err error + Model string + Op string + func NewError(op, model string, err error) *TheorydbError + func NewErrorWithContext(op, model string, err error, context map[string]any) *TheorydbError + func (e *TheorydbError) Error() string + func (e *TheorydbError) Is(target error) bool + func (e *TheorydbError) Unwrap() error + type TransactionError struct + Cause error + Err error + Model string + Operation string + OperationIndex int + Reason string + Reasons []CancellationReason + func (e *TransactionError) As(target any) bool + func (e *TransactionError) Error() string + func (e *TransactionError) RealFailures() []CancellationReason + func (e *TransactionError) Unwrap() error v6.0.0-rc Oct 16, 2026 Other modules containing this package github.com/theory-cloud/tabletheory github.com/theory-cloud/tabletheory/v2 github.com/theory-cloud/tabletheory/v3 github.com/theory-cloud/tabletheory/v4 github.com/theory-cloud/tabletheory/v5