package
0.0.0-20230925091837-55f7a6b23beb
Repository: https://github.com/xdbfoundation/go.git
Documentation: pkg.go.dev
# Functions
MustPageQuery behaves as NewPageQuery, but panics upon error.
NewPageQuery creates a new PageQuery struct, ensuring the order, limit, and cursor are set to the appropriate defaults and are valid.
# Constants
DefaultPageSize is the default page size for db queries.
DefaultPairSep is the default separator used to separate two numbers for CursorInt64Pair.
MaxPageSize is the max page size for db queries.
OrderAscending is used to indicate an ascending order in request params.
OrderDescending is used to indicate an descending order in request params.
# Variables
ErrInvalidCursor is an error that occurs when a user-provided cursor string is invalid.
ErrInvalidLimit is an error that occurs when a user-provided limit num is invalid.
ErrInvalidOrder is an error that occurs when a user-provided order string is invalid.
# Structs
No description provided by the author
PageQuery represents a portion of a Query struct concerned with paging through a large dataset.