Versions in this module Expand all Collapse all v0 v0.1.10 Nov 12, 2024 v0.1.9 Oct 28, 2024 v0.1.8 Oct 3, 2024 v0.1.7 Sep 22, 2024 v0.1.6 Sep 21, 2024 v0.1.5 Sep 21, 2024 v0.1.4 Sep 21, 2024 v0.1.3 Sep 21, 2024 v0.1.2 Sep 21, 2024 Changes in this version + type OrderingColumnsOption interface + OrderingColumns func() []OrderingColumn v0.1.1 Sep 21, 2024 Changes in this version + type AfterOption interface + PrepareAfterQuery func(query *gorm.DB, idCol string, orderColumns []OrderingColumn) *gorm.DB type ListOptions + func (opts ListOptions) PrepareAfterQuery(query *gorm.DB, idCol string, orderColumns []OrderingColumn) *gorm.DB + type OrderingColumn struct + DESC bool + Name string type Pagination + After string + func (p *Pagination) PrepareAfterQuery(q *gorm.DB, idCol string, orderColumns []OrderingColumn) *gorm.DB v0.1.0 Sep 15, 2024 Changes in this version + type GroupOption struct + Groups []string + SummingFields []string + func (opt *GroupOption) PrepareQuery(query *gorm.DB) *gorm.DB + type ListOptions []QOption + func (opts ListOptions) PrepareQuery(query *gorm.DB) *gorm.DB + func (opts ListOptions) With(prep QOption) ListOptions + type Pagination struct + Offset int + Page int + Size int + func (p *Pagination) PrepareQuery(q *gorm.DB) *gorm.DB + type PreloadOption struct + Fields []string + func (opt *PreloadOption) PrepareQuery(query *gorm.DB) *gorm.DB + type QOption interface + PrepareQuery func(query *gorm.DB) *gorm.DB + type Repository struct + func (r *Repository) Logger(ctx context.Context) *zap.Logger + func (r *Repository) Master(ctx context.Context) *gorm.DB + func (r *Repository) PermissionManager(ctx context.Context) *permissions.Manager + func (r *Repository) Slave(ctx context.Context) *gorm.DB + func (r *Repository) Transaction(ctx context.Context) (*gorm.DB, context.Context, bool, error) + func (r *Repository) TransactionExec(ctx context.Context, fn func(ctx context.Context, tx *gorm.DB) error, ...) error