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
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
type IsNull ¶
type IsNull struct {
Field string
}
IsNull is a condition struct using for checking field value in database is a null value
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
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