Documentation
¶
Index ¶
Constants ¶
View Source
const (
AnnotationKey = "SoftDelete"
)
View Source
const SoftDeleteField = "deleted_at"
Variables ¶
View Source
var ( //go:embed templates/interceptor.go.tmpl InterceptorTemplate string //go:embed templates/client.tmpl ClientTemplate string )
Functions ¶
Types ¶
type SoftDeleteAnnotation ¶
type SoftDeleteExtension ¶
type SoftDeleteExtension struct {
entc.DefaultExtension
}
func NewExtension ¶ added in v0.0.2
func NewExtension() (*SoftDeleteExtension, error)
func (SoftDeleteExtension) Hooks ¶
func (SoftDeleteExtension) Hooks() []gen.Hook
func (SoftDeleteExtension) Templates ¶
func (SoftDeleteExtension) Templates() []*gen.Template
type SoftDeleteMixin ¶
func (SoftDeleteMixin) Fields ¶
func (SoftDeleteMixin) Fields() []ent.Field
func (SoftDeleteMixin) Index ¶
func (SoftDeleteMixin) Index() []ent.Index
Click to show internal directories.
Click to hide internal directories.