Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Weapon) predicate.Weapon
- func EquipmentID(v int) predicate.Weapon
- func EquipmentIDEQ(v int) predicate.Weapon
- func EquipmentIDIn(vs ...int) predicate.Weapon
- func EquipmentIDNEQ(v int) predicate.Weapon
- func EquipmentIDNotIn(vs ...int) predicate.Weapon
- func HasEquipment() predicate.Weapon
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Weapon
- func HasWeaponDamage() predicate.Weapon
- func HasWeaponDamageWith(preds ...predicate.WeaponDamage) predicate.Weapon
- func HasWeaponProperties() predicate.Weapon
- func HasWeaponPropertiesWith(preds ...predicate.WeaponProperty) predicate.Weapon
- func ID(id int) predicate.Weapon
- func IDEQ(id int) predicate.Weapon
- func IDGT(id int) predicate.Weapon
- func IDGTE(id int) predicate.Weapon
- func IDIn(ids ...int) predicate.Weapon
- func IDLT(id int) predicate.Weapon
- func IDLTE(id int) predicate.Weapon
- func IDNEQ(id int) predicate.Weapon
- func IDNotIn(ids ...int) predicate.Weapon
- func Indx(v string) predicate.Weapon
- func IndxContains(v string) predicate.Weapon
- func IndxContainsFold(v string) predicate.Weapon
- func IndxEQ(v string) predicate.Weapon
- func IndxEqualFold(v string) predicate.Weapon
- func IndxGT(v string) predicate.Weapon
- func IndxGTE(v string) predicate.Weapon
- func IndxHasPrefix(v string) predicate.Weapon
- func IndxHasSuffix(v string) predicate.Weapon
- func IndxIn(vs ...string) predicate.Weapon
- func IndxLT(v string) predicate.Weapon
- func IndxLTE(v string) predicate.Weapon
- func IndxNEQ(v string) predicate.Weapon
- func IndxNotIn(vs ...string) predicate.Weapon
- func Name(v string) predicate.Weapon
- func NameContains(v string) predicate.Weapon
- func NameContainsFold(v string) predicate.Weapon
- func NameEQ(v string) predicate.Weapon
- func NameEqualFold(v string) predicate.Weapon
- func NameGT(v string) predicate.Weapon
- func NameGTE(v string) predicate.Weapon
- func NameHasPrefix(v string) predicate.Weapon
- func NameHasSuffix(v string) predicate.Weapon
- func NameIn(vs ...string) predicate.Weapon
- func NameLT(v string) predicate.Weapon
- func NameLTE(v string) predicate.Weapon
- func NameNEQ(v string) predicate.Weapon
- func NameNotIn(vs ...string) predicate.Weapon
- func Not(p predicate.Weapon) predicate.Weapon
- func Or(predicates ...predicate.Weapon) predicate.Weapon
- func ValidColumn(column string) bool
- func WeaponCategory(v string) predicate.Weapon
- func WeaponCategoryContains(v string) predicate.Weapon
- func WeaponCategoryContainsFold(v string) predicate.Weapon
- func WeaponCategoryEQ(v string) predicate.Weapon
- func WeaponCategoryEqualFold(v string) predicate.Weapon
- func WeaponCategoryGT(v string) predicate.Weapon
- func WeaponCategoryGTE(v string) predicate.Weapon
- func WeaponCategoryHasPrefix(v string) predicate.Weapon
- func WeaponCategoryHasSuffix(v string) predicate.Weapon
- func WeaponCategoryIn(vs ...string) predicate.Weapon
- func WeaponCategoryLT(v string) predicate.Weapon
- func WeaponCategoryLTE(v string) predicate.Weapon
- func WeaponCategoryNEQ(v string) predicate.Weapon
- func WeaponCategoryNotIn(vs ...string) predicate.Weapon
- func WeaponRange(v string) predicate.Weapon
- func WeaponRangeContains(v string) predicate.Weapon
- func WeaponRangeContainsFold(v string) predicate.Weapon
- func WeaponRangeEQ(v string) predicate.Weapon
- func WeaponRangeEqualFold(v string) predicate.Weapon
- func WeaponRangeGT(v string) predicate.Weapon
- func WeaponRangeGTE(v string) predicate.Weapon
- func WeaponRangeHasPrefix(v string) predicate.Weapon
- func WeaponRangeHasSuffix(v string) predicate.Weapon
- func WeaponRangeIn(vs ...string) predicate.Weapon
- func WeaponRangeLT(v string) predicate.Weapon
- func WeaponRangeLTE(v string) predicate.Weapon
- func WeaponRangeNEQ(v string) predicate.Weapon
- func WeaponRangeNotIn(vs ...string) predicate.Weapon
- type OrderOption
- func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByWeaponCategory(opts ...sql.OrderTermOption) OrderOption
- func ByWeaponDamage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWeaponDamageCount(opts ...sql.OrderTermOption) OrderOption
- func ByWeaponProperties(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWeaponPropertiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByWeaponRange(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the weapon type in the database. Label = "weapon" // 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" // FieldEquipmentID holds the string denoting the equipment_id field in the database. FieldEquipmentID = "equipment_id" // FieldWeaponCategory holds the string denoting the weapon_category field in the database. FieldWeaponCategory = "weapon_category" // FieldWeaponRange holds the string denoting the weapon_range field in the database. FieldWeaponRange = "weapon_range" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // EdgeWeaponDamage holds the string denoting the weapon_damage edge name in mutations. EdgeWeaponDamage = "weapon_damage" // EdgeWeaponProperties holds the string denoting the weapon_properties edge name in mutations. EdgeWeaponProperties = "weapon_properties" // Table holds the table name of the weapon in the database. Table = "weapons" // EquipmentTable is the table that holds the equipment relation/edge. EquipmentTable = "weapons" // 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" // WeaponDamageTable is the table that holds the weapon_damage relation/edge. WeaponDamageTable = "weapon_damages" // WeaponDamageInverseTable is the table name for the WeaponDamage entity. // It exists in this package in order to avoid circular dependency with the "weapondamage" package. WeaponDamageInverseTable = "weapon_damages" // WeaponDamageColumn is the table column denoting the weapon_damage relation/edge. WeaponDamageColumn = "weapon_id" // WeaponPropertiesTable is the table that holds the weapon_properties relation/edge. The primary key declared below. WeaponPropertiesTable = "weapon_weapon_properties" // WeaponPropertiesInverseTable is the table name for the WeaponProperty entity. // It exists in this package in order to avoid circular dependency with the "weaponproperty" package. WeaponPropertiesInverseTable = "weapon_properties" )
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, FieldEquipmentID, FieldWeaponCategory, FieldWeaponRange, }
Columns holds all SQL columns for weapon fields.
var ( // WeaponPropertiesPrimaryKey and WeaponPropertiesColumn2 are the table columns denoting the // primary key for the weapon_properties relation (M2M). WeaponPropertiesPrimaryKey = []string{"weapon_id", "weapon_property_id"} )
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 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 HasWeaponDamage ¶
HasWeaponDamage applies the HasEdge predicate on the "weapon_damage" edge.
func HasWeaponDamageWith ¶
func HasWeaponDamageWith(preds ...predicate.WeaponDamage) predicate.Weapon
HasWeaponDamageWith applies the HasEdge predicate on the "weapon_damage" edge with a given conditions (other predicates).
func HasWeaponProperties ¶
HasWeaponProperties applies the HasEdge predicate on the "weapon_properties" edge.
func HasWeaponPropertiesWith ¶
func HasWeaponPropertiesWith(preds ...predicate.WeaponProperty) predicate.Weapon
HasWeaponPropertiesWith applies the HasEdge predicate on the "weapon_properties" 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 WeaponCategory ¶
WeaponCategory applies equality check predicate on the "weapon_category" field. It's identical to WeaponCategoryEQ.
func WeaponCategoryContains ¶
WeaponCategoryContains applies the Contains predicate on the "weapon_category" field.
func WeaponCategoryContainsFold ¶
WeaponCategoryContainsFold applies the ContainsFold predicate on the "weapon_category" field.
func WeaponCategoryEQ ¶
WeaponCategoryEQ applies the EQ predicate on the "weapon_category" field.
func WeaponCategoryEqualFold ¶
WeaponCategoryEqualFold applies the EqualFold predicate on the "weapon_category" field.
func WeaponCategoryGT ¶
WeaponCategoryGT applies the GT predicate on the "weapon_category" field.
func WeaponCategoryGTE ¶
WeaponCategoryGTE applies the GTE predicate on the "weapon_category" field.
func WeaponCategoryHasPrefix ¶
WeaponCategoryHasPrefix applies the HasPrefix predicate on the "weapon_category" field.
func WeaponCategoryHasSuffix ¶
WeaponCategoryHasSuffix applies the HasSuffix predicate on the "weapon_category" field.
func WeaponCategoryIn ¶
WeaponCategoryIn applies the In predicate on the "weapon_category" field.
func WeaponCategoryLT ¶
WeaponCategoryLT applies the LT predicate on the "weapon_category" field.
func WeaponCategoryLTE ¶
WeaponCategoryLTE applies the LTE predicate on the "weapon_category" field.
func WeaponCategoryNEQ ¶
WeaponCategoryNEQ applies the NEQ predicate on the "weapon_category" field.
func WeaponCategoryNotIn ¶
WeaponCategoryNotIn applies the NotIn predicate on the "weapon_category" field.
func WeaponRange ¶
WeaponRange applies equality check predicate on the "weapon_range" field. It's identical to WeaponRangeEQ.
func WeaponRangeContains ¶
WeaponRangeContains applies the Contains predicate on the "weapon_range" field.
func WeaponRangeContainsFold ¶
WeaponRangeContainsFold applies the ContainsFold predicate on the "weapon_range" field.
func WeaponRangeEQ ¶
WeaponRangeEQ applies the EQ predicate on the "weapon_range" field.
func WeaponRangeEqualFold ¶
WeaponRangeEqualFold applies the EqualFold predicate on the "weapon_range" field.
func WeaponRangeGT ¶
WeaponRangeGT applies the GT predicate on the "weapon_range" field.
func WeaponRangeGTE ¶
WeaponRangeGTE applies the GTE predicate on the "weapon_range" field.
func WeaponRangeHasPrefix ¶
WeaponRangeHasPrefix applies the HasPrefix predicate on the "weapon_range" field.
func WeaponRangeHasSuffix ¶
WeaponRangeHasSuffix applies the HasSuffix predicate on the "weapon_range" field.
func WeaponRangeIn ¶
WeaponRangeIn applies the In predicate on the "weapon_range" field.
func WeaponRangeLT ¶
WeaponRangeLT applies the LT predicate on the "weapon_range" field.
func WeaponRangeLTE ¶
WeaponRangeLTE applies the LTE predicate on the "weapon_range" field.
func WeaponRangeNEQ ¶
WeaponRangeNEQ applies the NEQ predicate on the "weapon_range" field.
func WeaponRangeNotIn ¶
WeaponRangeNotIn applies the NotIn predicate on the "weapon_range" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Weapon 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 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 ByWeaponCategory ¶
func ByWeaponCategory(opts ...sql.OrderTermOption) OrderOption
ByWeaponCategory orders the results by the weapon_category field.
func ByWeaponDamage ¶
func ByWeaponDamage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWeaponDamage orders the results by weapon_damage terms.
func ByWeaponDamageCount ¶
func ByWeaponDamageCount(opts ...sql.OrderTermOption) OrderOption
ByWeaponDamageCount orders the results by weapon_damage count.
func ByWeaponProperties ¶
func ByWeaponProperties(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWeaponProperties orders the results by weapon_properties terms.
func ByWeaponPropertiesCount ¶
func ByWeaponPropertiesCount(opts ...sql.OrderTermOption) OrderOption
ByWeaponPropertiesCount orders the results by weapon_properties count.
func ByWeaponRange ¶
func ByWeaponRange(opts ...sql.OrderTermOption) OrderOption
ByWeaponRange orders the results by the weapon_range field.