qmhelper

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: BSD-3-Clause Imports: 3 Imported by: 270

Documentation

Index

Constants

View Source
const (
	EQ  operator = "="
	NEQ operator = "!="
	LT  operator = "<"
	LTE operator = "<="
	GT  operator = ">"
	GTE operator = ">="
)

Supported operations

Variables

This section is empty.

Functions

This section is empty.

Types

type Nullable

type Nullable interface {
	IsZero() bool
}

Nullable object

type WhereQueryMod

type WhereQueryMod struct {
	Clause string
	Args   []interface{}
}

WhereQueryMod allows construction of where clauses

func Where

func Where(name string, operator operator, value interface{}) WhereQueryMod

Where is a helper for doing operations on primitive types

func WhereIsNotNull

func WhereIsNotNull(name string) WhereQueryMod

WhereIsNotNull is a helper that just returns "name is not null"

func WhereIsNull

func WhereIsNull(name string) WhereQueryMod

WhereIsNull is a helper that just returns "name is null"

func WhereNullEQ

func WhereNullEQ(name string, negated bool, value interface{}) WhereQueryMod

WhereNullEQ is a helper for doing equality with null types

func (WhereQueryMod) Apply

func (qm WhereQueryMod) Apply(q *queries.Query)

Apply implements QueryMod.Apply.

Jump to

Keyboard shortcuts

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