Documentation ¶
Index ¶
- func Limit(limit, offset int) func(tx *gorm.DB) *gorm.DB
- func OnConflict(onConflict []interface{}, doUpdates []interface{}) clause.OnConflict
- func OrderBy(orderBy map[string]string, tableName string) func(tx *gorm.DB) *gorm.DB
- func Returning(columns ...string) clause.Returning
- func SearchFilter(search map[string]interface{}, searchable FieldSearchable) func(tx *gorm.DB) *gorm.DB
- func Where(query string, args ...interface{}) func(tx *gorm.DB) *gorm.DB
- func WhereFilter(search map[string]interface{}, searchable FieldSearchable) func(tx *gorm.DB) *gorm.DB
- type Condition
- type FieldSearchable
- type Search
- type SearchContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnConflict ¶
func OnConflict(onConflict []interface{}, doUpdates []interface{}) clause.OnConflict
func SearchFilter ¶
func WhereFilter ¶
Types ¶
type FieldSearchable ¶
type Search ¶
type Search struct { Condition Condition Column string Context SearchContext // contains filtered or unexported fields }
type SearchContext ¶
type SearchContext int
const ( AllCtx SearchContext = iota WhereCtx SearchCtx )
Click to show internal directories.
Click to hide internal directories.