func And(predicates ...predicate.WithFields) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for _, p := range predicates {
			p(s1)
		}
		s.Where(s1.P())
	})
}
And groups predicates with the AND operator between them.
package withfields
import (
	"entgo.io/contrib/schemast/internal/mutatetest/ent/predicate"
	"entgo.io/ent/dialect/sql"
)
func ID(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		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...))
	})
}
func IDNotIn(ids ...int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		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...))
	})
}
func IDGT(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func Existing(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldExisting), v))
	})
}
func ExistingEQ(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldExisting), v))
	})
}
func ExistingNEQ(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldExisting), v))
	})
}
func ExistingIn(vs ...string) predicate.WithFields {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.WithFields(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldExisting), v...))
	})
}
func ExistingNotIn(vs ...string) predicate.WithFields {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.WithFields(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldExisting), v...))
	})
}
func ExistingGT(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldExisting), v))
	})
}
func ExistingGTE(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldExisting), v))
	})
}
func ExistingLT(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldExisting), v))
	})
}
func ExistingLTE(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldExisting), v))
	})
}
func ExistingContains(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldExisting), v))
	})
}
func ExistingHasPrefix(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldExisting), v))
	})
}
func ExistingHasSuffix(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldExisting), v))
	})
}
func ExistingEqualFold(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldExisting), v))
	})
}
func ExistingContainsFold(v string) predicate.WithFields {
	return predicate.WithFields(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldExisting), v))
	})
}