Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryPaginatedAll ¶
func QueryPaginatedAll(db *sql.DB, opts pagination.PaginationOptions, cb PaginatedResponseCallback, query string, args ...interface{}) error
Types ¶
type DefaultPaginatedResponse ¶
type DefaultPaginatedResponse struct {
// contains filtered or unexported fields
}
func (*DefaultPaginatedResponse) Pagination ¶
func (r *DefaultPaginatedResponse) Pagination() pagination.Pagination
func (*DefaultPaginatedResponse) Rows ¶
func (r *DefaultPaginatedResponse) Rows() *gosql.Rows
type PaginatedResponse ¶
type PaginatedResponse interface { Rows() *sql.Rows Pagination() pagination.Pagination }
func QueryPaginated ¶
func QueryPaginated(db *sql.DB, opts pagination.PaginationOptions, query string, args ...interface{}) (PaginatedResponse, error)
type PaginatedResponseCallback ¶
type PaginatedResponseCallback func(PaginatedResponse) error
Click to show internal directories.
Click to hide internal directories.