Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Equipment) predicate.Equipment
- func HasArmor() predicate.Equipment
- func HasArmorWith(preds ...predicate.Armor) predicate.Equipment
- func HasChoice() predicate.Equipment
- func HasChoiceWith(preds ...predicate.EquipmentChoice) predicate.Equipment
- func HasClass() predicate.Equipment
- func HasClassEquipment() predicate.Equipment
- func HasClassEquipmentWith(preds ...predicate.ClassEquipment) predicate.Equipment
- func HasClassWith(preds ...predicate.Class) predicate.Equipment
- func HasCost() predicate.Equipment
- func HasCostWith(preds ...predicate.EquipmentCost) predicate.Equipment
- func HasEquipmentCategory() predicate.Equipment
- func HasEquipmentCategoryWith(preds ...predicate.EquipmentCategory) predicate.Equipment
- func HasGear() predicate.Equipment
- func HasGearWith(preds ...predicate.Gear) predicate.Equipment
- func HasTool() predicate.Equipment
- func HasToolWith(preds ...predicate.Tool) predicate.Equipment
- func HasVehicle() predicate.Equipment
- func HasVehicleWith(preds ...predicate.Vehicle) predicate.Equipment
- func HasWeapon() predicate.Equipment
- func HasWeaponWith(preds ...predicate.Weapon) predicate.Equipment
- func ID(id int) predicate.Equipment
- func IDEQ(id int) predicate.Equipment
- func IDGT(id int) predicate.Equipment
- func IDGTE(id int) predicate.Equipment
- func IDIn(ids ...int) predicate.Equipment
- func IDLT(id int) predicate.Equipment
- func IDLTE(id int) predicate.Equipment
- func IDNEQ(id int) predicate.Equipment
- func IDNotIn(ids ...int) predicate.Equipment
- func Indx(v string) predicate.Equipment
- func IndxContains(v string) predicate.Equipment
- func IndxContainsFold(v string) predicate.Equipment
- func IndxEQ(v string) predicate.Equipment
- func IndxEqualFold(v string) predicate.Equipment
- func IndxGT(v string) predicate.Equipment
- func IndxGTE(v string) predicate.Equipment
- func IndxHasPrefix(v string) predicate.Equipment
- func IndxHasSuffix(v string) predicate.Equipment
- func IndxIn(vs ...string) predicate.Equipment
- func IndxLT(v string) predicate.Equipment
- func IndxLTE(v string) predicate.Equipment
- func IndxNEQ(v string) predicate.Equipment
- func IndxNotIn(vs ...string) predicate.Equipment
- func Name(v string) predicate.Equipment
- func NameContains(v string) predicate.Equipment
- func NameContainsFold(v string) predicate.Equipment
- func NameEQ(v string) predicate.Equipment
- func NameEqualFold(v string) predicate.Equipment
- func NameGT(v string) predicate.Equipment
- func NameGTE(v string) predicate.Equipment
- func NameHasPrefix(v string) predicate.Equipment
- func NameHasSuffix(v string) predicate.Equipment
- func NameIn(vs ...string) predicate.Equipment
- func NameLT(v string) predicate.Equipment
- func NameLTE(v string) predicate.Equipment
- func NameNEQ(v string) predicate.Equipment
- func NameNotIn(vs ...string) predicate.Equipment
- func Not(p predicate.Equipment) predicate.Equipment
- func Or(predicates ...predicate.Equipment) predicate.Equipment
- func ValidColumn(column string) bool
- func Weight(v int) predicate.Equipment
- func WeightEQ(v int) predicate.Equipment
- func WeightGT(v int) predicate.Equipment
- func WeightGTE(v int) predicate.Equipment
- func WeightIn(vs ...int) predicate.Equipment
- func WeightIsNil() predicate.Equipment
- func WeightLT(v int) predicate.Equipment
- func WeightLTE(v int) predicate.Equipment
- func WeightNEQ(v int) predicate.Equipment
- func WeightNotIn(vs ...int) predicate.Equipment
- func WeightNotNil() predicate.Equipment
- type OrderOption
- func ByArmorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChoiceCount(opts ...sql.OrderTermOption) OrderOption
- func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassCount(opts ...sql.OrderTermOption) OrderOption
- func ByClassEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByCostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentCategoryCount(opts ...sql.OrderTermOption) OrderOption
- func ByGearField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByToolField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByVehicleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWeaponField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWeight(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the equipment type in the database. Label = "equipment" // 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" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // EdgeEquipmentCategory holds the string denoting the equipment_category edge name in mutations. EdgeEquipmentCategory = "equipment_category" // EdgeCost holds the string denoting the cost edge name in mutations. EdgeCost = "cost" // EdgeWeapon holds the string denoting the weapon edge name in mutations. EdgeWeapon = "weapon" // EdgeArmor holds the string denoting the armor edge name in mutations. EdgeArmor = "armor" // EdgeGear holds the string denoting the gear edge name in mutations. EdgeGear = "gear" // EdgeTool holds the string denoting the tool edge name in mutations. EdgeTool = "tool" // EdgeVehicle holds the string denoting the vehicle edge name in mutations. EdgeVehicle = "vehicle" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // EdgeChoice holds the string denoting the choice edge name in mutations. EdgeChoice = "choice" // EdgeClassEquipment holds the string denoting the class_equipment edge name in mutations. EdgeClassEquipment = "class_equipment" // Table holds the table name of the equipment in the database. Table = "equipment" // EquipmentCategoryTable is the table that holds the equipment_category relation/edge. The primary key declared below. EquipmentCategoryTable = "equipment_category_equipment" // EquipmentCategoryInverseTable is the table name for the EquipmentCategory entity. // It exists in this package in order to avoid circular dependency with the "equipmentcategory" package. EquipmentCategoryInverseTable = "equipment_categories" // CostTable is the table that holds the cost relation/edge. CostTable = "equipment_costs" // CostInverseTable is the table name for the EquipmentCost entity. // It exists in this package in order to avoid circular dependency with the "equipmentcost" package. CostInverseTable = "equipment_costs" // CostColumn is the table column denoting the cost relation/edge. CostColumn = "equipment_id" // WeaponTable is the table that holds the weapon relation/edge. WeaponTable = "weapons" // WeaponInverseTable is the table name for the Weapon entity. // It exists in this package in order to avoid circular dependency with the "weapon" package. WeaponInverseTable = "weapons" // WeaponColumn is the table column denoting the weapon relation/edge. WeaponColumn = "equipment_id" // ArmorTable is the table that holds the armor relation/edge. ArmorTable = "armors" // ArmorInverseTable is the table name for the Armor entity. // It exists in this package in order to avoid circular dependency with the "armor" package. ArmorInverseTable = "armors" // ArmorColumn is the table column denoting the armor relation/edge. ArmorColumn = "equipment_id" // GearTable is the table that holds the gear relation/edge. GearTable = "gears" // GearInverseTable is the table name for the Gear entity. // It exists in this package in order to avoid circular dependency with the "gear" package. GearInverseTable = "gears" // GearColumn is the table column denoting the gear relation/edge. GearColumn = "equipment_id" // ToolTable is the table that holds the tool relation/edge. ToolTable = "tools" // ToolInverseTable is the table name for the Tool entity. // It exists in this package in order to avoid circular dependency with the "tool" package. ToolInverseTable = "tools" // ToolColumn is the table column denoting the tool relation/edge. ToolColumn = "equipment_id" // VehicleTable is the table that holds the vehicle relation/edge. VehicleTable = "vehicles" // VehicleInverseTable is the table name for the Vehicle entity. // It exists in this package in order to avoid circular dependency with the "vehicle" package. VehicleInverseTable = "vehicles" // VehicleColumn is the table column denoting the vehicle relation/edge. VehicleColumn = "equipment_id" // ClassTable is the table that holds the class relation/edge. The primary key declared below. ClassTable = "class_equipments" // 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" // ChoiceTable is the table that holds the choice relation/edge. The primary key declared below. ChoiceTable = "equipment_choice_equipment" // ChoiceInverseTable is the table name for the EquipmentChoice entity. // It exists in this package in order to avoid circular dependency with the "equipmentchoice" package. ChoiceInverseTable = "equipment_choices" // ClassEquipmentTable is the table that holds the class_equipment relation/edge. ClassEquipmentTable = "class_equipments" // ClassEquipmentInverseTable is the table name for the ClassEquipment entity. // It exists in this package in order to avoid circular dependency with the "classequipment" package. ClassEquipmentInverseTable = "class_equipments" // ClassEquipmentColumn is the table column denoting the class_equipment relation/edge. ClassEquipmentColumn = "equipment_id" )
Variables ¶
var ( // EquipmentCategoryPrimaryKey and EquipmentCategoryColumn2 are the table columns denoting the // primary key for the equipment_category relation (M2M). EquipmentCategoryPrimaryKey = []string{"equipment_category_id", "equipment_id"} // ClassPrimaryKey and ClassColumn2 are the table columns denoting the // primary key for the class relation (M2M). ClassPrimaryKey = []string{"class_id", "equipment_id"} // ChoicePrimaryKey and ChoiceColumn2 are the table columns denoting the // primary key for the choice relation (M2M). ChoicePrimaryKey = []string{"equipment_choice_id", "equipment_id"} )
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, FieldWeight, }
Columns holds all SQL columns for equipment fields.
var ForeignKeys = []string{
"proficiency_equipment",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "equipment" table and are not defined as standalone fields in the schema.
Functions ¶
func HasArmorWith ¶
HasArmorWith applies the HasEdge predicate on the "armor" edge with a given conditions (other predicates).
func HasChoiceWith ¶
func HasChoiceWith(preds ...predicate.EquipmentChoice) predicate.Equipment
HasChoiceWith applies the HasEdge predicate on the "choice" edge with a given conditions (other predicates).
func HasClassEquipment ¶
HasClassEquipment applies the HasEdge predicate on the "class_equipment" edge.
func HasClassEquipmentWith ¶
func HasClassEquipmentWith(preds ...predicate.ClassEquipment) predicate.Equipment
HasClassEquipmentWith applies the HasEdge predicate on the "class_equipment" edge with a given conditions (other predicates).
func HasClassWith ¶
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasCostWith ¶
func HasCostWith(preds ...predicate.EquipmentCost) predicate.Equipment
HasCostWith applies the HasEdge predicate on the "cost" edge with a given conditions (other predicates).
func HasEquipmentCategory ¶
HasEquipmentCategory applies the HasEdge predicate on the "equipment_category" edge.
func HasEquipmentCategoryWith ¶
func HasEquipmentCategoryWith(preds ...predicate.EquipmentCategory) predicate.Equipment
HasEquipmentCategoryWith applies the HasEdge predicate on the "equipment_category" edge with a given conditions (other predicates).
func HasGearWith ¶
HasGearWith applies the HasEdge predicate on the "gear" edge with a given conditions (other predicates).
func HasToolWith ¶
HasToolWith applies the HasEdge predicate on the "tool" edge with a given conditions (other predicates).
func HasVehicle ¶
HasVehicle applies the HasEdge predicate on the "vehicle" edge.
func HasVehicleWith ¶
HasVehicleWith applies the HasEdge predicate on the "vehicle" edge with a given conditions (other predicates).
func HasWeaponWith ¶
HasWeaponWith applies the HasEdge predicate on the "weapon" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightIsNil ¶
WeightIsNil applies the IsNil predicate on the "weight" field.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
func WeightNotNil ¶
WeightNotNil applies the NotNil predicate on the "weight" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Equipment queries.
func ByArmorField ¶
func ByArmorField(field string, opts ...sql.OrderTermOption) OrderOption
ByArmorField orders the results by armor field.
func ByChoice ¶
func ByChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChoice orders the results by choice terms.
func ByChoiceCount ¶
func ByChoiceCount(opts ...sql.OrderTermOption) OrderOption
ByChoiceCount orders the results by choice count.
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 ByClassEquipment ¶
func ByClassEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByClassEquipment orders the results by class_equipment terms.
func ByClassEquipmentCount ¶
func ByClassEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByClassEquipmentCount orders the results by class_equipment count.
func ByCostField ¶
func ByCostField(field string, opts ...sql.OrderTermOption) OrderOption
ByCostField orders the results by cost field.
func ByEquipmentCategory ¶
func ByEquipmentCategory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipmentCategory orders the results by equipment_category terms.
func ByEquipmentCategoryCount ¶
func ByEquipmentCategoryCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentCategoryCount orders the results by equipment_category count.
func ByGearField ¶
func ByGearField(field string, opts ...sql.OrderTermOption) OrderOption
ByGearField orders the results by gear 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 ByToolField ¶
func ByToolField(field string, opts ...sql.OrderTermOption) OrderOption
ByToolField orders the results by tool field.
func ByVehicleField ¶
func ByVehicleField(field string, opts ...sql.OrderTermOption) OrderOption
ByVehicleField orders the results by vehicle field.
func ByWeaponField ¶
func ByWeaponField(field string, opts ...sql.OrderTermOption) OrderOption
ByWeaponField orders the results by weapon field.
func ByWeight ¶
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.