Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Gear) predicate.Gear
- func EquipmentID(v int) predicate.Gear
- func EquipmentIDEQ(v int) predicate.Gear
- func EquipmentIDIn(vs ...int) predicate.Gear
- func EquipmentIDNEQ(v int) predicate.Gear
- func EquipmentIDNotIn(vs ...int) predicate.Gear
- func GearCategory(v string) predicate.Gear
- func GearCategoryContains(v string) predicate.Gear
- func GearCategoryContainsFold(v string) predicate.Gear
- func GearCategoryEQ(v string) predicate.Gear
- func GearCategoryEqualFold(v string) predicate.Gear
- func GearCategoryGT(v string) predicate.Gear
- func GearCategoryGTE(v string) predicate.Gear
- func GearCategoryHasPrefix(v string) predicate.Gear
- func GearCategoryHasSuffix(v string) predicate.Gear
- func GearCategoryIn(vs ...string) predicate.Gear
- func GearCategoryLT(v string) predicate.Gear
- func GearCategoryLTE(v string) predicate.Gear
- func GearCategoryNEQ(v string) predicate.Gear
- func GearCategoryNotIn(vs ...string) predicate.Gear
- func HasEquipment() predicate.Gear
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Gear
- func ID(id int) predicate.Gear
- func IDEQ(id int) predicate.Gear
- func IDGT(id int) predicate.Gear
- func IDGTE(id int) predicate.Gear
- func IDIn(ids ...int) predicate.Gear
- func IDLT(id int) predicate.Gear
- func IDLTE(id int) predicate.Gear
- func IDNEQ(id int) predicate.Gear
- func IDNotIn(ids ...int) predicate.Gear
- func Indx(v string) predicate.Gear
- func IndxContains(v string) predicate.Gear
- func IndxContainsFold(v string) predicate.Gear
- func IndxEQ(v string) predicate.Gear
- func IndxEqualFold(v string) predicate.Gear
- func IndxGT(v string) predicate.Gear
- func IndxGTE(v string) predicate.Gear
- func IndxHasPrefix(v string) predicate.Gear
- func IndxHasSuffix(v string) predicate.Gear
- func IndxIn(vs ...string) predicate.Gear
- func IndxLT(v string) predicate.Gear
- func IndxLTE(v string) predicate.Gear
- func IndxNEQ(v string) predicate.Gear
- func IndxNotIn(vs ...string) predicate.Gear
- func Name(v string) predicate.Gear
- func NameContains(v string) predicate.Gear
- func NameContainsFold(v string) predicate.Gear
- func NameEQ(v string) predicate.Gear
- func NameEqualFold(v string) predicate.Gear
- func NameGT(v string) predicate.Gear
- func NameGTE(v string) predicate.Gear
- func NameHasPrefix(v string) predicate.Gear
- func NameHasSuffix(v string) predicate.Gear
- func NameIn(vs ...string) predicate.Gear
- func NameLT(v string) predicate.Gear
- func NameLTE(v string) predicate.Gear
- func NameNEQ(v string) predicate.Gear
- func NameNotIn(vs ...string) predicate.Gear
- func Not(p predicate.Gear) predicate.Gear
- func Or(predicates ...predicate.Gear) predicate.Gear
- func Quantity(v int) predicate.Gear
- func QuantityEQ(v int) predicate.Gear
- func QuantityGT(v int) predicate.Gear
- func QuantityGTE(v int) predicate.Gear
- func QuantityIn(vs ...int) predicate.Gear
- func QuantityIsNil() predicate.Gear
- func QuantityLT(v int) predicate.Gear
- func QuantityLTE(v int) predicate.Gear
- func QuantityNEQ(v int) predicate.Gear
- func QuantityNotIn(vs ...int) predicate.Gear
- func QuantityNotNil() predicate.Gear
- func ValidColumn(column string) bool
- type OrderOption
- func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
- func ByGearCategory(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the gear type in the database. Label = "gear" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldGearCategory holds the string denoting the gear_category field in the database. FieldGearCategory = "gear_category" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldEquipmentID holds the string denoting the equipment_id field in the database. FieldEquipmentID = "equipment_id" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // Table holds the table name of the gear in the database. Table = "gears" // EquipmentTable is the table that holds the equipment relation/edge. EquipmentTable = "gears" // 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_id" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldGearCategory, FieldQuantity, FieldEquipmentID, }
Columns holds all SQL columns for gear fields.
Functions ¶
func EquipmentID ¶
EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.
func EquipmentIDEQ ¶
EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.
func EquipmentIDIn ¶
EquipmentIDIn applies the In predicate on the "equipment_id" field.
func EquipmentIDNEQ ¶
EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.
func EquipmentIDNotIn ¶
EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.
func GearCategory ¶
GearCategory applies equality check predicate on the "gear_category" field. It's identical to GearCategoryEQ.
func GearCategoryContains ¶
GearCategoryContains applies the Contains predicate on the "gear_category" field.
func GearCategoryContainsFold ¶
GearCategoryContainsFold applies the ContainsFold predicate on the "gear_category" field.
func GearCategoryEQ ¶
GearCategoryEQ applies the EQ predicate on the "gear_category" field.
func GearCategoryEqualFold ¶
GearCategoryEqualFold applies the EqualFold predicate on the "gear_category" field.
func GearCategoryGT ¶
GearCategoryGT applies the GT predicate on the "gear_category" field.
func GearCategoryGTE ¶
GearCategoryGTE applies the GTE predicate on the "gear_category" field.
func GearCategoryHasPrefix ¶
GearCategoryHasPrefix applies the HasPrefix predicate on the "gear_category" field.
func GearCategoryHasSuffix ¶
GearCategoryHasSuffix applies the HasSuffix predicate on the "gear_category" field.
func GearCategoryIn ¶
GearCategoryIn applies the In predicate on the "gear_category" field.
func GearCategoryLT ¶
GearCategoryLT applies the LT predicate on the "gear_category" field.
func GearCategoryLTE ¶
GearCategoryLTE applies the LTE predicate on the "gear_category" field.
func GearCategoryNEQ ¶
GearCategoryNEQ applies the NEQ predicate on the "gear_category" field.
func GearCategoryNotIn ¶
GearCategoryNotIn applies the NotIn predicate on the "gear_category" field.
func HasEquipment ¶
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
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 Quantity ¶
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
QuantityIn applies the In predicate on the "quantity" field.
func QuantityIsNil ¶
QuantityIsNil applies the IsNil predicate on the "quantity" field.
func QuantityLT ¶
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func QuantityNotNil ¶
QuantityNotNil applies the NotNil 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 Gear queries.
func ByEquipmentField ¶
func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByEquipmentField orders the results by equipment field.
func ByEquipmentID ¶
func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
ByEquipmentID orders the results by the equipment_id field.
func ByGearCategory ¶
func ByGearCategory(opts ...sql.OrderTermOption) OrderOption
ByGearCategory orders the results by the gear_category field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByQuantity ¶
func ByQuantity(opts ...sql.OrderTermOption) OrderOption
ByQuantity orders the results by the quantity field.