Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2026 Changes in this version + const DefaultLimit + const DefaultOffset + const DefaultSelectLimit + const SearchWordColumnName + const TagName + func GetDisplayColumns(displayColumns []string, wholeColumns []string) []string + func GetLimit(n uint32) uint32 + func GetLimitFromRequest(req RequestHadLimit) uint32 + func GetOffset(n uint32) uint32 + func GetOffsetFromRequest(req RequestHadOffset) uint32 + type Chain struct + func GetChain(tx *gorm.DB) *Chain + func (c *Chain) AddQueryOrderDir(req Request, defaultColumn string) *Chain + func (c *Chain) BuildFilterConditions(req Request, tableName string, exclude ...string) *Chain + func (c *Chain) BuildOwnerPathFilter(ctx context.Context, req Request, andConditions []string, ...) *Chain + type Database struct + func OpenDatabase(cfg *config.Config) (*Database, error) + func (p *Database) Close() error + type Request interface + Descriptor func() ([]byte, []int) + ProtoMessage func() + Reset func() + String func() string + type RequestHadLimit interface + GetLimit func() uint32 + type RequestHadOffset interface + GetOffset func() uint32 + type RequestWithOwnerPath interface + GetOwnerPath func() []string + type RequestWithReverse interface + GetReverse func() bool + type RequestWithSortKey interface + GetSortKey func() string