weapon

package
v0.0.0-...-4b256dd Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldVictim holds the string denoting the victim field in the database.
	FieldVictim = "victim"
	// FieldDmg holds the string denoting the dmg field in the database.
	FieldDmg = "dmg"
	// FieldEqType holds the string denoting the eq_type field in the database.
	FieldEqType = "eq_type"
	// FieldHitGroup holds the string denoting the hit_group field in the database.
	FieldHitGroup = "hit_group"
	// EdgeStat holds the string denoting the stat edge name in mutations.
	EdgeStat = "stat"
	// Table holds the table name of the weapon in the database.
	Table = "weapons"
	// StatTable is the table that holds the stat relation/edge.
	StatTable = "weapons"
	// StatInverseTable is the table name for the MatchPlayer entity.
	// It exists in this package in order to avoid circular dependency with the "matchplayer" package.
	StatInverseTable = "match_players"
	// StatColumn is the table column denoting the stat relation/edge.
	StatColumn = "match_player_weapon_stats"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldVictim,
	FieldDmg,
	FieldEqType,
	FieldHitGroup,
}

Columns holds all SQL columns for weapon fields.

View Source
var ForeignKeys = []string{
	"match_player_weapon_stats",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "weapons" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Weapon) predicate.Weapon

And groups predicates with the AND operator between them.

func Dmg

func Dmg(v uint) predicate.Weapon

Dmg applies equality check predicate on the "dmg" field. It's identical to DmgEQ.

func DmgEQ

func DmgEQ(v uint) predicate.Weapon

DmgEQ applies the EQ predicate on the "dmg" field.

func DmgGT

func DmgGT(v uint) predicate.Weapon

DmgGT applies the GT predicate on the "dmg" field.

func DmgGTE

func DmgGTE(v uint) predicate.Weapon

DmgGTE applies the GTE predicate on the "dmg" field.

func DmgIn

func DmgIn(vs ...uint) predicate.Weapon

DmgIn applies the In predicate on the "dmg" field.

func DmgLT

func DmgLT(v uint) predicate.Weapon

DmgLT applies the LT predicate on the "dmg" field.

func DmgLTE

func DmgLTE(v uint) predicate.Weapon

DmgLTE applies the LTE predicate on the "dmg" field.

func DmgNEQ

func DmgNEQ(v uint) predicate.Weapon

DmgNEQ applies the NEQ predicate on the "dmg" field.

func DmgNotIn

func DmgNotIn(vs ...uint) predicate.Weapon

DmgNotIn applies the NotIn predicate on the "dmg" field.

func EqType

func EqType(v int) predicate.Weapon

EqType applies equality check predicate on the "eq_type" field. It's identical to EqTypeEQ.

func EqTypeEQ

func EqTypeEQ(v int) predicate.Weapon

EqTypeEQ applies the EQ predicate on the "eq_type" field.

func EqTypeGT

func EqTypeGT(v int) predicate.Weapon

EqTypeGT applies the GT predicate on the "eq_type" field.

func EqTypeGTE

func EqTypeGTE(v int) predicate.Weapon

EqTypeGTE applies the GTE predicate on the "eq_type" field.

func EqTypeIn

func EqTypeIn(vs ...int) predicate.Weapon

EqTypeIn applies the In predicate on the "eq_type" field.

func EqTypeLT

func EqTypeLT(v int) predicate.Weapon

EqTypeLT applies the LT predicate on the "eq_type" field.

func EqTypeLTE

func EqTypeLTE(v int) predicate.Weapon

EqTypeLTE applies the LTE predicate on the "eq_type" field.

func EqTypeNEQ

func EqTypeNEQ(v int) predicate.Weapon

EqTypeNEQ applies the NEQ predicate on the "eq_type" field.

func EqTypeNotIn

func EqTypeNotIn(vs ...int) predicate.Weapon

EqTypeNotIn applies the NotIn predicate on the "eq_type" field.

func HasStat

func HasStat() predicate.Weapon

HasStat applies the HasEdge predicate on the "stat" edge.

func HasStatWith

func HasStatWith(preds ...predicate.MatchPlayer) predicate.Weapon

HasStatWith applies the HasEdge predicate on the "stat" edge with a given conditions (other predicates).

func HitGroup

func HitGroup(v int) predicate.Weapon

HitGroup applies equality check predicate on the "hit_group" field. It's identical to HitGroupEQ.

func HitGroupEQ

func HitGroupEQ(v int) predicate.Weapon

HitGroupEQ applies the EQ predicate on the "hit_group" field.

func HitGroupGT

func HitGroupGT(v int) predicate.Weapon

HitGroupGT applies the GT predicate on the "hit_group" field.

func HitGroupGTE

func HitGroupGTE(v int) predicate.Weapon

HitGroupGTE applies the GTE predicate on the "hit_group" field.

func HitGroupIn

func HitGroupIn(vs ...int) predicate.Weapon

HitGroupIn applies the In predicate on the "hit_group" field.

func HitGroupLT

func HitGroupLT(v int) predicate.Weapon

HitGroupLT applies the LT predicate on the "hit_group" field.

func HitGroupLTE

func HitGroupLTE(v int) predicate.Weapon

HitGroupLTE applies the LTE predicate on the "hit_group" field.

func HitGroupNEQ

func HitGroupNEQ(v int) predicate.Weapon

HitGroupNEQ applies the NEQ predicate on the "hit_group" field.

func HitGroupNotIn

func HitGroupNotIn(vs ...int) predicate.Weapon

HitGroupNotIn applies the NotIn predicate on the "hit_group" field.

func ID

func ID(id int) predicate.Weapon

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Weapon

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Weapon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Weapon

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Weapon

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Weapon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Weapon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Weapon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Weapon

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.Weapon) predicate.Weapon

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 Victim

func Victim(v uint64) predicate.Weapon

Victim applies equality check predicate on the "victim" field. It's identical to VictimEQ.

func VictimEQ

func VictimEQ(v uint64) predicate.Weapon

VictimEQ applies the EQ predicate on the "victim" field.

func VictimGT

func VictimGT(v uint64) predicate.Weapon

VictimGT applies the GT predicate on the "victim" field.

func VictimGTE

func VictimGTE(v uint64) predicate.Weapon

VictimGTE applies the GTE predicate on the "victim" field.

func VictimIn

func VictimIn(vs ...uint64) predicate.Weapon

VictimIn applies the In predicate on the "victim" field.

func VictimLT

func VictimLT(v uint64) predicate.Weapon

VictimLT applies the LT predicate on the "victim" field.

func VictimLTE

func VictimLTE(v uint64) predicate.Weapon

VictimLTE applies the LTE predicate on the "victim" field.

func VictimNEQ

func VictimNEQ(v uint64) predicate.Weapon

VictimNEQ applies the NEQ predicate on the "victim" field.

func VictimNotIn

func VictimNotIn(vs ...uint64) predicate.Weapon

VictimNotIn applies the NotIn predicate on the "victim" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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