IsDeleted

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDeleted = true
	FlagActived = false
)

Variables

This section is empty.

Functions

func GetDefaultValue

func GetDefaultValue(field *schema.Field) (result any)

Types

type DeleteClause

type DeleteClause struct{ Field *schema.Field }

func (*DeleteClause) Build

func (it *DeleteClause) Build(data clause.Builder)

func (*DeleteClause) MergeClause

func (it *DeleteClause) MergeClause(data *clause.Clause)

func (*DeleteClause) ModifyStatement

func (it *DeleteClause) ModifyStatement(data *gorm.Statement)

func (*DeleteClause) Name

func (it *DeleteClause) Name() string

type IsDeleted

type IsDeleted bool

func (*IsDeleted) DeleteClauses

func (it *IsDeleted) DeleteClauses(field *schema.Field) []clause.Interface

func (*IsDeleted) QueryClauses

func (it *IsDeleted) QueryClauses(field *schema.Field) []clause.Interface

func (*IsDeleted) Scan

func (it *IsDeleted) Scan(value any) (throw error)

func (*IsDeleted) UpdateClauses

func (it *IsDeleted) UpdateClauses(field *schema.Field) []clause.Interface

type QueryClause

type QueryClause struct{ Field *schema.Field }

func (*QueryClause) Build

func (it *QueryClause) Build(data clause.Builder)

func (*QueryClause) MergeClause

func (it *QueryClause) MergeClause(data *clause.Clause)

func (*QueryClause) ModifyStatement

func (it *QueryClause) ModifyStatement(data *gorm.Statement)

func (*QueryClause) Name

func (it *QueryClause) Name() string

type UpdateClause

type UpdateClause struct{ Field *schema.Field }

func (*UpdateClause) Build

func (it *UpdateClause) Build(data clause.Builder)

func (*UpdateClause) MergeClause

func (it *UpdateClause) MergeClause(data *clause.Clause)

func (*UpdateClause) ModifyStatement

func (it *UpdateClause) ModifyStatement(data *gorm.Statement)

func (*UpdateClause) Name

func (it *UpdateClause) Name() string

Jump to

Keyboard shortcuts

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