weapondamage

package
v0.0.0-...-c5055fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

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

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 ID

func ID(id int) predicate.WeaponDamage

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.WeaponDamage

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.WeaponDamage

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.WeaponDamage

IDLT applies the LT 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

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL