wcZzz

package
v1.4105.455 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZzzMutator

type ZzzMutator struct {
	rqZzz.Zzz
	// contains filtered or unexported fields
}

ZzzMutator DAO writer/command struct

func NewZzzMutator

func NewZzzMutator(adapter *Tt.Adapter) (res *ZzzMutator)

NewZzzMutator create new ORM writer/command object

func (*ZzzMutator) ClearMutations

func (z *ZzzMutator) ClearMutations()

ClearMutations clear all previously called Set* methods

func (*ZzzMutator) DoDeletePermanentById

func (z *ZzzMutator) DoDeletePermanentById() bool

DoDeletePermanentById permanent delete

func (*ZzzMutator) DoInsert

func (z *ZzzMutator) DoInsert() bool

DoInsert insert, error if already exists

func (*ZzzMutator) DoOverwriteById

func (z *ZzzMutator) DoOverwriteById() bool

DoOverwriteById update all columns, error if not exists, not using mutations/Set*

func (*ZzzMutator) DoUpdateById

func (z *ZzzMutator) DoUpdateById() bool

DoUpdateById update only mutated fields, error if not exists, use Find* and Set* methods instead of direct assignment

func (*ZzzMutator) DoUpsert

func (z *ZzzMutator) DoUpsert() bool

DoUpsert upsert, insert or overwrite, will error only when there's unique secondary key being violated replace = upsert, only error when there's unique secondary key previous name: DoReplace

func (*ZzzMutator) HaveMutation

func (z *ZzzMutator) HaveMutation() bool

HaveMutation check whether Set* methods ever called

func (*ZzzMutator) Logs

func (z *ZzzMutator) Logs() []A.X

Logs get array of logs [field, old, new]

func (*ZzzMutator) SetAll

func (z *ZzzMutator) SetAll(from rqZzz.Zzz, excludeMap, forceMap M.SB) (changed bool)

SetAll set all from another source, only if another property is not empty/nil/zero or in forceMap

func (*ZzzMutator) SetCoords

func (z *ZzzMutator) SetCoords(val []any) bool

SetCoords create mutations, should not duplicate

func (*ZzzMutator) SetCreatedAt

func (z *ZzzMutator) SetCreatedAt(val int64) bool

SetCreatedAt create mutations, should not duplicate

func (*ZzzMutator) SetHeightMeter

func (z *ZzzMutator) SetHeightMeter(val float64) bool

SetHeightMeter create mutations, should not duplicate

func (*ZzzMutator) SetId

func (z *ZzzMutator) SetId(val uint64) bool

SetId create mutations, should not duplicate

func (*ZzzMutator) SetName

func (z *ZzzMutator) SetName(val string) bool

SetName create mutations, should not duplicate

Jump to

Keyboard shortcuts

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