pagination

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Cx         sql.ConnX
	Attributes string
	From       string
	Join       string
	Where      string
	Order      string
	Page       int
	PageSize   int
}

func (*Page) Limit

func (p *Page) Limit() int

func (*Page) NamedSelect added in v0.1.10

func (p *Page) NamedSelect(items interface{}, arg interface{}) (*service.ContentResponse, error)

func (*Page) Offset

func (p *Page) Offset() int

func (*Page) Select

func (p *Page) Select(items interface{}, params ...interface{}) (*service.ContentResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL