Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EquipmentChoice) predicate.EquipmentChoice
- func Choose(v int) predicate.EquipmentChoice
- func ChooseEQ(v int) predicate.EquipmentChoice
- func ChooseGT(v int) predicate.EquipmentChoice
- func ChooseGTE(v int) predicate.EquipmentChoice
- func ChooseIn(vs ...int) predicate.EquipmentChoice
- func ChooseLT(v int) predicate.EquipmentChoice
- func ChooseLTE(v int) predicate.EquipmentChoice
- func ChooseNEQ(v int) predicate.EquipmentChoice
- func ChooseNotIn(vs ...int) predicate.EquipmentChoice
- func Desc(v string) predicate.EquipmentChoice
- func DescContains(v string) predicate.EquipmentChoice
- func DescContainsFold(v string) predicate.EquipmentChoice
- func DescEQ(v string) predicate.EquipmentChoice
- func DescEqualFold(v string) predicate.EquipmentChoice
- func DescGT(v string) predicate.EquipmentChoice
- func DescGTE(v string) predicate.EquipmentChoice
- func DescHasPrefix(v string) predicate.EquipmentChoice
- func DescHasSuffix(v string) predicate.EquipmentChoice
- func DescIn(vs ...string) predicate.EquipmentChoice
- func DescIsNil() predicate.EquipmentChoice
- func DescLT(v string) predicate.EquipmentChoice
- func DescLTE(v string) predicate.EquipmentChoice
- func DescNEQ(v string) predicate.EquipmentChoice
- func DescNotIn(vs ...string) predicate.EquipmentChoice
- func DescNotNil() predicate.EquipmentChoice
- func HasClass() predicate.EquipmentChoice
- func HasClassWith(preds ...predicate.Class) predicate.EquipmentChoice
- func HasEquipment() predicate.EquipmentChoice
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentChoice
- func ID(id int) predicate.EquipmentChoice
- func IDEQ(id int) predicate.EquipmentChoice
- func IDGT(id int) predicate.EquipmentChoice
- func IDGTE(id int) predicate.EquipmentChoice
- func IDIn(ids ...int) predicate.EquipmentChoice
- func IDLT(id int) predicate.EquipmentChoice
- func IDLTE(id int) predicate.EquipmentChoice
- func IDNEQ(id int) predicate.EquipmentChoice
- func IDNotIn(ids ...int) predicate.EquipmentChoice
- func Not(p predicate.EquipmentChoice) predicate.EquipmentChoice
- func Or(predicates ...predicate.EquipmentChoice) predicate.EquipmentChoice
- func ValidColumn(column string) bool
- type OrderOption
- func ByChoose(opts ...sql.OrderTermOption) OrderOption
- func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassCount(opts ...sql.OrderTermOption) OrderOption
- func ByDesc(opts ...sql.OrderTermOption) OrderOption
- func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the equipmentchoice type in the database. Label = "equipment_choice" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChoose holds the string denoting the choose field in the database. FieldChoose = "choose" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // Table holds the table name of the equipmentchoice in the database. Table = "equipment_choices" // ClassTable is the table that holds the class relation/edge. The primary key declared below. ClassTable = "class_equipment_choices" // ClassInverseTable is the table name for the Class entity. // It exists in this package in order to avoid circular dependency with the "class" package. ClassInverseTable = "classes" // EquipmentTable is the table that holds the equipment relation/edge. The primary key declared below. EquipmentTable = "equipment_choice_equipment" // EquipmentInverseTable is the table name for the Equipment entity. // It exists in this package in order to avoid circular dependency with the "equipment" package. EquipmentInverseTable = "equipment" )
Variables ¶
var ( // ClassPrimaryKey and ClassColumn2 are the table columns denoting the // primary key for the class relation (M2M). ClassPrimaryKey = []string{"class_id", "equipment_choice_id"} // EquipmentPrimaryKey and EquipmentColumn2 are the table columns denoting the // primary key for the equipment relation (M2M). EquipmentPrimaryKey = []string{"equipment_choice_id", "equipment_id"} )
var Columns = []string{ FieldID, FieldChoose, FieldDesc, }
Columns holds all SQL columns for equipmentchoice fields.
Functions ¶
func And ¶
func And(predicates ...predicate.EquipmentChoice) predicate.EquipmentChoice
And groups predicates with the AND operator between them.
func Choose ¶
func Choose(v int) predicate.EquipmentChoice
Choose applies equality check predicate on the "choose" field. It's identical to ChooseEQ.
func ChooseEQ ¶
func ChooseEQ(v int) predicate.EquipmentChoice
ChooseEQ applies the EQ predicate on the "choose" field.
func ChooseGT ¶
func ChooseGT(v int) predicate.EquipmentChoice
ChooseGT applies the GT predicate on the "choose" field.
func ChooseGTE ¶
func ChooseGTE(v int) predicate.EquipmentChoice
ChooseGTE applies the GTE predicate on the "choose" field.
func ChooseIn ¶
func ChooseIn(vs ...int) predicate.EquipmentChoice
ChooseIn applies the In predicate on the "choose" field.
func ChooseLT ¶
func ChooseLT(v int) predicate.EquipmentChoice
ChooseLT applies the LT predicate on the "choose" field.
func ChooseLTE ¶
func ChooseLTE(v int) predicate.EquipmentChoice
ChooseLTE applies the LTE predicate on the "choose" field.
func ChooseNEQ ¶
func ChooseNEQ(v int) predicate.EquipmentChoice
ChooseNEQ applies the NEQ predicate on the "choose" field.
func ChooseNotIn ¶
func ChooseNotIn(vs ...int) predicate.EquipmentChoice
ChooseNotIn applies the NotIn predicate on the "choose" field.
func Desc ¶
func Desc(v string) predicate.EquipmentChoice
Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.
func DescContains ¶
func DescContains(v string) predicate.EquipmentChoice
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
func DescContainsFold(v string) predicate.EquipmentChoice
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEQ ¶
func DescEQ(v string) predicate.EquipmentChoice
DescEQ applies the EQ predicate on the "desc" field.
func DescEqualFold ¶
func DescEqualFold(v string) predicate.EquipmentChoice
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescGT ¶
func DescGT(v string) predicate.EquipmentChoice
DescGT applies the GT predicate on the "desc" field.
func DescGTE ¶
func DescGTE(v string) predicate.EquipmentChoice
DescGTE applies the GTE predicate on the "desc" field.
func DescHasPrefix ¶
func DescHasPrefix(v string) predicate.EquipmentChoice
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
func DescHasSuffix(v string) predicate.EquipmentChoice
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func DescIn ¶
func DescIn(vs ...string) predicate.EquipmentChoice
DescIn applies the In predicate on the "desc" field.
func DescIsNil ¶
func DescIsNil() predicate.EquipmentChoice
DescIsNil applies the IsNil predicate on the "desc" field.
func DescLT ¶
func DescLT(v string) predicate.EquipmentChoice
DescLT applies the LT predicate on the "desc" field.
func DescLTE ¶
func DescLTE(v string) predicate.EquipmentChoice
DescLTE applies the LTE predicate on the "desc" field.
func DescNEQ ¶
func DescNEQ(v string) predicate.EquipmentChoice
DescNEQ applies the NEQ predicate on the "desc" field.
func DescNotIn ¶
func DescNotIn(vs ...string) predicate.EquipmentChoice
DescNotIn applies the NotIn predicate on the "desc" field.
func DescNotNil ¶
func DescNotNil() predicate.EquipmentChoice
DescNotNil applies the NotNil predicate on the "desc" field.
func HasClass ¶
func HasClass() predicate.EquipmentChoice
HasClass applies the HasEdge predicate on the "class" edge.
func HasClassWith ¶
func HasClassWith(preds ...predicate.Class) predicate.EquipmentChoice
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasEquipment ¶
func HasEquipment() predicate.EquipmentChoice
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentChoice
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.EquipmentChoice
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.EquipmentChoice
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.EquipmentChoice
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.EquipmentChoice
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.EquipmentChoice
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.EquipmentChoice
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.EquipmentChoice
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.EquipmentChoice
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.EquipmentChoice) predicate.EquipmentChoice
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EquipmentChoice) predicate.EquipmentChoice
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the EquipmentChoice queries.
func ByChoose ¶
func ByChoose(opts ...sql.OrderTermOption) OrderOption
ByChoose orders the results by the choose field.
func ByClass ¶
func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByClass orders the results by class terms.
func ByClassCount ¶
func ByClassCount(opts ...sql.OrderTermOption) OrderOption
ByClassCount orders the results by class count.
func ByDesc ¶
func ByDesc(opts ...sql.OrderTermOption) OrderOption
ByDesc orders the results by the desc field.
func ByEquipment ¶
func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipment orders the results by equipment terms.
func ByEquipmentCount ¶
func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentCount orders the results by equipment count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.