Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DamageType) predicate.DamageType
- func DescIsNil() predicate.DamageType
- func DescNotNil() predicate.DamageType
- func HasWeapons() predicate.DamageType
- func HasWeaponsWith(preds ...predicate.Weapon) predicate.DamageType
- func ID(id int) predicate.DamageType
- func IDEQ(id int) predicate.DamageType
- func IDGT(id int) predicate.DamageType
- func IDGTE(id int) predicate.DamageType
- func IDIn(ids ...int) predicate.DamageType
- func IDLT(id int) predicate.DamageType
- func IDLTE(id int) predicate.DamageType
- func IDNEQ(id int) predicate.DamageType
- func IDNotIn(ids ...int) predicate.DamageType
- func Indx(v string) predicate.DamageType
- func IndxContains(v string) predicate.DamageType
- func IndxContainsFold(v string) predicate.DamageType
- func IndxEQ(v string) predicate.DamageType
- func IndxEqualFold(v string) predicate.DamageType
- func IndxGT(v string) predicate.DamageType
- func IndxGTE(v string) predicate.DamageType
- func IndxHasPrefix(v string) predicate.DamageType
- func IndxHasSuffix(v string) predicate.DamageType
- func IndxIn(vs ...string) predicate.DamageType
- func IndxLT(v string) predicate.DamageType
- func IndxLTE(v string) predicate.DamageType
- func IndxNEQ(v string) predicate.DamageType
- func IndxNotIn(vs ...string) predicate.DamageType
- func Name(v string) predicate.DamageType
- func NameContains(v string) predicate.DamageType
- func NameContainsFold(v string) predicate.DamageType
- func NameEQ(v string) predicate.DamageType
- func NameEqualFold(v string) predicate.DamageType
- func NameGT(v string) predicate.DamageType
- func NameGTE(v string) predicate.DamageType
- func NameHasPrefix(v string) predicate.DamageType
- func NameHasSuffix(v string) predicate.DamageType
- func NameIn(vs ...string) predicate.DamageType
- func NameLT(v string) predicate.DamageType
- func NameLTE(v string) predicate.DamageType
- func NameNEQ(v string) predicate.DamageType
- func NameNotIn(vs ...string) predicate.DamageType
- func Not(p predicate.DamageType) predicate.DamageType
- func Or(predicates ...predicate.DamageType) predicate.DamageType
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the damagetype type in the database. Label = "damage_type" // 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" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeWeapons holds the string denoting the weapons edge name in mutations. EdgeWeapons = "weapons" // Table holds the table name of the damagetype in the database. Table = "damage_types" // WeaponsTable is the table that holds the weapons relation/edge. WeaponsTable = "weapons" // WeaponsInverseTable is the table name for the Weapon entity. // It exists in this package in order to avoid circular dependency with the "weapon" package. WeaponsInverseTable = "weapons" // WeaponsColumn is the table column denoting the weapons relation/edge. WeaponsColumn = "weapon_damage_type" )
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 )
Columns holds all SQL columns for damagetype fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DamageType) predicate.DamageType
And groups predicates with the AND operator between them.
func DescIsNil ¶
func DescIsNil() predicate.DamageType
DescIsNil applies the IsNil predicate on the "desc" field.
func DescNotNil ¶
func DescNotNil() predicate.DamageType
DescNotNil applies the NotNil predicate on the "desc" field.
func HasWeapons ¶
func HasWeapons() predicate.DamageType
HasWeapons applies the HasEdge predicate on the "weapons" edge.
func HasWeaponsWith ¶
func HasWeaponsWith(preds ...predicate.Weapon) predicate.DamageType
HasWeaponsWith applies the HasEdge predicate on the "weapons" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.DamageType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DamageType
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DamageType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DamageType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DamageType
IDNotIn applies the NotIn predicate on the ID field.
func Indx ¶
func Indx(v string) predicate.DamageType
Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.
func IndxContains ¶
func IndxContains(v string) predicate.DamageType
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
func IndxContainsFold(v string) predicate.DamageType
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEQ ¶
func IndxEQ(v string) predicate.DamageType
IndxEQ applies the EQ predicate on the "indx" field.
func IndxEqualFold ¶
func IndxEqualFold(v string) predicate.DamageType
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxGT ¶
func IndxGT(v string) predicate.DamageType
IndxGT applies the GT predicate on the "indx" field.
func IndxGTE ¶
func IndxGTE(v string) predicate.DamageType
IndxGTE applies the GTE predicate on the "indx" field.
func IndxHasPrefix ¶
func IndxHasPrefix(v string) predicate.DamageType
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
func IndxHasSuffix(v string) predicate.DamageType
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func IndxIn ¶
func IndxIn(vs ...string) predicate.DamageType
IndxIn applies the In predicate on the "indx" field.
func IndxLT ¶
func IndxLT(v string) predicate.DamageType
IndxLT applies the LT predicate on the "indx" field.
func IndxLTE ¶
func IndxLTE(v string) predicate.DamageType
IndxLTE applies the LTE predicate on the "indx" field.
func IndxNEQ ¶
func IndxNEQ(v string) predicate.DamageType
IndxNEQ applies the NEQ predicate on the "indx" field.
func IndxNotIn ¶
func IndxNotIn(vs ...string) predicate.DamageType
IndxNotIn applies the NotIn predicate on the "indx" field.
func Name ¶
func Name(v string) predicate.DamageType
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.DamageType
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.DamageType
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.DamageType
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.DamageType
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.DamageType
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.DamageType
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.DamageType
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.DamageType
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.DamageType
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.DamageType
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.DamageType
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.DamageType
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.DamageType
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.DamageType) predicate.DamageType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DamageType) predicate.DamageType
Or groups predicates with the OR operator between them.
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 DamageType queries.
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 ByWeapons ¶
func ByWeapons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWeapons orders the results by weapons terms.
func ByWeaponsCount ¶
func ByWeaponsCount(opts ...sql.OrderTermOption) OrderOption
ByWeaponsCount orders the results by weapons count.