chore: Bump ent to 0.11.2 (#2640)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package offlinesession
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package offlinesession
|
||||
|
||||
@@ -31,12 +31,6 @@ func IDNEQ(id string) predicate.OfflineSession {
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...string) predicate.OfflineSession {
|
||||
return predicate.OfflineSession(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]
|
||||
@@ -48,12 +42,6 @@ func IDIn(ids ...string) predicate.OfflineSession {
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...string) predicate.OfflineSession {
|
||||
return predicate.OfflineSession(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]
|
||||
@@ -139,12 +127,6 @@ func UserIDIn(vs ...string) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldUserID), v...))
|
||||
})
|
||||
}
|
||||
@@ -156,12 +138,6 @@ func UserIDNotIn(vs ...string) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldUserID), v...))
|
||||
})
|
||||
}
|
||||
@@ -250,12 +226,6 @@ func ConnIDIn(vs ...string) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldConnID), v...))
|
||||
})
|
||||
}
|
||||
@@ -267,12 +237,6 @@ func ConnIDNotIn(vs ...string) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldConnID), v...))
|
||||
})
|
||||
}
|
||||
@@ -361,12 +325,6 @@ func RefreshIn(vs ...[]byte) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldRefresh), v...))
|
||||
})
|
||||
}
|
||||
@@ -378,12 +336,6 @@ func RefreshNotIn(vs ...[]byte) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldRefresh), v...))
|
||||
})
|
||||
}
|
||||
@@ -437,12 +389,6 @@ func ConnectorDataIn(vs ...[]byte) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldConnectorData), v...))
|
||||
})
|
||||
}
|
||||
@@ -454,12 +400,6 @@ func ConnectorDataNotIn(vs ...[]byte) predicate.OfflineSession {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.OfflineSession(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(FieldConnectorData), v...))
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user