Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Gear) predicate.Gear
- func DescIsNil() predicate.Gear
- func DescNotNil() 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 Not(p predicate.Gear) predicate.Gear
- func Or(predicates ...predicate.Gear) predicate.Gear
- func ValidColumn(column string) bool
- type 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" // FieldGearCategory holds the string denoting the gear_category field in the database. FieldGearCategory = "gear_category" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // 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_gear" )
Variables ¶
var Columns = []string{ FieldID, FieldGearCategory, FieldDesc, }
Columns holds all SQL columns for gear fields.
var ForeignKeys = []string{
"equipment_gear",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "gears" table and are not defined as standalone fields in the schema.
Functions ¶
func DescNotNil ¶
DescNotNil applies the NotNil predicate on the "desc" 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 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 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.