Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Armor) predicate.Armor
- func ArmorCategory(v string) predicate.Armor
- func ArmorCategoryContains(v string) predicate.Armor
- func ArmorCategoryContainsFold(v string) predicate.Armor
- func ArmorCategoryEQ(v string) predicate.Armor
- func ArmorCategoryEqualFold(v string) predicate.Armor
- func ArmorCategoryGT(v string) predicate.Armor
- func ArmorCategoryGTE(v string) predicate.Armor
- func ArmorCategoryHasPrefix(v string) predicate.Armor
- func ArmorCategoryHasSuffix(v string) predicate.Armor
- func ArmorCategoryIn(vs ...string) predicate.Armor
- func ArmorCategoryLT(v string) predicate.Armor
- func ArmorCategoryLTE(v string) predicate.Armor
- func ArmorCategoryNEQ(v string) predicate.Armor
- func ArmorCategoryNotIn(vs ...string) predicate.Armor
- func EquipmentID(v int) predicate.Armor
- func EquipmentIDEQ(v int) predicate.Armor
- func EquipmentIDIn(vs ...int) predicate.Armor
- func EquipmentIDNEQ(v int) predicate.Armor
- func EquipmentIDNotIn(vs ...int) predicate.Armor
- func HasArmorClass() predicate.Armor
- func HasArmorClassWith(preds ...predicate.ArmorClass) predicate.Armor
- func HasEquipment() predicate.Armor
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Armor
- func ID(id int) predicate.Armor
- func IDEQ(id int) predicate.Armor
- func IDGT(id int) predicate.Armor
- func IDGTE(id int) predicate.Armor
- func IDIn(ids ...int) predicate.Armor
- func IDLT(id int) predicate.Armor
- func IDLTE(id int) predicate.Armor
- func IDNEQ(id int) predicate.Armor
- func IDNotIn(ids ...int) predicate.Armor
- func Indx(v string) predicate.Armor
- func IndxContains(v string) predicate.Armor
- func IndxContainsFold(v string) predicate.Armor
- func IndxEQ(v string) predicate.Armor
- func IndxEqualFold(v string) predicate.Armor
- func IndxGT(v string) predicate.Armor
- func IndxGTE(v string) predicate.Armor
- func IndxHasPrefix(v string) predicate.Armor
- func IndxHasSuffix(v string) predicate.Armor
- func IndxIn(vs ...string) predicate.Armor
- func IndxLT(v string) predicate.Armor
- func IndxLTE(v string) predicate.Armor
- func IndxNEQ(v string) predicate.Armor
- func IndxNotIn(vs ...string) predicate.Armor
- func MinStrength(v int) predicate.Armor
- func MinStrengthEQ(v int) predicate.Armor
- func MinStrengthGT(v int) predicate.Armor
- func MinStrengthGTE(v int) predicate.Armor
- func MinStrengthIn(vs ...int) predicate.Armor
- func MinStrengthLT(v int) predicate.Armor
- func MinStrengthLTE(v int) predicate.Armor
- func MinStrengthNEQ(v int) predicate.Armor
- func MinStrengthNotIn(vs ...int) predicate.Armor
- func Name(v string) predicate.Armor
- func NameContains(v string) predicate.Armor
- func NameContainsFold(v string) predicate.Armor
- func NameEQ(v string) predicate.Armor
- func NameEqualFold(v string) predicate.Armor
- func NameGT(v string) predicate.Armor
- func NameGTE(v string) predicate.Armor
- func NameHasPrefix(v string) predicate.Armor
- func NameHasSuffix(v string) predicate.Armor
- func NameIn(vs ...string) predicate.Armor
- func NameLT(v string) predicate.Armor
- func NameLTE(v string) predicate.Armor
- func NameNEQ(v string) predicate.Armor
- func NameNotIn(vs ...string) predicate.Armor
- func Not(p predicate.Armor) predicate.Armor
- func Or(predicates ...predicate.Armor) predicate.Armor
- func StealthDisadvantage(v bool) predicate.Armor
- func StealthDisadvantageEQ(v bool) predicate.Armor
- func StealthDisadvantageNEQ(v bool) predicate.Armor
- func ValidColumn(column string) bool
- type OrderOption
- func ByArmorCategory(opts ...sql.OrderTermOption) OrderOption
- func ByArmorClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByArmorClassCount(opts ...sql.OrderTermOption) 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 ByMinStrength(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStealthDisadvantage(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the armor type in the database. Label = "armor" // 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" // FieldArmorCategory holds the string denoting the armor_category field in the database. FieldArmorCategory = "armor_category" // FieldStealthDisadvantage holds the string denoting the stealth_disadvantage field in the database. FieldStealthDisadvantage = "stealth_disadvantage" // FieldMinStrength holds the string denoting the min_strength field in the database. FieldMinStrength = "min_strength" // 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" // EdgeArmorClass holds the string denoting the armor_class edge name in mutations. EdgeArmorClass = "armor_class" // Table holds the table name of the armor in the database. Table = "armors" // EquipmentTable is the table that holds the equipment relation/edge. EquipmentTable = "armors" // 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" // ArmorClassTable is the table that holds the armor_class relation/edge. ArmorClassTable = "armor_classes" // ArmorClassInverseTable is the table name for the ArmorClass entity. // It exists in this package in order to avoid circular dependency with the "armorclass" package. ArmorClassInverseTable = "armor_classes" // ArmorClassColumn is the table column denoting the armor_class relation/edge. ArmorClassColumn = "armor_armor_class" )
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, FieldArmorCategory, FieldStealthDisadvantage, FieldMinStrength, FieldEquipmentID, }
Columns holds all SQL columns for armor fields.
Functions ¶
func ArmorCategory ¶
ArmorCategory applies equality check predicate on the "armor_category" field. It's identical to ArmorCategoryEQ.
func ArmorCategoryContains ¶
ArmorCategoryContains applies the Contains predicate on the "armor_category" field.
func ArmorCategoryContainsFold ¶
ArmorCategoryContainsFold applies the ContainsFold predicate on the "armor_category" field.
func ArmorCategoryEQ ¶
ArmorCategoryEQ applies the EQ predicate on the "armor_category" field.
func ArmorCategoryEqualFold ¶
ArmorCategoryEqualFold applies the EqualFold predicate on the "armor_category" field.
func ArmorCategoryGT ¶
ArmorCategoryGT applies the GT predicate on the "armor_category" field.
func ArmorCategoryGTE ¶
ArmorCategoryGTE applies the GTE predicate on the "armor_category" field.
func ArmorCategoryHasPrefix ¶
ArmorCategoryHasPrefix applies the HasPrefix predicate on the "armor_category" field.
func ArmorCategoryHasSuffix ¶
ArmorCategoryHasSuffix applies the HasSuffix predicate on the "armor_category" field.
func ArmorCategoryIn ¶
ArmorCategoryIn applies the In predicate on the "armor_category" field.
func ArmorCategoryLT ¶
ArmorCategoryLT applies the LT predicate on the "armor_category" field.
func ArmorCategoryLTE ¶
ArmorCategoryLTE applies the LTE predicate on the "armor_category" field.
func ArmorCategoryNEQ ¶
ArmorCategoryNEQ applies the NEQ predicate on the "armor_category" field.
func ArmorCategoryNotIn ¶
ArmorCategoryNotIn applies the NotIn predicate on the "armor_category" field.
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 HasArmorClass ¶
HasArmorClass applies the HasEdge predicate on the "armor_class" edge.
func HasArmorClassWith ¶
func HasArmorClassWith(preds ...predicate.ArmorClass) predicate.Armor
HasArmorClassWith applies the HasEdge predicate on the "armor_class" edge with a given conditions (other predicates).
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 MinStrength ¶
MinStrength applies equality check predicate on the "min_strength" field. It's identical to MinStrengthEQ.
func MinStrengthEQ ¶
MinStrengthEQ applies the EQ predicate on the "min_strength" field.
func MinStrengthGT ¶
MinStrengthGT applies the GT predicate on the "min_strength" field.
func MinStrengthGTE ¶
MinStrengthGTE applies the GTE predicate on the "min_strength" field.
func MinStrengthIn ¶
MinStrengthIn applies the In predicate on the "min_strength" field.
func MinStrengthLT ¶
MinStrengthLT applies the LT predicate on the "min_strength" field.
func MinStrengthLTE ¶
MinStrengthLTE applies the LTE predicate on the "min_strength" field.
func MinStrengthNEQ ¶
MinStrengthNEQ applies the NEQ predicate on the "min_strength" field.
func MinStrengthNotIn ¶
MinStrengthNotIn applies the NotIn predicate on the "min_strength" 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 StealthDisadvantage ¶
StealthDisadvantage applies equality check predicate on the "stealth_disadvantage" field. It's identical to StealthDisadvantageEQ.
func StealthDisadvantageEQ ¶
StealthDisadvantageEQ applies the EQ predicate on the "stealth_disadvantage" field.
func StealthDisadvantageNEQ ¶
StealthDisadvantageNEQ applies the NEQ predicate on the "stealth_disadvantage" 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 Armor queries.
func ByArmorCategory ¶
func ByArmorCategory(opts ...sql.OrderTermOption) OrderOption
ByArmorCategory orders the results by the armor_category field.
func ByArmorClass ¶
func ByArmorClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByArmorClass orders the results by armor_class terms.
func ByArmorClassCount ¶
func ByArmorClassCount(opts ...sql.OrderTermOption) OrderOption
ByArmorClassCount orders the results by armor_class count.
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 ByMinStrength ¶
func ByMinStrength(opts ...sql.OrderTermOption) OrderOption
ByMinStrength orders the results by the min_strength field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStealthDisadvantage ¶
func ByStealthDisadvantage(opts ...sql.OrderTermOption) OrderOption
ByStealthDisadvantage orders the results by the stealth_disadvantage field.