qc

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(c ...qb.Condition) qb.Condition

And requires both conditions to be true

func Between

func Between(f1 qb.Field, i1, i2 interface{}) qb.Condition

Between checks if f1 is between i1 and i2

func Eq

func Eq(i1, i2 interface{}) qb.Condition

Eq checks if the values are equal (=)

func Exists

func Exists(q qb.SelectQuery) qb.Condition

Exists checks if the subquery returns rows

func Gt

func Gt(i1, i2 interface{}) qb.Condition

Gt checks if i1 is greater than i2 (>)

func Gte

func Gte(i1, i2 interface{}) qb.Condition

Gte checks if i1 is greater or equal to i2 (>=)

func In

func In(f1 qb.Field, args ...interface{}) qb.Condition

In checks if f1 is in the list

func InQuery

func InQuery(f qb.Field, q qb.SelectQuery) qb.Condition

InQuery checks if f1 is in the subquery's result

func IsNull

func IsNull(f1 qb.Field) qb.Condition

IsNull checks if the field is NULL

func Like

func Like(f1 qb.Field, s string) qb.Condition

Like checks if the f1 is like s

func Lt

func Lt(i1, i2 interface{}) qb.Condition

Lt checks if i1 is less than i2 (<)

func Lte

func Lte(i1, i2 interface{}) qb.Condition

Lte checks if i1 is less than or equal to i2 (<=)

func Ne

func Ne(i1, i2 interface{}) qb.Condition

Ne checks if the values are unequal (!=)

func NewCondition

func NewCondition(values ...interface{}) qb.Condition

NewCondition returns a new Condition

func Not

func Not(c qb.Condition) qb.Condition

Not reverses a boolean (!)

func NotNull

func NotNull(f1 qb.Field) qb.Condition

NotNull checks if the field is not NULL

func Or

func Or(c ...qb.Condition) qb.Condition

Or requires one of the conditions to be true

Types

This section is empty.

Jump to

Keyboard shortcuts

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