package
0.0.0-20181003211919-798156fdb816
Repository: https://github.com/digitalbitsorg/go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package core contains database record definitions useable for reading rows from a digitalbits Core db.
Package history contains database record definitions useable for reading rows from a the history portion of frontier's database.
No description provided by the author
Package sqx contains utilities and extensions for the squirrel package which is used by frontier to generate sql statements.

# 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.
ErrNotPageable is an error that occurs when the records provided to PageQuery.GetContinuations cannot be cast to Pageable.

# Structs

PageQuery represents a portion of a Query struct concerned with paging through a large dataset.

# Interfaces

Pageable records have a defined order, and the place withing that order is determined by the paging token.