cursor_pagination

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorPagination

type CursorPagination struct {
}

func (*CursorPagination) ToOrder

func (pagination *CursorPagination) ToOrder(desc bool, pk, field spansql.Expr) ([2]spansql.Order, error)

func (*CursorPagination) ToPagination

func (pagination *CursorPagination) ToPagination(desc bool, pk, pkValue, field spansql.Expr, fieldValue map[spansql.Expr]spansql.Expr) (spansql.BoolExpr, error)

type ICursorPagination

type ICursorPagination interface {
	ToOrder(desc bool, pk, field spansql.Expr) ([2]spansql.Order, error)
	ToPagination(desc bool, pk, pkValue, field spansql.Expr, fieldValue map[spansql.Expr]spansql.Expr) (spansql.BoolExpr, error)
}

Jump to

Keyboard shortcuts

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