// Code generated by ent, DO NOT EDIT. package weapon import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "somegit.dev/csgowtf/csgowtfd/ent/predicate" ) // ID filters vertices based on their ID field. func ID(id int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.Weapon { return predicate.Weapon(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Weapon { return predicate.Weapon(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.Weapon { return predicate.Weapon(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.Weapon { return predicate.Weapon(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.Weapon { return predicate.Weapon(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.Weapon { return predicate.Weapon(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.Weapon { return predicate.Weapon(sql.FieldLTE(FieldID, id)) } // Victim applies equality check predicate on the "victim" field. It's identical to VictimEQ. func Victim(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldVictim, v)) } // Dmg applies equality check predicate on the "dmg" field. It's identical to DmgEQ. func Dmg(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldDmg, v)) } // EqType applies equality check predicate on the "eq_type" field. It's identical to EqTypeEQ. func EqType(v int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldEqType, v)) } // HitGroup applies equality check predicate on the "hit_group" field. It's identical to HitGroupEQ. func HitGroup(v int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldHitGroup, v)) } // VictimEQ applies the EQ predicate on the "victim" field. func VictimEQ(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldVictim, v)) } // VictimNEQ applies the NEQ predicate on the "victim" field. func VictimNEQ(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldNEQ(FieldVictim, v)) } // VictimIn applies the In predicate on the "victim" field. func VictimIn(vs ...uint64) predicate.Weapon { return predicate.Weapon(sql.FieldIn(FieldVictim, vs...)) } // VictimNotIn applies the NotIn predicate on the "victim" field. func VictimNotIn(vs ...uint64) predicate.Weapon { return predicate.Weapon(sql.FieldNotIn(FieldVictim, vs...)) } // VictimGT applies the GT predicate on the "victim" field. func VictimGT(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldGT(FieldVictim, v)) } // VictimGTE applies the GTE predicate on the "victim" field. func VictimGTE(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldGTE(FieldVictim, v)) } // VictimLT applies the LT predicate on the "victim" field. func VictimLT(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldLT(FieldVictim, v)) } // VictimLTE applies the LTE predicate on the "victim" field. func VictimLTE(v uint64) predicate.Weapon { return predicate.Weapon(sql.FieldLTE(FieldVictim, v)) } // DmgEQ applies the EQ predicate on the "dmg" field. func DmgEQ(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldDmg, v)) } // DmgNEQ applies the NEQ predicate on the "dmg" field. func DmgNEQ(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldNEQ(FieldDmg, v)) } // DmgIn applies the In predicate on the "dmg" field. func DmgIn(vs ...uint) predicate.Weapon { return predicate.Weapon(sql.FieldIn(FieldDmg, vs...)) } // DmgNotIn applies the NotIn predicate on the "dmg" field. func DmgNotIn(vs ...uint) predicate.Weapon { return predicate.Weapon(sql.FieldNotIn(FieldDmg, vs...)) } // DmgGT applies the GT predicate on the "dmg" field. func DmgGT(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldGT(FieldDmg, v)) } // DmgGTE applies the GTE predicate on the "dmg" field. func DmgGTE(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldGTE(FieldDmg, v)) } // DmgLT applies the LT predicate on the "dmg" field. func DmgLT(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldLT(FieldDmg, v)) } // DmgLTE applies the LTE predicate on the "dmg" field. func DmgLTE(v uint) predicate.Weapon { return predicate.Weapon(sql.FieldLTE(FieldDmg, v)) } // EqTypeEQ applies the EQ predicate on the "eq_type" field. func EqTypeEQ(v int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldEqType, v)) } // EqTypeNEQ applies the NEQ predicate on the "eq_type" field. func EqTypeNEQ(v int) predicate.Weapon { return predicate.Weapon(sql.FieldNEQ(FieldEqType, v)) } // EqTypeIn applies the In predicate on the "eq_type" field. func EqTypeIn(vs ...int) predicate.Weapon { return predicate.Weapon(sql.FieldIn(FieldEqType, vs...)) } // EqTypeNotIn applies the NotIn predicate on the "eq_type" field. func EqTypeNotIn(vs ...int) predicate.Weapon { return predicate.Weapon(sql.FieldNotIn(FieldEqType, vs...)) } // EqTypeGT applies the GT predicate on the "eq_type" field. func EqTypeGT(v int) predicate.Weapon { return predicate.Weapon(sql.FieldGT(FieldEqType, v)) } // EqTypeGTE applies the GTE predicate on the "eq_type" field. func EqTypeGTE(v int) predicate.Weapon { return predicate.Weapon(sql.FieldGTE(FieldEqType, v)) } // EqTypeLT applies the LT predicate on the "eq_type" field. func EqTypeLT(v int) predicate.Weapon { return predicate.Weapon(sql.FieldLT(FieldEqType, v)) } // EqTypeLTE applies the LTE predicate on the "eq_type" field. func EqTypeLTE(v int) predicate.Weapon { return predicate.Weapon(sql.FieldLTE(FieldEqType, v)) } // HitGroupEQ applies the EQ predicate on the "hit_group" field. func HitGroupEQ(v int) predicate.Weapon { return predicate.Weapon(sql.FieldEQ(FieldHitGroup, v)) } // HitGroupNEQ applies the NEQ predicate on the "hit_group" field. func HitGroupNEQ(v int) predicate.Weapon { return predicate.Weapon(sql.FieldNEQ(FieldHitGroup, v)) } // HitGroupIn applies the In predicate on the "hit_group" field. func HitGroupIn(vs ...int) predicate.Weapon { return predicate.Weapon(sql.FieldIn(FieldHitGroup, vs...)) } // HitGroupNotIn applies the NotIn predicate on the "hit_group" field. func HitGroupNotIn(vs ...int) predicate.Weapon { return predicate.Weapon(sql.FieldNotIn(FieldHitGroup, vs...)) } // HitGroupGT applies the GT predicate on the "hit_group" field. func HitGroupGT(v int) predicate.Weapon { return predicate.Weapon(sql.FieldGT(FieldHitGroup, v)) } // HitGroupGTE applies the GTE predicate on the "hit_group" field. func HitGroupGTE(v int) predicate.Weapon { return predicate.Weapon(sql.FieldGTE(FieldHitGroup, v)) } // HitGroupLT applies the LT predicate on the "hit_group" field. func HitGroupLT(v int) predicate.Weapon { return predicate.Weapon(sql.FieldLT(FieldHitGroup, v)) } // HitGroupLTE applies the LTE predicate on the "hit_group" field. func HitGroupLTE(v int) predicate.Weapon { return predicate.Weapon(sql.FieldLTE(FieldHitGroup, v)) } // HasStat applies the HasEdge predicate on the "stat" edge. func HasStat() predicate.Weapon { return predicate.Weapon(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, StatTable, StatColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasStatWith applies the HasEdge predicate on the "stat" edge with a given conditions (other predicates). func HasStatWith(preds ...predicate.MatchPlayer) predicate.Weapon { return predicate.Weapon(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(StatInverseTable, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, StatTable, StatColumn), ) sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Weapon) predicate.Weapon { return predicate.Weapon(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Weapon) predicate.Weapon { return predicate.Weapon(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) } // Not applies the not operator on the given predicate. func Not(p predicate.Weapon) predicate.Weapon { return predicate.Weapon(func(s *sql.Selector) { p(s.Not()) }) }