helper

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroup added in v1.1.0

func NewGroup(statment string) *group

func NewHaving added in v1.1.0

func NewHaving(query interface{}, args ...interface{}) *having

func NewSelect added in v1.1.0

func NewSelect(query interface{}, args ...interface{}) *field

func NewWhere

func NewWhere() *where

Types

type Builder added in v1.0.3

type Builder interface {
	WithWhere(where Where) Builder
	WithAssociate(associate associate.Associate) Builder
	WithPreload(preload ...associate.Preload) Builder
	WithHaving(having ...Having) Builder
	WithSelect(field ...Select) Builder
	WithGroup(group Group) Builder
	Build(db *gorm.DB) *gorm.DB
}

func NewBuilder

func NewBuilder() Builder

type Group added in v1.1.0

type Group interface {
	GetGroup() string
}

type Having added in v1.1.0

type Having interface {
	GetQuery() interface{}
	GetArgs() []interface{}
}

type Select added in v1.1.0

type Select interface {
	GetQuery() interface{}
	GetArgs() []interface{}
}

type Where added in v1.0.3

type Where interface {
	GetQuery() interface{}
	GetArgs() []interface{}
	Next() bool
	Rewind()
}

Jump to

Keyboard shortcuts

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