added vac/gameban marker for matches
This commit is contained in:
@@ -163,6 +163,20 @@ func DemoParsed(v bool) predicate.Match {
|
||||
})
|
||||
}
|
||||
|
||||
// VacPresent applies equality check predicate on the "vac_present" field. It's identical to VacPresentEQ.
|
||||
func VacPresent(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldVacPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// GamebanPresent applies equality check predicate on the "gameban_present" field. It's identical to GamebanPresentEQ.
|
||||
func GamebanPresent(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldGamebanPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// ShareCodeEQ applies the EQ predicate on the "share_code" field.
|
||||
func ShareCodeEQ(v string) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
@@ -994,6 +1008,34 @@ func DemoParsedNEQ(v bool) predicate.Match {
|
||||
})
|
||||
}
|
||||
|
||||
// VacPresentEQ applies the EQ predicate on the "vac_present" field.
|
||||
func VacPresentEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldVacPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// VacPresentNEQ applies the NEQ predicate on the "vac_present" field.
|
||||
func VacPresentNEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.NEQ(s.C(FieldVacPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// GamebanPresentEQ applies the EQ predicate on the "gameban_present" field.
|
||||
func GamebanPresentEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldGamebanPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// GamebanPresentNEQ applies the NEQ predicate on the "gameban_present" field.
|
||||
func GamebanPresentNEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.NEQ(s.C(FieldGamebanPresent), v))
|
||||
})
|
||||
}
|
||||
|
||||
// HasStats applies the HasEdge predicate on the "stats" edge.
|
||||
func HasStats() predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
|
Reference in New Issue
Block a user