update

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set[T any, A *T | **T](a A, v T) model.Set

Set is used inside a update to set a value on the column for all the matched records

Example

// set animal name as cat on record of id 2
err = goe.Update(db.Animal).Sets(update.Set(&db.Animal.Name, "Cat")).
Where(where.Equals(&db.Animal.Id, 2))

Types

This section is empty.

Jump to

Keyboard shortcuts

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