query

package
v0.4.34 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByID

func ByID(tx *gorm.DB, modelObj models.IModel, id *datatypes.UUID) error

func FirstByField

func FirstByField(tx *gorm.DB, modelObj models.IModel, fieldName string, fieldValue interface{}) error

func FirstByFields

func FirstByFields(tx *gorm.DB, modelObj models.IModel, fqs []*FieldQuery) error

Types

type FieldQuery

type FieldQuery struct {
	Name  string
	Value interface{}
}

Jump to

Keyboard shortcuts

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