Documentation ¶ Index ¶ func ScopesPaginate(o *Option) func(db *gorm.DB) *gorm.DB type Opt func WithArgs(args ...any) Opt func WithPaginate(page, size int) Opt func WithQuery(query any) Opt func WithUnscoped() Opt func WithWhere(query any, args ...any) Opt type Option type Paginate type Where Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ScopesPaginate ¶ func ScopesPaginate(o *Option) func(db *gorm.DB) *gorm.DB Types ¶ type Opt ¶ type Opt func(*Option) func WithArgs ¶ func WithArgs(args ...any) Opt func WithPaginate ¶ func WithPaginate(page, size int) Opt func WithQuery ¶ func WithQuery(query any) Opt func WithUnscoped ¶ func WithUnscoped() Opt func WithWhere ¶ func WithWhere(query any, args ...any) Opt type Option ¶ type Option struct { Where Paginate Unscoped bool } type Paginate ¶ type Paginate struct { Page int PageSize int } type Where ¶ type Where struct { Query any Args []any } Source Files ¶ View all Source files options.go Click to show internal directories. Click to hide internal directories.