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 connector
|
||||
|
||||
@@ -31,12 +31,6 @@ func IDNEQ(id string) predicate.Connector {
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...string) predicate.Connector {
|
||||
return predicate.Connector(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.Connector {
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...string) predicate.Connector {
|
||||
return predicate.Connector(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 TypeIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldType), v...))
|
||||
})
|
||||
}
|
||||
@@ -156,12 +138,6 @@ func TypeNotIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldType), v...))
|
||||
})
|
||||
}
|
||||
@@ -250,12 +226,6 @@ func NameIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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...))
|
||||
})
|
||||
}
|
||||
@@ -267,12 +237,6 @@ func NameNotIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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...))
|
||||
})
|
||||
}
|
||||
@@ -361,12 +325,6 @@ func ResourceVersionIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldResourceVersion), v...))
|
||||
})
|
||||
}
|
||||
@@ -378,12 +336,6 @@ func ResourceVersionNotIn(vs ...string) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldResourceVersion), v...))
|
||||
})
|
||||
}
|
||||
@@ -472,12 +424,6 @@ func ConfigIn(vs ...[]byte) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldConfig), v...))
|
||||
})
|
||||
}
|
||||
@@ -489,12 +435,6 @@ func ConfigNotIn(vs ...[]byte) predicate.Connector {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Connector(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(FieldConfig), v...))
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user