Documentation
¶
Index ¶
- type ZzzMutator
- func (z *ZzzMutator) ClearMutations()
- func (z *ZzzMutator) DoDeletePermanentById() bool
- func (z *ZzzMutator) DoDeletePermanentByName() bool
- func (z *ZzzMutator) DoInsert() bool
- func (z *ZzzMutator) DoOverwriteById() bool
- func (z *ZzzMutator) DoOverwriteByName() bool
- func (z *ZzzMutator) DoUpdateById() bool
- func (z *ZzzMutator) DoUpdateByName() bool
- func (z *ZzzMutator) DoUpsertById() bool
- func (z *ZzzMutator) HaveMutation() bool
- func (z *ZzzMutator) Logs() []A.X
- func (z *ZzzMutator) SetAll(from rqZzz.Zzz, excludeMap, forceMap M.SB) (changed bool)
- func (z *ZzzMutator) SetCoords(val []any) bool
- func (z *ZzzMutator) SetCreatedAt(val int64) bool
- func (z *ZzzMutator) SetHeightMeter(val float64) bool
- func (z *ZzzMutator) SetId(val uint64) bool
- func (z *ZzzMutator) SetName(val string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZzzMutator ¶
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) DoDeletePermanentByName ¶ added in v1.4131.654
func (z *ZzzMutator) DoDeletePermanentByName() bool
DoDeletePermanentByName 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) DoOverwriteByName ¶ added in v1.4131.654
func (z *ZzzMutator) DoOverwriteByName() bool
DoOverwriteByName 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) DoUpdateByName ¶ added in v1.4131.654
func (z *ZzzMutator) DoUpdateByName() bool
DoUpdateByName update only mutated fields, error if not exists, use Find* and Set* methods instead of direct assignment
func (*ZzzMutator) DoUpsertById ¶ added in v1.4131.654
func (z *ZzzMutator) DoUpsertById() bool
DoUpsert upsert, insert or overwrite, will error only when there's unique secondary key being violated tarantool's replace/upsert can only match by primary 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 ¶
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