Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IncomeBracket) predicate.IncomeBracket
- func ClassEQ(v Class) predicate.IncomeBracket
- func ClassIn(vs ...Class) predicate.IncomeBracket
- func ClassNEQ(v Class) predicate.IncomeBracket
- func ClassNotIn(vs ...Class) predicate.IncomeBracket
- func ClassValidator(c Class) error
- func HasPerson() predicate.IncomeBracket
- func HasPersonWith(preds ...predicate.Individual) predicate.IncomeBracket
- func ID(id int) predicate.IncomeBracket
- func IDEQ(id int) predicate.IncomeBracket
- func IDGT(id int) predicate.IncomeBracket
- func IDGTE(id int) predicate.IncomeBracket
- func IDIn(ids ...int) predicate.IncomeBracket
- func IDLT(id int) predicate.IncomeBracket
- func IDLTE(id int) predicate.IncomeBracket
- func IDNEQ(id int) predicate.IncomeBracket
- func IDNotIn(ids ...int) predicate.IncomeBracket
- func Not(p predicate.IncomeBracket) predicate.IncomeBracket
- func Or(predicates ...predicate.IncomeBracket) predicate.IncomeBracket
- func ValidColumn(column string) bool
- type Class
Constants ¶
const ( // Label holds the string label denoting the incomebracket type in the database. Label = "income_bracket" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldClass holds the string denoting the class field in the database. FieldClass = "class" // EdgePerson holds the string denoting the person edge name in mutations. EdgePerson = "person" // Table holds the table name of the incomebracket in the database. Table = "income_brackets" // PersonTable is the table that holds the person relation/edge. PersonTable = "income_brackets" // PersonInverseTable is the table name for the Individual entity. // It exists in this package in order to avoid circular dependency with the "individual" package. PersonInverseTable = "individuals" // PersonColumn is the table column denoting the person relation/edge. PersonColumn = "individual_bracket" )
const DefaultClass = ClassLte50K
ClassLte50K is the default value of the Class enum.
Variables ¶
var Columns = []string{ FieldID, FieldClass, }
Columns holds all SQL columns for incomebracket fields.
var ForeignKeys = []string{
"individual_bracket",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "income_brackets" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.IncomeBracket) predicate.IncomeBracket
And groups predicates with the AND operator between them.
func ClassEQ ¶
func ClassEQ(v Class) predicate.IncomeBracket
ClassEQ applies the EQ predicate on the "class" field.
func ClassIn ¶
func ClassIn(vs ...Class) predicate.IncomeBracket
ClassIn applies the In predicate on the "class" field.
func ClassNEQ ¶
func ClassNEQ(v Class) predicate.IncomeBracket
ClassNEQ applies the NEQ predicate on the "class" field.
func ClassNotIn ¶
func ClassNotIn(vs ...Class) predicate.IncomeBracket
ClassNotIn applies the NotIn predicate on the "class" field.
func ClassValidator ¶
ClassValidator is a validator for the "class" field enum values. It is called by the builders before save.
func HasPerson ¶
func HasPerson() predicate.IncomeBracket
HasPerson applies the HasEdge predicate on the "person" edge.
func HasPersonWith ¶
func HasPersonWith(preds ...predicate.Individual) predicate.IncomeBracket
HasPersonWith applies the HasEdge predicate on the "person" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.IncomeBracket
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.IncomeBracket
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.IncomeBracket
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.IncomeBracket
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.IncomeBracket
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.IncomeBracket
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.IncomeBracket
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.IncomeBracket
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.IncomeBracket) predicate.IncomeBracket
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.IncomeBracket) predicate.IncomeBracket
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).