deleter

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

type Deleter struct {
	// 事务
	Tx context.Context

	// 模型
	Model interface{}

	// 是否使用软删除, 默认使用软删除, true: 使用硬删除
	Unscoped bool

	// 是否开启调试模式
	Debug bool

	// 条件
	Wheres *where.Wheres
}

func New

func New() *Deleter

func (*Deleter) SetModel

func (d *Deleter) SetModel(model interface{}) *Deleter

func (*Deleter) SetTx

func (d *Deleter) SetTx(tx context.Context) *Deleter

func (*Deleter) SetWheres

func (d *Deleter) SetWheres(wheres *where.Wheres) *Deleter

Jump to

Keyboard shortcuts

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