clause

package
v0.0.0-...-80e4815 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefaultClauses

func RegisterDefaultClauses(db *gorm.DB)

Types

type Filter

type Filter struct {
	Exprs []gormClause.Expression
}

Filter filter clause

func (Filter) Build

func (filter Filter) Build(builder gormClause.Builder)

Build build where clause

func (Filter) Name

func (filter Filter) Name() string

Name filter clause name

type Limit

type Limit struct {
	Limit  int
	Offset int
}

Limit limit clause

func (Limit) Build

func (limit Limit) Build(builder gormClause.Builder)

Build build where clause

func (Limit) MergeClause

func (limit Limit) MergeClause(clause *gormClause.Clause)

MergeClause merge order by clauses

func (Limit) Name

func (limit Limit) Name() string

Name where clause name

type Sort

type Sort struct {
	Columns    []gormClause.OrderByColumn
	Expression gormClause.Expression
}

func (Sort) Build

func (sort Sort) Build(builder gormClause.Builder)

Build build where clause

func (Sort) MergeClause

func (sort Sort) MergeClause(clause *gormClause.Clause)

MergeClause merge order by clauses

func (Sort) Name

func (sort Sort) Name() string

Name where clause name

Jump to

Keyboard shortcuts

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