xgorm

package
v0.0.0-...-2beabf4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPaginator

func NewPaginator(tx, query *gorm.DB, items interface{}, option *PaginationOption) xpage.Paginator

NewPaginator 创建分页器

Types

type Exprs

type Exprs []clause.Expression

func (Exprs) Build

func (exprs Exprs) Build(builder clause.Builder)

type Hints

type Hints struct {
	Prefix  string
	Suffix  string
	Content string

	Clauses []string
	Before  bool
	After   bool
}

func (Hints) Build

func (hints Hints) Build(builder clause.Builder)

func (Hints) Merge

func (hints Hints) Merge(h Hints)

func (Hints) ModifyStatement

func (hints Hints) ModifyStatement(stmt *gorm.Statement)

type PaginationOption

type PaginationOption struct {
	UseSecond   bool
	IgnoreTotal bool
}

Jump to

Keyboard shortcuts

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