entc/gen: convert custom Go types to basic types (#502)

This commit is contained in:
Ariel Mashraki
2020-05-25 20:46:59 +03:00
committed by GitHub
parent 100d300094
commit 50edd3d370
69 changed files with 645 additions and 370 deletions

View File

@@ -122,7 +122,6 @@ func NameIn(vs ...string) predicate.City {
for i := range v {
v[i] = vs[i]
}
return predicate.City(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.
@@ -140,7 +139,6 @@ func NameNotIn(vs ...string) predicate.City {
for i := range v {
v[i] = vs[i]
}
return predicate.City(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.

View File

@@ -122,7 +122,6 @@ func NameIn(vs ...string) predicate.Street {
for i := range v {
v[i] = vs[i]
}
return predicate.Street(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.
@@ -140,7 +139,6 @@ func NameNotIn(vs ...string) predicate.Street {
for i := range v {
v[i] = vs[i]
}
return predicate.Street(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.