Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EquipmentEntry) predicate.EquipmentEntry
- func HasClass() predicate.EquipmentEntry
- func HasClassWith(preds ...predicate.Class) predicate.EquipmentEntry
- func HasEquipment() predicate.EquipmentEntry
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentEntry
- func ID(id int) predicate.EquipmentEntry
- func IDEQ(id int) predicate.EquipmentEntry
- func IDGT(id int) predicate.EquipmentEntry
- func IDGTE(id int) predicate.EquipmentEntry
- func IDIn(ids ...int) predicate.EquipmentEntry
- func IDLT(id int) predicate.EquipmentEntry
- func IDLTE(id int) predicate.EquipmentEntry
- func IDNEQ(id int) predicate.EquipmentEntry
- func IDNotIn(ids ...int) predicate.EquipmentEntry
- func Not(p predicate.EquipmentEntry) predicate.EquipmentEntry
- func Or(predicates ...predicate.EquipmentEntry) predicate.EquipmentEntry
- func Quantity(v int) predicate.EquipmentEntry
- func QuantityEQ(v int) predicate.EquipmentEntry
- func QuantityGT(v int) predicate.EquipmentEntry
- func QuantityGTE(v int) predicate.EquipmentEntry
- func QuantityIn(vs ...int) predicate.EquipmentEntry
- func QuantityLT(v int) predicate.EquipmentEntry
- func QuantityLTE(v int) predicate.EquipmentEntry
- func QuantityNEQ(v int) predicate.EquipmentEntry
- func QuantityNotIn(vs ...int) predicate.EquipmentEntry
- func ValidColumn(column string) bool
- type OrderOption
- func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassCount(opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the equipmententry type in the database. Label = "equipment_entry" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // 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 equipmententry in the database. Table = "equipment_entries" // ClassTable is the table that holds the class relation/edge. The primary key declared below. ClassTable = "class_starting_equipment" // 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. EquipmentTable = "equipment_entries" // 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" // EquipmentColumn is the table column denoting the equipment relation/edge. EquipmentColumn = "equipment_entry_equipment" )
Variables ¶
var ( // ClassPrimaryKey and ClassColumn2 are the table columns denoting the // primary key for the class relation (M2M). ClassPrimaryKey = []string{"class_id", "equipment_entry_id"} )
var Columns = []string{ FieldID, FieldQuantity, }
Columns holds all SQL columns for equipmententry fields.
var ForeignKeys = []string{
"equipment_entry_equipment",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "equipment_entries" table and are not defined as standalone fields in the schema.
var ( // QuantityValidator is a validator for the "quantity" field. It is called by the builders before save. QuantityValidator func(int) error )
Functions ¶
func And ¶
func And(predicates ...predicate.EquipmentEntry) predicate.EquipmentEntry
And groups predicates with the AND operator between them.
func HasClass ¶
func HasClass() predicate.EquipmentEntry
HasClass applies the HasEdge predicate on the "class" edge.
func HasClassWith ¶
func HasClassWith(preds ...predicate.Class) predicate.EquipmentEntry
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasEquipment ¶
func HasEquipment() predicate.EquipmentEntry
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentEntry
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.EquipmentEntry
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.EquipmentEntry
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.EquipmentEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.EquipmentEntry
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.EquipmentEntry
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.EquipmentEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.EquipmentEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.EquipmentEntry
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.EquipmentEntry) predicate.EquipmentEntry
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EquipmentEntry) predicate.EquipmentEntry
Or groups predicates with the OR operator between them.
func Quantity ¶
func Quantity(v int) predicate.EquipmentEntry
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
func QuantityEQ(v int) predicate.EquipmentEntry
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
func QuantityGT(v int) predicate.EquipmentEntry
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
func QuantityGTE(v int) predicate.EquipmentEntry
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
func QuantityIn(vs ...int) predicate.EquipmentEntry
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
func QuantityLT(v int) predicate.EquipmentEntry
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
func QuantityLTE(v int) predicate.EquipmentEntry
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
func QuantityNEQ(v int) predicate.EquipmentEntry
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
func QuantityNotIn(vs ...int) predicate.EquipmentEntry
QuantityNotIn applies the NotIn predicate on the "quantity" field.
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 EquipmentEntry queries.
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 ByEquipmentField ¶
func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByEquipmentField orders the results by equipment field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity field.