Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WeaponDamage) predicate.WeaponDamage
- func DamageTypeID(v int) predicate.WeaponDamage
- func DamageTypeIDEQ(v int) predicate.WeaponDamage
- func DamageTypeIDIn(vs ...int) predicate.WeaponDamage
- func DamageTypeIDNEQ(v int) predicate.WeaponDamage
- func DamageTypeIDNotIn(vs ...int) predicate.WeaponDamage
- func Dice(v string) predicate.WeaponDamage
- func DiceContains(v string) predicate.WeaponDamage
- func DiceContainsFold(v string) predicate.WeaponDamage
- func DiceEQ(v string) predicate.WeaponDamage
- func DiceEqualFold(v string) predicate.WeaponDamage
- func DiceGT(v string) predicate.WeaponDamage
- func DiceGTE(v string) predicate.WeaponDamage
- func DiceHasPrefix(v string) predicate.WeaponDamage
- func DiceHasSuffix(v string) predicate.WeaponDamage
- func DiceIn(vs ...string) predicate.WeaponDamage
- func DiceLT(v string) predicate.WeaponDamage
- func DiceLTE(v string) predicate.WeaponDamage
- func DiceNEQ(v string) predicate.WeaponDamage
- func DiceNotIn(vs ...string) predicate.WeaponDamage
- func HasDamageType() predicate.WeaponDamage
- func HasDamageTypeWith(preds ...predicate.DamageType) predicate.WeaponDamage
- func HasWeapon() predicate.WeaponDamage
- func HasWeaponWith(preds ...predicate.Weapon) predicate.WeaponDamage
- func ID(id int) predicate.WeaponDamage
- func IDEQ(id int) predicate.WeaponDamage
- func IDGT(id int) predicate.WeaponDamage
- func IDGTE(id int) predicate.WeaponDamage
- func IDIn(ids ...int) predicate.WeaponDamage
- func IDLT(id int) predicate.WeaponDamage
- func IDLTE(id int) predicate.WeaponDamage
- func IDNEQ(id int) predicate.WeaponDamage
- func IDNotIn(ids ...int) predicate.WeaponDamage
- func Not(p predicate.WeaponDamage) predicate.WeaponDamage
- func Or(predicates ...predicate.WeaponDamage) predicate.WeaponDamage
- func ValidColumn(column string) bool
- func WeaponID(v int) predicate.WeaponDamage
- func WeaponIDEQ(v int) predicate.WeaponDamage
- func WeaponIDIn(vs ...int) predicate.WeaponDamage
- func WeaponIDNEQ(v int) predicate.WeaponDamage
- func WeaponIDNotIn(vs ...int) predicate.WeaponDamage
- type OrderOption
- func ByDamageTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDamageTypeID(opts ...sql.OrderTermOption) OrderOption
- func ByDice(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByWeaponField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWeaponID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the weapondamage type in the database. Label = "weapon_damage" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldWeaponID holds the string denoting the weapon_id field in the database. FieldWeaponID = "weapon_id" // FieldDamageTypeID holds the string denoting the damage_type_id field in the database. FieldDamageTypeID = "damage_type_id" // FieldDice holds the string denoting the dice field in the database. FieldDice = "dice" // EdgeWeapon holds the string denoting the weapon edge name in mutations. EdgeWeapon = "weapon" // EdgeDamageType holds the string denoting the damage_type edge name in mutations. EdgeDamageType = "damage_type" // Table holds the table name of the weapondamage in the database. Table = "weapon_damages" // WeaponTable is the table that holds the weapon relation/edge. WeaponTable = "weapon_damages" // 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 = "weapon_id" // DamageTypeTable is the table that holds the damage_type relation/edge. DamageTypeTable = "weapon_damages" // DamageTypeInverseTable is the table name for the DamageType entity. // It exists in this package in order to avoid circular dependency with the "damagetype" package. DamageTypeInverseTable = "damage_types" // DamageTypeColumn is the table column denoting the damage_type relation/edge. DamageTypeColumn = "damage_type_id" )
Variables ¶
var Columns = []string{ FieldID, FieldWeaponID, FieldDamageTypeID, FieldDice, }
Columns holds all SQL columns for weapondamage fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WeaponDamage) predicate.WeaponDamage
And groups predicates with the AND operator between them.
func DamageTypeID ¶
func DamageTypeID(v int) predicate.WeaponDamage
DamageTypeID applies equality check predicate on the "damage_type_id" field. It's identical to DamageTypeIDEQ.
func DamageTypeIDEQ ¶
func DamageTypeIDEQ(v int) predicate.WeaponDamage
DamageTypeIDEQ applies the EQ predicate on the "damage_type_id" field.
func DamageTypeIDIn ¶
func DamageTypeIDIn(vs ...int) predicate.WeaponDamage
DamageTypeIDIn applies the In predicate on the "damage_type_id" field.
func DamageTypeIDNEQ ¶
func DamageTypeIDNEQ(v int) predicate.WeaponDamage
DamageTypeIDNEQ applies the NEQ predicate on the "damage_type_id" field.
func DamageTypeIDNotIn ¶
func DamageTypeIDNotIn(vs ...int) predicate.WeaponDamage
DamageTypeIDNotIn applies the NotIn predicate on the "damage_type_id" field.
func Dice ¶
func Dice(v string) predicate.WeaponDamage
Dice applies equality check predicate on the "dice" field. It's identical to DiceEQ.
func DiceContains ¶
func DiceContains(v string) predicate.WeaponDamage
DiceContains applies the Contains predicate on the "dice" field.
func DiceContainsFold ¶
func DiceContainsFold(v string) predicate.WeaponDamage
DiceContainsFold applies the ContainsFold predicate on the "dice" field.
func DiceEQ ¶
func DiceEQ(v string) predicate.WeaponDamage
DiceEQ applies the EQ predicate on the "dice" field.
func DiceEqualFold ¶
func DiceEqualFold(v string) predicate.WeaponDamage
DiceEqualFold applies the EqualFold predicate on the "dice" field.
func DiceGT ¶
func DiceGT(v string) predicate.WeaponDamage
DiceGT applies the GT predicate on the "dice" field.
func DiceGTE ¶
func DiceGTE(v string) predicate.WeaponDamage
DiceGTE applies the GTE predicate on the "dice" field.
func DiceHasPrefix ¶
func DiceHasPrefix(v string) predicate.WeaponDamage
DiceHasPrefix applies the HasPrefix predicate on the "dice" field.
func DiceHasSuffix ¶
func DiceHasSuffix(v string) predicate.WeaponDamage
DiceHasSuffix applies the HasSuffix predicate on the "dice" field.
func DiceIn ¶
func DiceIn(vs ...string) predicate.WeaponDamage
DiceIn applies the In predicate on the "dice" field.
func DiceLT ¶
func DiceLT(v string) predicate.WeaponDamage
DiceLT applies the LT predicate on the "dice" field.
func DiceLTE ¶
func DiceLTE(v string) predicate.WeaponDamage
DiceLTE applies the LTE predicate on the "dice" field.
func DiceNEQ ¶
func DiceNEQ(v string) predicate.WeaponDamage
DiceNEQ applies the NEQ predicate on the "dice" field.
func DiceNotIn ¶
func DiceNotIn(vs ...string) predicate.WeaponDamage
DiceNotIn applies the NotIn predicate on the "dice" field.
func HasDamageType ¶
func HasDamageType() predicate.WeaponDamage
HasDamageType applies the HasEdge predicate on the "damage_type" edge.
func HasDamageTypeWith ¶
func HasDamageTypeWith(preds ...predicate.DamageType) predicate.WeaponDamage
HasDamageTypeWith applies the HasEdge predicate on the "damage_type" edge with a given conditions (other predicates).
func HasWeapon ¶
func HasWeapon() predicate.WeaponDamage
HasWeapon applies the HasEdge predicate on the "weapon" edge.
func HasWeaponWith ¶
func HasWeaponWith(preds ...predicate.Weapon) predicate.WeaponDamage
HasWeaponWith applies the HasEdge predicate on the "weapon" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.WeaponDamage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.WeaponDamage
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.WeaponDamage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.WeaponDamage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.WeaponDamage
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.WeaponDamage) predicate.WeaponDamage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WeaponDamage) predicate.WeaponDamage
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WeaponID ¶
func WeaponID(v int) predicate.WeaponDamage
WeaponID applies equality check predicate on the "weapon_id" field. It's identical to WeaponIDEQ.
func WeaponIDEQ ¶
func WeaponIDEQ(v int) predicate.WeaponDamage
WeaponIDEQ applies the EQ predicate on the "weapon_id" field.
func WeaponIDIn ¶
func WeaponIDIn(vs ...int) predicate.WeaponDamage
WeaponIDIn applies the In predicate on the "weapon_id" field.
func WeaponIDNEQ ¶
func WeaponIDNEQ(v int) predicate.WeaponDamage
WeaponIDNEQ applies the NEQ predicate on the "weapon_id" field.
func WeaponIDNotIn ¶
func WeaponIDNotIn(vs ...int) predicate.WeaponDamage
WeaponIDNotIn applies the NotIn predicate on the "weapon_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the WeaponDamage queries.
func ByDamageTypeField ¶
func ByDamageTypeField(field string, opts ...sql.OrderTermOption) OrderOption
ByDamageTypeField orders the results by damage_type field.
func ByDamageTypeID ¶
func ByDamageTypeID(opts ...sql.OrderTermOption) OrderOption
ByDamageTypeID orders the results by the damage_type_id field.
func ByDice ¶
func ByDice(opts ...sql.OrderTermOption) OrderOption
ByDice orders the results by the dice field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByWeaponField ¶
func ByWeaponField(field string, opts ...sql.OrderTermOption) OrderOption
ByWeaponField orders the results by weapon field.
func ByWeaponID ¶
func ByWeaponID(opts ...sql.OrderTermOption) OrderOption
ByWeaponID orders the results by the weapon_id field.