Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2025 Changes in this version + func RegisterTenant(key string, valueFunc func(context.Context) string) + type Option func(*Options) + func WithClauses(conds ...clause.Expression) Option + func WithFilter(filter map[any]any) Option + func WithLimit(limit int64) Option + func WithOffset(offset int64) Option + func WithOrder(order string) Option + func WithPage(page int, pageSize int) Option + func WithQuery(query interface{}, args ...interface{}) Option + type Options struct + Clauses []clause.Expression + Filters map[any]any + Limit int + Offset int + Order string + Queries []Query + func C(conds ...clause.Expression) *Options + func F(kvs ...any) *Options + func L(limit int) *Options + func NewWhere(opts ...Option) *Options + func O(offset int) *Options + func P(page int, pageSize int) *Options + func Q(query interface{}, args ...interface{}) *Options + func R(order string) *Options + func T(ctx context.Context) *Options + func (whr *Options) C(conds ...clause.Expression) *Options + func (whr *Options) F(kvs ...any) *Options + func (whr *Options) L(limit int) *Options + func (whr *Options) O(offset int) *Options + func (whr *Options) P(page int, pageSize int) *Options + func (whr *Options) Q(query interface{}, args ...interface{}) *Options + func (whr *Options) R(order string) *Options + func (whr *Options) T(ctx context.Context) *Options + func (whr *Options) Where(db *gorm.DB) *gorm.DB + type Query struct + Args []interface{} + Query interface{} + type Tenant struct + Key string + ValueFunc func(ctx context.Context) string + type Where interface + Where func(db *gorm.DB) *gorm.DB