qmhelper

package
v4.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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