Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Pet
- func AgeEQ(v int) predicate.Pet
- func AgeGT(v int) predicate.Pet
- func AgeGTE(v int) predicate.Pet
- func AgeIn(vs ...int) predicate.Pet
- func AgeLT(v int) predicate.Pet
- func AgeLTE(v int) predicate.Pet
- func AgeNEQ(v int) predicate.Pet
- func AgeNotIn(vs ...int) predicate.Pet
- func And(predicates ...predicate.Pet) predicate.Pet
- func ID(id int) predicate.Pet
- func IDEQ(id int) predicate.Pet
- func IDGT(id int) predicate.Pet
- func IDGTE(id int) predicate.Pet
- func IDIn(ids ...int) predicate.Pet
- func IDLT(id int) predicate.Pet
- func IDLTE(id int) predicate.Pet
- func IDNEQ(id int) predicate.Pet
- func IDNotIn(ids ...int) predicate.Pet
- func Name(v string) predicate.Pet
- func NameContains(v string) predicate.Pet
- func NameContainsFold(v string) predicate.Pet
- func NameEQ(v string) predicate.Pet
- func NameEqualFold(v string) predicate.Pet
- func NameGT(v string) predicate.Pet
- func NameGTE(v string) predicate.Pet
- func NameHasPrefix(v string) predicate.Pet
- func NameHasSuffix(v string) predicate.Pet
- func NameIn(vs ...string) predicate.Pet
- func NameLT(v string) predicate.Pet
- func NameLTE(v string) predicate.Pet
- func NameNEQ(v string) predicate.Pet
- func NameNotIn(vs ...string) predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func ValidColumn(column string) bool
- func Weight(v float64) predicate.Pet
- func WeightEQ(v float64) predicate.Pet
- func WeightGT(v float64) predicate.Pet
- func WeightGTE(v float64) predicate.Pet
- func WeightIn(vs ...float64) predicate.Pet
- func WeightLT(v float64) predicate.Pet
- func WeightLTE(v float64) predicate.Pet
- func WeightNEQ(v float64) predicate.Pet
- func WeightNotIn(vs ...float64) predicate.Pet
Constants ¶
View Source
const ( // Label holds the string label denoting the pet type in the database. Label = "pet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // Table holds the table name of the pet in the database. Table = "pets" )
Variables ¶
View Source
var ( // AgeValidator is a validator for the "age" field. It is called by the builders before save. AgeValidator func(int) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
View Source
var Columns = []string{ FieldID, FieldAge, FieldName, FieldWeight, }
Columns holds all SQL columns for pet fields.
Functions ¶
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.