gomanager/ent/project/where.go

585 lines
21 KiB
Go
Raw Normal View History

2023-12-01 23:02:33 +01:00
// Code generated by ent, DO NOT EDIT.
package project
import (
"time"
"code.icod.de/dalu/gomanager/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.Project {
return predicate.Project(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Project {
return predicate.Project(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Project {
return predicate.Project(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Project {
return predicate.Project(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldID, id))
}
// CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTime(v time.Time) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldCreateTime, v))
}
// User applies equality check predicate on the "user" field. It's identical to UserEQ.
func User(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldUser, v))
}
// Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func Group(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldGroup, v))
}
// RootPath applies equality check predicate on the "root_path" field. It's identical to RootPathEQ.
func RootPath(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldRootPath, v))
}
// ServiceName applies equality check predicate on the "service_name" field. It's identical to ServiceNameEQ.
func ServiceName(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldServiceName, v))
}
// BinaryPath applies equality check predicate on the "binary_path" field. It's identical to BinaryPathEQ.
func BinaryPath(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBinaryPath, v))
}
// MoveToTarget applies equality check predicate on the "move_to_target" field. It's identical to MoveToTargetEQ.
func MoveToTarget(v bool) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldMoveToTarget, v))
}
// BinaryTargetPath applies equality check predicate on the "binary_target_path" field. It's identical to BinaryTargetPathEQ.
func BinaryTargetPath(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBinaryTargetPath, v))
}
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldCreateTime, v))
}
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNEQ(v time.Time) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldCreateTime, v))
}
// CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldIn(FieldCreateTime, vs...))
}
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func CreateTimeNotIn(vs ...time.Time) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldCreateTime, vs...))
}
// CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGT(FieldCreateTime, v))
}
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeGTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldCreateTime, v))
}
// CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLT(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLT(FieldCreateTime, v))
}
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeLTE(v time.Time) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldCreateTime, v))
}
// UserEQ applies the EQ predicate on the "user" field.
func UserEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldUser, v))
}
// UserNEQ applies the NEQ predicate on the "user" field.
func UserNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldUser, v))
}
// UserIn applies the In predicate on the "user" field.
func UserIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldUser, vs...))
}
// UserNotIn applies the NotIn predicate on the "user" field.
func UserNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldUser, vs...))
}
// UserGT applies the GT predicate on the "user" field.
func UserGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldUser, v))
}
// UserGTE applies the GTE predicate on the "user" field.
func UserGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldUser, v))
}
// UserLT applies the LT predicate on the "user" field.
func UserLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldUser, v))
}
// UserLTE applies the LTE predicate on the "user" field.
func UserLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldUser, v))
}
// UserContains applies the Contains predicate on the "user" field.
func UserContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldUser, v))
}
// UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldUser, v))
}
// UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldUser, v))
}
// UserEqualFold applies the EqualFold predicate on the "user" field.
func UserEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldUser, v))
}
// UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldUser, v))
}
// GroupEQ applies the EQ predicate on the "group" field.
func GroupEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldGroup, v))
}
// GroupNEQ applies the NEQ predicate on the "group" field.
func GroupNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldGroup, v))
}
// GroupIn applies the In predicate on the "group" field.
func GroupIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldGroup, vs...))
}
// GroupNotIn applies the NotIn predicate on the "group" field.
func GroupNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldGroup, vs...))
}
// GroupGT applies the GT predicate on the "group" field.
func GroupGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldGroup, v))
}
// GroupGTE applies the GTE predicate on the "group" field.
func GroupGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldGroup, v))
}
// GroupLT applies the LT predicate on the "group" field.
func GroupLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldGroup, v))
}
// GroupLTE applies the LTE predicate on the "group" field.
func GroupLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldGroup, v))
}
// GroupContains applies the Contains predicate on the "group" field.
func GroupContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldGroup, v))
}
// GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldGroup, v))
}
// GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldGroup, v))
}
// GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldGroup, v))
}
// GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldGroup, v))
}
// RootPathEQ applies the EQ predicate on the "root_path" field.
func RootPathEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldRootPath, v))
}
// RootPathNEQ applies the NEQ predicate on the "root_path" field.
func RootPathNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldRootPath, v))
}
// RootPathIn applies the In predicate on the "root_path" field.
func RootPathIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldRootPath, vs...))
}
// RootPathNotIn applies the NotIn predicate on the "root_path" field.
func RootPathNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldRootPath, vs...))
}
// RootPathGT applies the GT predicate on the "root_path" field.
func RootPathGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldRootPath, v))
}
// RootPathGTE applies the GTE predicate on the "root_path" field.
func RootPathGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldRootPath, v))
}
// RootPathLT applies the LT predicate on the "root_path" field.
func RootPathLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldRootPath, v))
}
// RootPathLTE applies the LTE predicate on the "root_path" field.
func RootPathLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldRootPath, v))
}
// RootPathContains applies the Contains predicate on the "root_path" field.
func RootPathContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldRootPath, v))
}
// RootPathHasPrefix applies the HasPrefix predicate on the "root_path" field.
func RootPathHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldRootPath, v))
}
// RootPathHasSuffix applies the HasSuffix predicate on the "root_path" field.
func RootPathHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldRootPath, v))
}
// RootPathEqualFold applies the EqualFold predicate on the "root_path" field.
func RootPathEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldRootPath, v))
}
// RootPathContainsFold applies the ContainsFold predicate on the "root_path" field.
func RootPathContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldRootPath, v))
}
// ServiceNameEQ applies the EQ predicate on the "service_name" field.
func ServiceNameEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldServiceName, v))
}
// ServiceNameNEQ applies the NEQ predicate on the "service_name" field.
func ServiceNameNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldServiceName, v))
}
// ServiceNameIn applies the In predicate on the "service_name" field.
func ServiceNameIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldServiceName, vs...))
}
// ServiceNameNotIn applies the NotIn predicate on the "service_name" field.
func ServiceNameNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldServiceName, vs...))
}
// ServiceNameGT applies the GT predicate on the "service_name" field.
func ServiceNameGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldServiceName, v))
}
// ServiceNameGTE applies the GTE predicate on the "service_name" field.
func ServiceNameGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldServiceName, v))
}
// ServiceNameLT applies the LT predicate on the "service_name" field.
func ServiceNameLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldServiceName, v))
}
// ServiceNameLTE applies the LTE predicate on the "service_name" field.
func ServiceNameLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldServiceName, v))
}
// ServiceNameContains applies the Contains predicate on the "service_name" field.
func ServiceNameContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldServiceName, v))
}
// ServiceNameHasPrefix applies the HasPrefix predicate on the "service_name" field.
func ServiceNameHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldServiceName, v))
}
// ServiceNameHasSuffix applies the HasSuffix predicate on the "service_name" field.
func ServiceNameHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldServiceName, v))
}
// ServiceNameEqualFold applies the EqualFold predicate on the "service_name" field.
func ServiceNameEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldServiceName, v))
}
// ServiceNameContainsFold applies the ContainsFold predicate on the "service_name" field.
func ServiceNameContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldServiceName, v))
}
// BinaryPathEQ applies the EQ predicate on the "binary_path" field.
func BinaryPathEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBinaryPath, v))
}
// BinaryPathNEQ applies the NEQ predicate on the "binary_path" field.
func BinaryPathNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldBinaryPath, v))
}
// BinaryPathIn applies the In predicate on the "binary_path" field.
func BinaryPathIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldBinaryPath, vs...))
}
// BinaryPathNotIn applies the NotIn predicate on the "binary_path" field.
func BinaryPathNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldBinaryPath, vs...))
}
// BinaryPathGT applies the GT predicate on the "binary_path" field.
func BinaryPathGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldBinaryPath, v))
}
// BinaryPathGTE applies the GTE predicate on the "binary_path" field.
func BinaryPathGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldBinaryPath, v))
}
// BinaryPathLT applies the LT predicate on the "binary_path" field.
func BinaryPathLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldBinaryPath, v))
}
// BinaryPathLTE applies the LTE predicate on the "binary_path" field.
func BinaryPathLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldBinaryPath, v))
}
// BinaryPathContains applies the Contains predicate on the "binary_path" field.
func BinaryPathContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldBinaryPath, v))
}
// BinaryPathHasPrefix applies the HasPrefix predicate on the "binary_path" field.
func BinaryPathHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldBinaryPath, v))
}
// BinaryPathHasSuffix applies the HasSuffix predicate on the "binary_path" field.
func BinaryPathHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldBinaryPath, v))
}
// BinaryPathEqualFold applies the EqualFold predicate on the "binary_path" field.
func BinaryPathEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldBinaryPath, v))
}
// BinaryPathContainsFold applies the ContainsFold predicate on the "binary_path" field.
func BinaryPathContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldBinaryPath, v))
}
// MoveToTargetEQ applies the EQ predicate on the "move_to_target" field.
func MoveToTargetEQ(v bool) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldMoveToTarget, v))
}
// MoveToTargetNEQ applies the NEQ predicate on the "move_to_target" field.
func MoveToTargetNEQ(v bool) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldMoveToTarget, v))
}
// BinaryTargetPathEQ applies the EQ predicate on the "binary_target_path" field.
func BinaryTargetPathEQ(v string) predicate.Project {
return predicate.Project(sql.FieldEQ(FieldBinaryTargetPath, v))
}
// BinaryTargetPathNEQ applies the NEQ predicate on the "binary_target_path" field.
func BinaryTargetPathNEQ(v string) predicate.Project {
return predicate.Project(sql.FieldNEQ(FieldBinaryTargetPath, v))
}
// BinaryTargetPathIn applies the In predicate on the "binary_target_path" field.
func BinaryTargetPathIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldIn(FieldBinaryTargetPath, vs...))
}
// BinaryTargetPathNotIn applies the NotIn predicate on the "binary_target_path" field.
func BinaryTargetPathNotIn(vs ...string) predicate.Project {
return predicate.Project(sql.FieldNotIn(FieldBinaryTargetPath, vs...))
}
// BinaryTargetPathGT applies the GT predicate on the "binary_target_path" field.
func BinaryTargetPathGT(v string) predicate.Project {
return predicate.Project(sql.FieldGT(FieldBinaryTargetPath, v))
}
// BinaryTargetPathGTE applies the GTE predicate on the "binary_target_path" field.
func BinaryTargetPathGTE(v string) predicate.Project {
return predicate.Project(sql.FieldGTE(FieldBinaryTargetPath, v))
}
// BinaryTargetPathLT applies the LT predicate on the "binary_target_path" field.
func BinaryTargetPathLT(v string) predicate.Project {
return predicate.Project(sql.FieldLT(FieldBinaryTargetPath, v))
}
// BinaryTargetPathLTE applies the LTE predicate on the "binary_target_path" field.
func BinaryTargetPathLTE(v string) predicate.Project {
return predicate.Project(sql.FieldLTE(FieldBinaryTargetPath, v))
}
// BinaryTargetPathContains applies the Contains predicate on the "binary_target_path" field.
func BinaryTargetPathContains(v string) predicate.Project {
return predicate.Project(sql.FieldContains(FieldBinaryTargetPath, v))
}
// BinaryTargetPathHasPrefix applies the HasPrefix predicate on the "binary_target_path" field.
func BinaryTargetPathHasPrefix(v string) predicate.Project {
return predicate.Project(sql.FieldHasPrefix(FieldBinaryTargetPath, v))
}
// BinaryTargetPathHasSuffix applies the HasSuffix predicate on the "binary_target_path" field.
func BinaryTargetPathHasSuffix(v string) predicate.Project {
return predicate.Project(sql.FieldHasSuffix(FieldBinaryTargetPath, v))
}
// BinaryTargetPathIsNil applies the IsNil predicate on the "binary_target_path" field.
func BinaryTargetPathIsNil() predicate.Project {
return predicate.Project(sql.FieldIsNull(FieldBinaryTargetPath))
}
// BinaryTargetPathNotNil applies the NotNil predicate on the "binary_target_path" field.
func BinaryTargetPathNotNil() predicate.Project {
return predicate.Project(sql.FieldNotNull(FieldBinaryTargetPath))
}
// BinaryTargetPathEqualFold applies the EqualFold predicate on the "binary_target_path" field.
func BinaryTargetPathEqualFold(v string) predicate.Project {
return predicate.Project(sql.FieldEqualFold(FieldBinaryTargetPath, v))
}
// BinaryTargetPathContainsFold applies the ContainsFold predicate on the "binary_target_path" field.
func BinaryTargetPathContainsFold(v string) predicate.Project {
return predicate.Project(sql.FieldContainsFold(FieldBinaryTargetPath, v))
}
// HasLogentries applies the HasEdge predicate on the "logentries" edge.
func HasLogentries() predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, LogentriesTable, LogentriesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasLogentriesWith applies the HasEdge predicate on the "logentries" edge with a given conditions (other predicates).
func HasLogentriesWith(preds ...predicate.Logentry) predicate.Project {
return predicate.Project(func(s *sql.Selector) {
step := newLogentriesStep()
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.Project) predicate.Project {
return predicate.Project(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Project) predicate.Project {
return predicate.Project(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Project) predicate.Project {
return predicate.Project(sql.NotPredicates(p))
}