deleted round from db/response

This commit is contained in:
2021-10-09 00:57:05 +02:00
parent 1355dfad8d
commit 15b273f052
11 changed files with 4 additions and 264 deletions

View File

@@ -156,13 +156,6 @@ func MaxRounds(v int) predicate.Match {
})
}
// Rounds applies equality check predicate on the "rounds" field. It's identical to RoundsEQ.
func Rounds(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldRounds), v))
})
}
// DemoExpired applies equality check predicate on the "demo_expired" field. It's identical to DemoExpiredEQ.
func DemoExpired(v bool) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
@@ -994,82 +987,6 @@ func MaxRoundsLTE(v int) predicate.Match {
})
}
// RoundsEQ applies the EQ predicate on the "rounds" field.
func RoundsEQ(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldRounds), v))
})
}
// RoundsNEQ applies the NEQ predicate on the "rounds" field.
func RoundsNEQ(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldRounds), v))
})
}
// RoundsIn applies the In predicate on the "rounds" field.
func RoundsIn(vs ...int) predicate.Match {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Match(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldRounds), v...))
})
}
// RoundsNotIn applies the NotIn predicate on the "rounds" field.
func RoundsNotIn(vs ...int) predicate.Match {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Match(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldRounds), v...))
})
}
// RoundsGT applies the GT predicate on the "rounds" field.
func RoundsGT(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldRounds), v))
})
}
// RoundsGTE applies the GTE predicate on the "rounds" field.
func RoundsGTE(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldRounds), v))
})
}
// RoundsLT applies the LT predicate on the "rounds" field.
func RoundsLT(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldRounds), v))
})
}
// RoundsLTE applies the LTE predicate on the "rounds" field.
func RoundsLTE(v int) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldRounds), v))
})
}
// DemoExpiredEQ applies the EQ predicate on the "demo_expired" field.
func DemoExpiredEQ(v bool) predicate.Match {
return predicate.Match(func(s *sql.Selector) {