Versions in this module Expand all Collapse all v1 v1.0.10 May 23, 2024 Changes in this version + type Option func(*ScopeBuilder) + func WithBuilder(name string, builder ScopeBuilderFunc) Option + func WithCustomFilters(customFilters map[string]ScopeBuilderFunc) Option + func WithFieldToColMap(fieldToColMap map[string]string) Option + type ScopeBuilder struct + CustomFilters map[string]ScopeBuilderFunc + FieldToColMap map[string]string + Registry ScopeBuilderRegistry + func NewBuilder(options ...Option) *ScopeBuilder + func (b *ScopeBuilder) Build(params query.Params) []ScopeFunc + func (b *ScopeBuilder) ClauseLockUpdate(param query.Param) ScopeFunc + func (b *ScopeBuilder) Filter(param query.Param) ScopeFunc + func (b *ScopeBuilder) GroupBy(param query.Param) ScopeFunc + func (b *ScopeBuilder) OR(param query.Param) ScopeFunc + func (b *ScopeBuilder) OrderBy(param query.Param) ScopeFunc + func (b *ScopeBuilder) Paginate(param query.Param) ScopeFunc + func (b *ScopeBuilder) Preload(param query.Param) ScopeFunc + func (b *ScopeBuilder) Select(param query.Param) ScopeFunc + type ScopeBuilderFunc = func(query.Param) ScopeFunc + type ScopeBuilderRegistry = map[string]ScopeBuilderFunc + type ScopeFunc = func(*gorm.DB) *gorm.DB