Documentation
¶
Index ¶
- func AllowedAliasSetLower(aliasMap map[string]string) map[string]struct{}
- func ApplyExactFilters(q *orm.Query, extras map[string]any, aliasMap map[string]string)
- func ApplyLimitOffset(q *orm.Query, limit, offset int64) *orm.Query
- func ApplyLimitOffsetPlusOne(q *orm.Query, limit, offset int64) *orm.Query
- func BuildOrderExpr[T any](items []T, fieldFn func(T) string, descFn func(T) bool, ...) []string
- func Count(ctx context.Context, q *orm.Query) (int64, error)
- func IsDuplicateErr(err error) bool
- func IsNoRowsErr(err error) bool
- func MapFieldToDB(alias string, aliasMap map[string]string) (string, bool)
- func SafeColumns(requested []string, aliasMap map[string]string) []string
- func TrimHasNext[T any](rows []T, limit int64) ([]T, bool)
- func WithNotDeleted(q *orm.Query) *orm.Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedAliasSetLower ¶
func ApplyExactFilters ¶
func ApplyLimitOffsetPlusOne ¶
func BuildOrderExpr ¶
func IsDuplicateErr ¶
func IsNoRowsErr ¶
func TrimHasNext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.