mixin

package
v0.0.0-...-70c3edb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreOptimisticLocking

func IgnoreOptimisticLocking(parent context.Context) context.Context

IgnoreOptimisticLocking ingore Optionistic Locking

func IgnoreSoftDelete

func IgnoreSoftDelete(parent context.Context) context.Context

Types

type OptimisticLocking

type OptimisticLocking struct {
	mixin.Schema
}

OptimisticLocking for ent. db field is lock_ver int64 only OpUpdateOne do update table set lock_ver = lock_ver +1 , set ... where lock_ver = n -- n is SetLockVer(n) when opUpdate OptimisticLocking was ResetLockVer

func (OptimisticLocking) Fields

func (v OptimisticLocking) Fields() []ent.Field

func (OptimisticLocking) Hooks

func (v OptimisticLocking) Hooks() []ent.Hook

func (OptimisticLocking) Indexes

func (v OptimisticLocking) Indexes() []ent.Index

type SoftDelete

type SoftDelete struct {
	mixin.Schema
}

func (SoftDelete) Fields

func (SoftDelete) Fields() []ent.Field

func (SoftDelete) Hooks

func (d SoftDelete) Hooks() []ent.Hook

func (SoftDelete) Indexes

func (SoftDelete) Indexes() []ent.Index

func (SoftDelete) Interceptors

func (d SoftDelete) Interceptors() []ent.Interceptor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL