Documentation
¶
Index ¶
- func ForceReplica(db *gorm.DB) *gorm.DB
- func WithDisableViews(db *gorm.DB) *gorm.DB
- func WithOffsetPagination(db *gorm.DB) *gorm.DB
- func WithOverrideTable(name string) func(*gorm.DB) *gorm.DB
- func WithPatcher(options patcher.PatcherOptions) func(db *gorm.DB) *gorm.DB
- func WithReplica(db *gorm.DB) *gorm.DB
- func WithoutReplica(db *gorm.DB) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDisableViews ¶
DisableViews is a scope that removes usage of views. Usage for when the view returns too much data or is slow.
func WithOffsetPagination ¶
EnablePagination is a scope that enables pagination for the query.
func WithPatcher ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.