Documentation ¶
Overview ¶
Package mixin contains the mixin package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoftDeleteMixin ¶
SoftDeleteMixin implements the soft delete pattern for schemas.
func (SoftDeleteMixin) Fields ¶
func (SoftDeleteMixin) Fields() []ent.Field
Fields of the SoftDeleteMixin.
func (SoftDeleteMixin) Hooks ¶
func (d SoftDeleteMixin) Hooks() []ent.Hook
Hooks of the SoftDeleteMixin.
func (SoftDeleteMixin) Interceptors ¶
func (d SoftDeleteMixin) Interceptors() []ent.Interceptor
Interceptors of the SoftDeleteMixin.
func (SoftDeleteMixin) P ¶
func (d SoftDeleteMixin) P(w interface{ WhereP(...func(*sql.Selector)) })
P adds a storage-level predicate to the queries and mutations.
func (SoftDeleteMixin) SoftDeleteHook ¶
func (d SoftDeleteMixin) SoftDeleteHook(next ent.Mutator) ent.Mutator
SoftDeleteHook will soft delete records, by changing the delete mutation to an update and setting the deleted_at and deleted_by fields, unless the softDeleteSkipKey is set
type UnexpectedMutationTypeError ¶
UnexpectedMutationTypeError is returned when an unexpected mutation type is parsed
func (*UnexpectedMutationTypeError) Error ¶
func (e *UnexpectedMutationTypeError) Error() string
Error returns the UnexpectedAuditError in string format
type UserOwnedMutationPolicyMixin ¶ added in v0.2.4
func (UserOwnedMutationPolicyMixin) Policy ¶ added in v0.2.4
func (mixin UserOwnedMutationPolicyMixin) Policy() ent.Policy
Policy sets the policy for updating owned fields by the user
type UserOwnedQueryPolicyMixin ¶ added in v0.2.4
func (UserOwnedQueryPolicyMixin) Policy ¶ added in v0.2.4
func (mixin UserOwnedQueryPolicyMixin) Policy() ent.Policy
Policy sets the policy for querying owned fields by the user