Versions in this module Expand all Collapse all v1 v1.0.0 Nov 24, 2021 Changes in this version + const FailQuery + var StandardAggregations = map[StandardAggregationsType]Aggregation + func ForFiltersFromParams(ctx context.Context, model interface{}, params buffalo.ParamValues) (pop.ScopeFunc, error) + func ForFirst() pop.ScopeFunc + func ForID(id string) pop.ScopeFunc + func ForIDForModel(id string, model interface{}) pop.ScopeFunc + func ForIDSet(idSet IDSet) pop.ScopeFunc + func ForIDWithTableName(id string, tablename string) pop.ScopeFunc + func ForIDs(ids []uuid.UUID) pop.ScopeFunc + func ForLast() pop.ScopeFunc + func ForLimit(limit int) pop.ScopeFunc + func ForNotNull(field string) pop.ScopeFunc + func ForNotNullDeletedAt() pop.ScopeFunc + func ForNotNullDeletedAtForModel(model interface{}) pop.ScopeFunc + func ForNotUuidID(uid uuid.UUID) pop.ScopeFunc + func ForNull(field string) pop.ScopeFunc + func ForNullDeletedAt() pop.ScopeFunc + func ForNullDeletedAtForModel(model interface{}) pop.ScopeFunc + func ForNullsUuidID(uid nulls.UUID) pop.ScopeFunc + func ForOne() pop.ScopeFunc + func ForOrder(orderClauses ...string) pop.ScopeFunc + func ForPaginateFromParams(params buffalo.ParamValues) pop.ScopeFunc + func ForSortFromParams(ctx context.Context, model interface{}, params buffalo.ParamValues) (pop.ScopeFunc, error) + func ForUuidID(uid uuid.UUID) pop.ScopeFunc + func GetAggregations(ctx context.Context, tx *pop.Connection, modelsPtr interface{}, ...) (interface{}, error) + func GetAggregationsFromParams(ctx context.Context, tx *pop.Connection, modelsPtr interface{}, ...) (interface{}, error) + func GetAllFilterColumnNames(ctx context.Context, modelPtr interface{}) ([]string, error) + func GetAllSortColumnNames(ctx context.Context, modelPtr interface{}) ([]string, error) + func GetFilterOptions(ctx context.Context, tx *pop.Connection, modelsPtr interface{}, ...) ([]interface{}, error) + func GetGroupedAggregations(ctx context.Context, tx *pop.Connection, modelsPtr interface{}, ...) ([]interface{}, error) + func GetGroupedAggregationsFromParams(ctx context.Context, tx *pop.Connection, modelsPtr interface{}, ...) ([]interface{}, error) + type Aggregation struct + Name string + ResultType reflect.Type + Statement string + type Aggregations []Aggregation + type Collection struct + func NewCollection(tx ...*pop.Connection) *Collection + func (sc *Collection) Dedupe() *Collection + func (sc *Collection) Flatten() pop.ScopeFunc + func (sc *Collection) Get() []pop.ScopeFunc + func (sc *Collection) Push(scopes ...pop.ScopeFunc) *Collection + type CustomColumn struct + Name string + ResultType reflect.Type + Statement string + func GetAllFilterColumns(ctx context.Context, modelPtr interface{}) ([]CustomColumn, error) + func GetAllSortColumns(ctx context.Context, modelPtr interface{}) ([]CustomColumn, error) + type CustomColumns []CustomColumn + func GenerateCustomColumnsForSubobject(subobjectPtr interface{}, subobjectJsonTag, joinClause string, ...) (CustomColumns, error) + type CustomFilterable interface + GetCustomFilters func(ctx context.Context) CustomColumns + type CustomSortable interface + GetCustomSorts func(ctx context.Context) CustomColumns + type IDSet map[uuid.UUID]bool + func (idSet IDSet) Keys() []uuid.UUID + type StandardAggregationsType string + const StandardAggregationsTypeAvg + const StandardAggregationsTypeCount + const StandardAggregationsTypeMax + const StandardAggregationsTypeMin + const StandardAggregationsTypeSum