update

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(_ int, proc *process.Process, arg any, isFirst bool, isLast bool) (bool, error)

func GetTablePriKeyName added in v0.7.0

func GetTablePriKeyName(pKeyDef *plan.PrimaryKeyDef, cPkeyCol *plan.ColDef) string

Get the primary key name of the table

func Prepare

func Prepare(_ *process.Process, _ any) error

func String

func String(arg any, buf *bytes.Buffer)

Types

type Argument

type Argument struct {
	Ts           uint64
	AffectedRows uint64
	Engine       engine.Engine
	UpdateCtx    *UpdateCtx
}

func (*Argument) Free added in v0.6.0

func (arg *Argument) Free(proc *process.Process, pipelineFailed bool)

type UpdateCtx added in v0.6.0

type UpdateCtx struct {
	Source       []engine.Relation
	UniqueSource [][]engine.Relation
	Idxs         [][]int32
	Ref          []*plan.ObjectRef
	TableDefs    []*plan.TableDef
	HasAutoCol   []bool
	UpdateCol    []map[string]int32

	IdxSource []engine.Relation
	IdxIdx    []int32

	OnRestrictIdx []int32

	OnCascadeSource       []engine.Relation
	OnCascadeUniqueSource [][]engine.Relation
	OnCascadeIdx          [][]int32
	OnCascadeRef          []*plan.ObjectRef
	OnCascadeTableDef     []*plan.TableDef
	OnCascadeUpdateCol    []map[string]int32

	OnSetSource       []engine.Relation
	OnSetUniqueSource [][]engine.Relation
	OnSetIdx          [][]int32
	OnSetRef          []*plan.ObjectRef
	OnSetTableDef     []*plan.TableDef
	OnSetUpdateCol    []map[string]int32

	ParentIdx []map[string]int32
}

Jump to

Keyboard shortcuts

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