scopes

package
v0.19.784 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDisableViews

func WithDisableViews(db *gorm.DB) *gorm.DB

DisableViews is a scope that removes usage of views. Usage for when the view returns too much data or is slow.

func WithOffsetPagination

func WithOffsetPagination(db *gorm.DB) *gorm.DB

EnablePagination is a scope that enables pagination for the query.

func WithOverrideTable

func WithOverrideTable(name string) func(*gorm.DB) *gorm.DB

func WithPatcher

func WithPatcher(options patcher.PatcherOptions) func(db *gorm.DB) *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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