term

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Equal

type Equal struct {
	Field string
	Value interface{}
}

Equal is a condition struct using for comparing field value in database is equal to given value

func (Equal) GetField

func (c Equal) GetField() string

GetField returns the field name

func (Equal) GetValue

func (c Equal) GetValue() interface{}

GetValue return the value to compare

type GreaterThan

type GreaterThan struct {
	Field string
	Value interface{}
}

GreaterThan is a condition struct using for comparing field value in database is greater than the given value

func (GreaterThan) GetField

func (c GreaterThan) GetField() string

GetField returns the field name

func (GreaterThan) GetValue

func (c GreaterThan) GetValue() interface{}

GetValue return the value to compare

type GreaterThanEqual

type GreaterThanEqual struct {
	Field string
	Value interface{}
}

GreaterThanEqual is a condition struct using for comparing field value in database is greater than or equal the given value

func (GreaterThanEqual) GetField

func (c GreaterThanEqual) GetField() string

GetField returns the field name

func (GreaterThanEqual) GetValue

func (c GreaterThanEqual) GetValue() interface{}

GetValue return the value to compare

type In

type In struct {
	Field  string
	Values []interface{}
}

In is a condition struct using for checking field value in database is in one of given values

func (In) GetField

func (c In) GetField() string

GetField returns the field name

func (In) GetValue

func (c In) GetValue() interface{}

GetValue return the value to compare

type IsNull

type IsNull struct {
	Field string
}

IsNull is a condition struct using for checking field value in database is a null value

func (IsNull) GetField

func (c IsNull) GetField() string

GetField returns the field name

func (IsNull) GetValue

func (c IsNull) GetValue() interface{}

GetValue return the value to compare

type LessThan

type LessThan struct {
	Field string
	Value interface{}
}

LessThan is a condition struct using for comparing field value in database is less than the given value

func (LessThan) GetField

func (c LessThan) GetField() string

GetField returns the field name

func (LessThan) GetValue

func (c LessThan) GetValue() interface{}

GetValue return the value to compare

type LessThanEqual

type LessThanEqual struct {
	Field string
	Value interface{}
}

LessThanEqual is a condition struct using for comparing field value in database is less than or equal the given value

func (LessThanEqual) GetField

func (c LessThanEqual) GetField() string

GetField returns the field name

func (LessThanEqual) GetValue

func (c LessThanEqual) GetValue() interface{}

GetValue return the value to compare

type NotEqual

type NotEqual struct {
	Field string
	Value interface{}
}

NotEqual is a condition struct using for comparing field value in database is not equal to given value

func (NotEqual) GetField

func (c NotEqual) GetField() string

GetField returns the field name

func (NotEqual) GetValue

func (c NotEqual) GetValue() interface{}

GetValue return the value to compare

type NotNull

type NotNull struct {
	Field string
}

NotNull is a condition struct using for checking field value in database is a null value

func (NotNull) GetField

func (c NotNull) GetField() string

GetField returns the field name

func (NotNull) GetValue

func (c NotNull) GetValue() interface{}

GetValue return the value to compare

Jump to

Keyboard shortcuts

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