Documentation ¶
Index ¶
- Variables
- func Closer(db *gorm.DB) io.Closer
- func CollectTaggedColumns(entity interface{}, setting string) map[string]string
- func Filter(tx *gorm.DB, entity any, setting string, operator string, value any) (*gorm.DB, error)
- func LogfLogger(clock syncf.Clock, logger func() logf.Interface) logger.Interface
- func OnConflictClause(entity interface{}, setting string, updateAll bool, doUpdates clause.Set) *clause.OnConflict
- type Batch
- type JSONB
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMultipleFields = errors.New("multiple fields") ErrFieldNotFound = errors.New("field not found") )
Functions ¶
func CollectTaggedColumns ¶
CollectTaggedColumns collects all columns from this entity tagged with a setting from this entity and all its embedded structs.
func LogfLogger ¶ added in v0.10.5
func OnConflictClause ¶
func OnConflictClause(entity interface{}, setting string, updateAll bool, doUpdates clause.Set) *clause.OnConflict
OnConflictClause generates ON CONFLICT clause containing columns tagged with "setting" in the struct of "entity".
Types ¶
type JSONB ¶
type JSONB json.RawMessage
JSONB provides PostgreSQL jsonb type support for gorm.
func (JSONB) GormDataType ¶
Click to show internal directories.
Click to hide internal directories.