wrapper

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 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 Query

type Query struct {
	// contains filtered or unexported fields
}

func And

func And(causes ...*Query) (q *Query)

func Eq

func Eq(field string, val interface{}) *Query

func EqIf

func EqIf(test bool, field string, val interface{}) *Query

func Expr

func Expr(field string, val ...interface{}) *Query

func ExprIf

func ExprIf(test bool, field string, val ...interface{}) *Query

func Gt

func Gt(field string, val interface{}) *Query

func GtIf

func GtIf(test bool, field string, val interface{}) *Query

func Gte

func Gte(field string, val interface{}) *Query

func GteIf

func GteIf(test bool, field string, val interface{}) *Query

func In

func In(field string, val ...interface{}) *Query

func InIf

func InIf(test bool, field string, val ...interface{}) *Query

func InSql

func InSql(field string, sql string, val ...interface{}) *Query

func InSqlIf

func InSqlIf(test bool, field string, sql string, val ...interface{}) *Query

func Like

func Like(field string, val interface{}) *Query

func LikeIf

func LikeIf(test bool, field string, val interface{}) *Query

func Lt

func Lt(field string, val interface{}) *Query

func LtIf

func LtIf(test bool, field string, val interface{}) *Query

func Lte

func Lte(field string, val interface{}) *Query

func LteIf

func LteIf(test bool, field string, val interface{}) *Query

func Or

func Or(causes ...*Query) (q *Query)

func Q

func Q() *Query

func (*Query) And

func (q *Query) And(causes ...*Query) *Query

func (*Query) Asc

func (q *Query) Asc(fields ...string) *Query

func (*Query) Build

func (q *Query) Build() []interface{}

func (*Query) Desc

func (q *Query) Desc(fields ...string) *Query

func (*Query) Eq

func (q *Query) Eq(field string, val interface{}) *Query

func (*Query) EqIf

func (q *Query) EqIf(test bool, field string, val interface{}) *Query

func (*Query) Expr

func (q *Query) Expr(field string, val ...interface{}) *Query

func (*Query) ExprIf

func (q *Query) ExprIf(test bool, field string, val ...interface{}) *Query

func (*Query) ForUpdate

func (q *Query) ForUpdate() *Update

func (*Query) GroupBy

func (q *Query) GroupBy(fields ...string) *Query

func (*Query) Gt

func (q *Query) Gt(field string, val interface{}) *Query

func (*Query) GtIf

func (q *Query) GtIf(test bool, field string, val interface{}) *Query

func (*Query) Gte

func (q *Query) Gte(field string, val interface{}) *Query

func (*Query) GteIf

func (q *Query) GteIf(test bool, field string, val interface{}) *Query

func (*Query) In

func (q *Query) In(field string, val ...interface{}) *Query

func (*Query) InIf

func (q *Query) InIf(test bool, field string, val ...interface{}) *Query

func (*Query) InSql

func (q *Query) InSql(field string, sql string, val ...interface{}) *Query

func (*Query) InSqlIf

func (q *Query) InSqlIf(test bool, field string, sql string, val ...interface{}) *Query

func (*Query) Like

func (q *Query) Like(field string, val interface{}) *Query

func (*Query) LikeIf

func (q *Query) LikeIf(test bool, field string, val interface{}) *Query

func (*Query) Lt

func (q *Query) Lt(field string, val interface{}) *Query

func (*Query) LtIf

func (q *Query) LtIf(test bool, field string, val interface{}) *Query

func (*Query) Lte

func (q *Query) Lte(field string, val interface{}) *Query

func (*Query) LteIf

func (q *Query) LteIf(test bool, field string, val interface{}) *Query

func (*Query) Or

func (q *Query) Or(cause *Query) *Query

func (*Query) Scope added in v0.1.1

func (q *Query) Scope(db *gorm.DB) *gorm.DB

type Update

type Update struct {
	// contains filtered or unexported fields
}

func Set

func Set(field string, val interface{}) *Update

func SetExpr

func SetExpr(field string, Expr string, args ...interface{}) *Update

func SetExprIf

func SetExprIf(test bool, field string, Expr string, args ...interface{}) *Update

func SetIf

func SetIf(test bool, field string, val interface{}) *Update

func U

func U(querys ...*Query) *Update

func (*Update) And

func (u *Update) And(causes ...*Query) *Update

func (*Update) Data

func (u *Update) Data() map[string]interface{}

func (*Update) Eq

func (u *Update) Eq(field string, val interface{}) *Update

func (*Update) EqIf

func (u *Update) EqIf(test bool, field string, val interface{}) *Update

func (*Update) Expr

func (u *Update) Expr(field string, val ...interface{}) *Update

func (*Update) ExprIf

func (u *Update) ExprIf(test bool, field string, val ...interface{}) *Update

func (*Update) Gt

func (u *Update) Gt(field string, val interface{}) *Update

func (*Update) GtIf

func (u *Update) GtIf(test bool, field string, val interface{}) *Update

func (*Update) Gte

func (u *Update) Gte(field string, val interface{}) *Update

func (*Update) GteIf

func (u *Update) GteIf(test bool, field string, val interface{}) *Update

func (*Update) In

func (u *Update) In(field string, val ...interface{}) *Update

func (*Update) InIf

func (u *Update) InIf(test bool, field string, val ...interface{}) *Update

func (*Update) InSql

func (u *Update) InSql(field string, sql string, val ...interface{}) *Update

func (*Update) InSqlIf

func (u *Update) InSqlIf(test bool, field string, sql string, val ...interface{}) *Update

func (*Update) Like

func (u *Update) Like(field string, val interface{}) *Update

func (*Update) LikeIf

func (u *Update) LikeIf(test bool, field string, val interface{}) *Update

func (*Update) Lt

func (u *Update) Lt(field string, val interface{}) *Update

func (*Update) LtIf

func (u *Update) LtIf(test bool, field string, val interface{}) *Update

func (*Update) Lte

func (u *Update) Lte(field string, val interface{}) *Update

func (*Update) LteIf

func (u *Update) LteIf(test bool, field string, val interface{}) *Update

func (*Update) Or

func (u *Update) Or(cause *Query) *Update

func (*Update) Query

func (u *Update) Query() *Query

func (*Update) Set

func (u *Update) Set(field string, val interface{}) *Update

func (*Update) SetExpr

func (u *Update) SetExpr(field string, expr string, args ...interface{}) *Update

func (*Update) SetExprIf

func (u *Update) SetExprIf(test bool, field string, Expr string, args ...interface{}) *Update

func (*Update) SetIf

func (u *Update) SetIf(test bool, field string, val interface{}) *Update

Jump to

Keyboard shortcuts

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