Versions in this module Expand all Collapse all v0 v0.1.0 Apr 11, 2026 Changes in this version + type CudRepository interface + Create func(ctx context.Context, model *M) error + CreateAll func(ctx context.Context, model *[]M, batchSize int) error + Delete func(ctx context.Context, model *M) error + DeleteAll func(ctx context.Context, model []M) error + DeleteAllBy func(ctx context.Context, where Where) error + Save func(ctx context.Context, model *M) error + SaveAll func(ctx context.Context, model []M) error + type Join = string + type Preload = string + type ReadRepository interface + Count func(ctx context.Context) (int64, error) + CountBy func(ctx context.Context, where Where) (int64, error) + FindAll func(ctx context.Context, preloads ...Preload) ([]M, error) + FindAllBy func(ctx context.Context, where Where, preloads ...Preload) ([]M, error) + FindAllOrdered func(ctx context.Context, orders []sort.Order, preloads ...Preload) ([]M, error) + FindAllPaginated func(ctx context.Context, pageable pagination.Pageable, preloads ...Preload) (*pagination.Page[M], error) + FindAllPaginatedBy func(ctx context.Context, pageable pagination.Pageable, where Where, ...) (*pagination.Page[M], error) + FindBy func(ctx context.Context, where Where, preloads ...Preload) (nilo.Option[M], error) + type Repository interface + type Where struct + func NewWhere(c where.Condition) *Where + func (w *Where) And(c where.Condition) *Where + func (w *Where) Build() Where + func (w *Where) Or(c where.Condition) *Where + func (w *Where) WithJoin(joins ...Join) *Where + func (w Where) Conditions() conditions + func (w Where) Joins() []Join