zkt24/z2/backend/ent/validators/where.go

164 lines
5.5 KiB
Go
Raw Permalink Normal View History

2024-04-25 11:51:47 +00:00
// Code generated by ent, DO NOT EDIT.
package validators
import (
"thesis/ent/predicate"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.Validators {
return predicate.Validators(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Validators {
return predicate.Validators(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Validators {
return predicate.Validators(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Validators {
return predicate.Validators(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Validators {
return predicate.Validators(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Validators {
return predicate.Validators(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Validators {
return predicate.Validators(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Validators {
return predicate.Validators(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Validators {
return predicate.Validators(sql.FieldLTE(FieldID, id))
}
// Facilitator applies equality check predicate on the "facilitator" field. It's identical to FacilitatorEQ.
func Facilitator(v string) predicate.Validators {
return predicate.Validators(sql.FieldEQ(FieldFacilitator, v))
}
// FacilitatorEQ applies the EQ predicate on the "facilitator" field.
func FacilitatorEQ(v string) predicate.Validators {
return predicate.Validators(sql.FieldEQ(FieldFacilitator, v))
}
// FacilitatorNEQ applies the NEQ predicate on the "facilitator" field.
func FacilitatorNEQ(v string) predicate.Validators {
return predicate.Validators(sql.FieldNEQ(FieldFacilitator, v))
}
// FacilitatorIn applies the In predicate on the "facilitator" field.
func FacilitatorIn(vs ...string) predicate.Validators {
return predicate.Validators(sql.FieldIn(FieldFacilitator, vs...))
}
// FacilitatorNotIn applies the NotIn predicate on the "facilitator" field.
func FacilitatorNotIn(vs ...string) predicate.Validators {
return predicate.Validators(sql.FieldNotIn(FieldFacilitator, vs...))
}
// FacilitatorGT applies the GT predicate on the "facilitator" field.
func FacilitatorGT(v string) predicate.Validators {
return predicate.Validators(sql.FieldGT(FieldFacilitator, v))
}
// FacilitatorGTE applies the GTE predicate on the "facilitator" field.
func FacilitatorGTE(v string) predicate.Validators {
return predicate.Validators(sql.FieldGTE(FieldFacilitator, v))
}
// FacilitatorLT applies the LT predicate on the "facilitator" field.
func FacilitatorLT(v string) predicate.Validators {
return predicate.Validators(sql.FieldLT(FieldFacilitator, v))
}
// FacilitatorLTE applies the LTE predicate on the "facilitator" field.
func FacilitatorLTE(v string) predicate.Validators {
return predicate.Validators(sql.FieldLTE(FieldFacilitator, v))
}
// FacilitatorContains applies the Contains predicate on the "facilitator" field.
func FacilitatorContains(v string) predicate.Validators {
return predicate.Validators(sql.FieldContains(FieldFacilitator, v))
}
// FacilitatorHasPrefix applies the HasPrefix predicate on the "facilitator" field.
func FacilitatorHasPrefix(v string) predicate.Validators {
return predicate.Validators(sql.FieldHasPrefix(FieldFacilitator, v))
}
// FacilitatorHasSuffix applies the HasSuffix predicate on the "facilitator" field.
func FacilitatorHasSuffix(v string) predicate.Validators {
return predicate.Validators(sql.FieldHasSuffix(FieldFacilitator, v))
}
// FacilitatorEqualFold applies the EqualFold predicate on the "facilitator" field.
func FacilitatorEqualFold(v string) predicate.Validators {
return predicate.Validators(sql.FieldEqualFold(FieldFacilitator, v))
}
// FacilitatorContainsFold applies the ContainsFold predicate on the "facilitator" field.
func FacilitatorContainsFold(v string) predicate.Validators {
return predicate.Validators(sql.FieldContainsFold(FieldFacilitator, v))
}
// HasKey applies the HasEdge predicate on the "key" edge.
func HasKey() predicate.Validators {
return predicate.Validators(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, KeyTable, KeyColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasKeyWith applies the HasEdge predicate on the "key" edge with a given conditions (other predicates).
func HasKeyWith(preds ...predicate.Key) predicate.Validators {
return predicate.Validators(func(s *sql.Selector) {
step := newKeyStep()
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.Validators) predicate.Validators {
return predicate.Validators(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Validators) predicate.Validators {
return predicate.Validators(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Validators) predicate.Validators {
return predicate.Validators(sql.NotPredicates(p))
}