1335 lines
40 KiB
Go
1335 lines
40 KiB
Go
// Code generated by entc, DO NOT EDIT.
|
|
|
|
package player
|
|
|
|
import (
|
|
"csgowtfd/ent/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uint64) predicate.Player {
|
|
return predicate.Player(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(ids) == 0 {
|
|
s.Where(sql.False())
|
|
return
|
|
}
|
|
v := make([]interface{}, len(ids))
|
|
for i := range v {
|
|
v[i] = ids[i]
|
|
}
|
|
s.Where(sql.In(s.C(FieldID), v...))
|
|
})
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uint64) predicate.Player {
|
|
return predicate.Player(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(ids) == 0 {
|
|
s.Where(sql.False())
|
|
return
|
|
}
|
|
v := make([]interface{}, len(ids))
|
|
for i := range v {
|
|
v[i] = ids[i]
|
|
}
|
|
s.Where(sql.NotIn(s.C(FieldID), v...))
|
|
})
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uint64) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldID), id))
|
|
})
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
|
|
func AvatarURL(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURL applies equality check predicate on the "vanity_url" field. It's identical to VanityURLEQ.
|
|
func VanityURL(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLReal applies equality check predicate on the "vanity_url_real" field. It's identical to VanityURLRealEQ.
|
|
func VanityURLReal(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// Vac applies equality check predicate on the "vac" field. It's identical to VacEQ.
|
|
func Vac(v bool) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVac), v))
|
|
})
|
|
}
|
|
|
|
// VacDate applies equality check predicate on the "vac_date" field. It's identical to VacDateEQ.
|
|
func VacDate(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacCount applies equality check predicate on the "vac_count" field. It's identical to VacCountEQ.
|
|
func VacCount(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdated applies equality check predicate on the "steam_updated" field. It's identical to SteamUpdatedEQ.
|
|
func SteamUpdated(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdated applies equality check predicate on the "sharecode_updated" field. It's identical to SharecodeUpdatedEQ.
|
|
func SharecodeUpdated(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// AuthCode applies equality check predicate on the "auth_code" field. It's identical to AuthCodeEQ.
|
|
func AuthCode(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreated applies equality check predicate on the "profile_created" field. It's identical to ProfileCreatedEQ.
|
|
func ProfileCreated(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldName), v...))
|
|
})
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldName), v...))
|
|
})
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.Contains(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasPrefix(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasSuffix(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameIsNil applies the IsNil predicate on the "name" field.
|
|
func NameIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldName)))
|
|
})
|
|
}
|
|
|
|
// NameNotNil applies the NotNil predicate on the "name" field.
|
|
func NameNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldName)))
|
|
})
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EqualFold(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.ContainsFold(s.C(FieldName), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
|
|
func AvatarURLEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
|
|
func AvatarURLNEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLIn applies the In predicate on the "avatar_url" field.
|
|
func AvatarURLIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldAvatarURL), v...))
|
|
})
|
|
}
|
|
|
|
// AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
|
|
func AvatarURLNotIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldAvatarURL), v...))
|
|
})
|
|
}
|
|
|
|
// AvatarURLGT applies the GT predicate on the "avatar_url" field.
|
|
func AvatarURLGT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
|
|
func AvatarURLGTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLLT applies the LT predicate on the "avatar_url" field.
|
|
func AvatarURLLT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
|
|
func AvatarURLLTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLContains applies the Contains predicate on the "avatar_url" field.
|
|
func AvatarURLContains(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.Contains(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
|
|
func AvatarURLHasPrefix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasPrefix(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
|
|
func AvatarURLHasSuffix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasSuffix(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
|
|
func AvatarURLIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldAvatarURL)))
|
|
})
|
|
}
|
|
|
|
// AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
|
|
func AvatarURLNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldAvatarURL)))
|
|
})
|
|
}
|
|
|
|
// AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
|
|
func AvatarURLEqualFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EqualFold(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
|
|
func AvatarURLContainsFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.ContainsFold(s.C(FieldAvatarURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLEQ applies the EQ predicate on the "vanity_url" field.
|
|
func VanityURLEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLNEQ applies the NEQ predicate on the "vanity_url" field.
|
|
func VanityURLNEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLIn applies the In predicate on the "vanity_url" field.
|
|
func VanityURLIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVanityURL), v...))
|
|
})
|
|
}
|
|
|
|
// VanityURLNotIn applies the NotIn predicate on the "vanity_url" field.
|
|
func VanityURLNotIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVanityURL), v...))
|
|
})
|
|
}
|
|
|
|
// VanityURLGT applies the GT predicate on the "vanity_url" field.
|
|
func VanityURLGT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLGTE applies the GTE predicate on the "vanity_url" field.
|
|
func VanityURLGTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLLT applies the LT predicate on the "vanity_url" field.
|
|
func VanityURLLT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLLTE applies the LTE predicate on the "vanity_url" field.
|
|
func VanityURLLTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLContains applies the Contains predicate on the "vanity_url" field.
|
|
func VanityURLContains(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.Contains(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLHasPrefix applies the HasPrefix predicate on the "vanity_url" field.
|
|
func VanityURLHasPrefix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasPrefix(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLHasSuffix applies the HasSuffix predicate on the "vanity_url" field.
|
|
func VanityURLHasSuffix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasSuffix(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLIsNil applies the IsNil predicate on the "vanity_url" field.
|
|
func VanityURLIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldVanityURL)))
|
|
})
|
|
}
|
|
|
|
// VanityURLNotNil applies the NotNil predicate on the "vanity_url" field.
|
|
func VanityURLNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldVanityURL)))
|
|
})
|
|
}
|
|
|
|
// VanityURLEqualFold applies the EqualFold predicate on the "vanity_url" field.
|
|
func VanityURLEqualFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EqualFold(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLContainsFold applies the ContainsFold predicate on the "vanity_url" field.
|
|
func VanityURLContainsFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.ContainsFold(s.C(FieldVanityURL), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealEQ applies the EQ predicate on the "vanity_url_real" field.
|
|
func VanityURLRealEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealNEQ applies the NEQ predicate on the "vanity_url_real" field.
|
|
func VanityURLRealNEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealIn applies the In predicate on the "vanity_url_real" field.
|
|
func VanityURLRealIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVanityURLReal), v...))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealNotIn applies the NotIn predicate on the "vanity_url_real" field.
|
|
func VanityURLRealNotIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVanityURLReal), v...))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealGT applies the GT predicate on the "vanity_url_real" field.
|
|
func VanityURLRealGT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealGTE applies the GTE predicate on the "vanity_url_real" field.
|
|
func VanityURLRealGTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealLT applies the LT predicate on the "vanity_url_real" field.
|
|
func VanityURLRealLT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealLTE applies the LTE predicate on the "vanity_url_real" field.
|
|
func VanityURLRealLTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealContains applies the Contains predicate on the "vanity_url_real" field.
|
|
func VanityURLRealContains(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.Contains(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealHasPrefix applies the HasPrefix predicate on the "vanity_url_real" field.
|
|
func VanityURLRealHasPrefix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasPrefix(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealHasSuffix applies the HasSuffix predicate on the "vanity_url_real" field.
|
|
func VanityURLRealHasSuffix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasSuffix(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealIsNil applies the IsNil predicate on the "vanity_url_real" field.
|
|
func VanityURLRealIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldVanityURLReal)))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealNotNil applies the NotNil predicate on the "vanity_url_real" field.
|
|
func VanityURLRealNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldVanityURLReal)))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealEqualFold applies the EqualFold predicate on the "vanity_url_real" field.
|
|
func VanityURLRealEqualFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EqualFold(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VanityURLRealContainsFold applies the ContainsFold predicate on the "vanity_url_real" field.
|
|
func VanityURLRealContainsFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.ContainsFold(s.C(FieldVanityURLReal), v))
|
|
})
|
|
}
|
|
|
|
// VacEQ applies the EQ predicate on the "vac" field.
|
|
func VacEQ(v bool) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVac), v))
|
|
})
|
|
}
|
|
|
|
// VacNEQ applies the NEQ predicate on the "vac" field.
|
|
func VacNEQ(v bool) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldVac), v))
|
|
})
|
|
}
|
|
|
|
// VacDateEQ applies the EQ predicate on the "vac_date" field.
|
|
func VacDateEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateNEQ applies the NEQ predicate on the "vac_date" field.
|
|
func VacDateNEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateIn applies the In predicate on the "vac_date" field.
|
|
func VacDateIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVacDate), v...))
|
|
})
|
|
}
|
|
|
|
// VacDateNotIn applies the NotIn predicate on the "vac_date" field.
|
|
func VacDateNotIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVacDate), v...))
|
|
})
|
|
}
|
|
|
|
// VacDateGT applies the GT predicate on the "vac_date" field.
|
|
func VacDateGT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateGTE applies the GTE predicate on the "vac_date" field.
|
|
func VacDateGTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateLT applies the LT predicate on the "vac_date" field.
|
|
func VacDateLT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateLTE applies the LTE predicate on the "vac_date" field.
|
|
func VacDateLTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldVacDate), v))
|
|
})
|
|
}
|
|
|
|
// VacDateIsNil applies the IsNil predicate on the "vac_date" field.
|
|
func VacDateIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldVacDate)))
|
|
})
|
|
}
|
|
|
|
// VacDateNotNil applies the NotNil predicate on the "vac_date" field.
|
|
func VacDateNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldVacDate)))
|
|
})
|
|
}
|
|
|
|
// VacCountEQ applies the EQ predicate on the "vac_count" field.
|
|
func VacCountEQ(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountNEQ applies the NEQ predicate on the "vac_count" field.
|
|
func VacCountNEQ(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountIn applies the In predicate on the "vac_count" field.
|
|
func VacCountIn(vs ...int) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVacCount), v...))
|
|
})
|
|
}
|
|
|
|
// VacCountNotIn applies the NotIn predicate on the "vac_count" field.
|
|
func VacCountNotIn(vs ...int) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldVacCount), v...))
|
|
})
|
|
}
|
|
|
|
// VacCountGT applies the GT predicate on the "vac_count" field.
|
|
func VacCountGT(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountGTE applies the GTE predicate on the "vac_count" field.
|
|
func VacCountGTE(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountLT applies the LT predicate on the "vac_count" field.
|
|
func VacCountLT(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountLTE applies the LTE predicate on the "vac_count" field.
|
|
func VacCountLTE(v int) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldVacCount), v))
|
|
})
|
|
}
|
|
|
|
// VacCountIsNil applies the IsNil predicate on the "vac_count" field.
|
|
func VacCountIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldVacCount)))
|
|
})
|
|
}
|
|
|
|
// VacCountNotNil applies the NotNil predicate on the "vac_count" field.
|
|
func VacCountNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldVacCount)))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedEQ applies the EQ predicate on the "steam_updated" field.
|
|
func SteamUpdatedEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedNEQ applies the NEQ predicate on the "steam_updated" field.
|
|
func SteamUpdatedNEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedIn applies the In predicate on the "steam_updated" field.
|
|
func SteamUpdatedIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldSteamUpdated), v...))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedNotIn applies the NotIn predicate on the "steam_updated" field.
|
|
func SteamUpdatedNotIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldSteamUpdated), v...))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedGT applies the GT predicate on the "steam_updated" field.
|
|
func SteamUpdatedGT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedGTE applies the GTE predicate on the "steam_updated" field.
|
|
func SteamUpdatedGTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedLT applies the LT predicate on the "steam_updated" field.
|
|
func SteamUpdatedLT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SteamUpdatedLTE applies the LTE predicate on the "steam_updated" field.
|
|
func SteamUpdatedLTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldSteamUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedEQ applies the EQ predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedNEQ applies the NEQ predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedNEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedIn applies the In predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldSharecodeUpdated), v...))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedNotIn applies the NotIn predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedNotIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldSharecodeUpdated), v...))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedGT applies the GT predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedGT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedGTE applies the GTE predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedGTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedLT applies the LT predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedLT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedLTE applies the LTE predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedLTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldSharecodeUpdated), v))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedIsNil applies the IsNil predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldSharecodeUpdated)))
|
|
})
|
|
}
|
|
|
|
// SharecodeUpdatedNotNil applies the NotNil predicate on the "sharecode_updated" field.
|
|
func SharecodeUpdatedNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldSharecodeUpdated)))
|
|
})
|
|
}
|
|
|
|
// AuthCodeEQ applies the EQ predicate on the "auth_code" field.
|
|
func AuthCodeEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeNEQ applies the NEQ predicate on the "auth_code" field.
|
|
func AuthCodeNEQ(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeIn applies the In predicate on the "auth_code" field.
|
|
func AuthCodeIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldAuthCode), v...))
|
|
})
|
|
}
|
|
|
|
// AuthCodeNotIn applies the NotIn predicate on the "auth_code" field.
|
|
func AuthCodeNotIn(vs ...string) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldAuthCode), v...))
|
|
})
|
|
}
|
|
|
|
// AuthCodeGT applies the GT predicate on the "auth_code" field.
|
|
func AuthCodeGT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeGTE applies the GTE predicate on the "auth_code" field.
|
|
func AuthCodeGTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeLT applies the LT predicate on the "auth_code" field.
|
|
func AuthCodeLT(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeLTE applies the LTE predicate on the "auth_code" field.
|
|
func AuthCodeLTE(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeContains applies the Contains predicate on the "auth_code" field.
|
|
func AuthCodeContains(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.Contains(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeHasPrefix applies the HasPrefix predicate on the "auth_code" field.
|
|
func AuthCodeHasPrefix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasPrefix(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeHasSuffix applies the HasSuffix predicate on the "auth_code" field.
|
|
func AuthCodeHasSuffix(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.HasSuffix(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeIsNil applies the IsNil predicate on the "auth_code" field.
|
|
func AuthCodeIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldAuthCode)))
|
|
})
|
|
}
|
|
|
|
// AuthCodeNotNil applies the NotNil predicate on the "auth_code" field.
|
|
func AuthCodeNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldAuthCode)))
|
|
})
|
|
}
|
|
|
|
// AuthCodeEqualFold applies the EqualFold predicate on the "auth_code" field.
|
|
func AuthCodeEqualFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EqualFold(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// AuthCodeContainsFold applies the ContainsFold predicate on the "auth_code" field.
|
|
func AuthCodeContainsFold(v string) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.ContainsFold(s.C(FieldAuthCode), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedEQ applies the EQ predicate on the "profile_created" field.
|
|
func ProfileCreatedEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.EQ(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedNEQ applies the NEQ predicate on the "profile_created" field.
|
|
func ProfileCreatedNEQ(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NEQ(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedIn applies the In predicate on the "profile_created" field.
|
|
func ProfileCreatedIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldProfileCreated), v...))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedNotIn applies the NotIn predicate on the "profile_created" field.
|
|
func ProfileCreatedNotIn(vs ...time.Time) predicate.Player {
|
|
v := make([]interface{}, len(vs))
|
|
for i := range v {
|
|
v[i] = vs[i]
|
|
}
|
|
return predicate.Player(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(FieldProfileCreated), v...))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedGT applies the GT predicate on the "profile_created" field.
|
|
func ProfileCreatedGT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GT(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedGTE applies the GTE predicate on the "profile_created" field.
|
|
func ProfileCreatedGTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.GTE(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedLT applies the LT predicate on the "profile_created" field.
|
|
func ProfileCreatedLT(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LT(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedLTE applies the LTE predicate on the "profile_created" field.
|
|
func ProfileCreatedLTE(v time.Time) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.LTE(s.C(FieldProfileCreated), v))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedIsNil applies the IsNil predicate on the "profile_created" field.
|
|
func ProfileCreatedIsNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.IsNull(s.C(FieldProfileCreated)))
|
|
})
|
|
}
|
|
|
|
// ProfileCreatedNotNil applies the NotNil predicate on the "profile_created" field.
|
|
func ProfileCreatedNotNil() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
s.Where(sql.NotNull(s.C(FieldProfileCreated)))
|
|
})
|
|
}
|
|
|
|
// HasStats applies the HasEdge predicate on the "stats" edge.
|
|
func HasStats() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.To(StatsTable, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, StatsTable, StatsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasStatsWith applies the HasEdge predicate on the "stats" edge with a given conditions (other predicates).
|
|
func HasStatsWith(preds ...predicate.Stats) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.To(StatsInverseTable, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, StatsTable, StatsColumn),
|
|
)
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasMatches applies the HasEdge predicate on the "matches" edge.
|
|
func HasMatches() predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.To(MatchesTable, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, false, MatchesTable, MatchesPrimaryKey...),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasMatchesWith applies the HasEdge predicate on the "matches" edge with a given conditions (other predicates).
|
|
func HasMatchesWith(preds ...predicate.Match) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.To(MatchesInverseTable, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, false, MatchesTable, MatchesPrimaryKey...),
|
|
)
|
|
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.Player) predicate.Player {
|
|
return predicate.Player(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.Player) predicate.Player {
|
|
return predicate.Player(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.Player) predicate.Player {
|
|
return predicate.Player(func(s *sql.Selector) {
|
|
p(s.Not())
|
|
})
|
|
}
|