315 lines
10 KiB
Go
315 lines
10 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package alias
|
|
|
|
import (
|
|
"time"
|
|
|
|
"code.icod.de/postfix/manager/ent/predicate"
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
|
|
func Created(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldCreated, v))
|
|
}
|
|
|
|
// Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
|
|
func Modified(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldModified, v))
|
|
}
|
|
|
|
// DomainID applies equality check predicate on the "domain_id" field. It's identical to DomainIDEQ.
|
|
func DomainID(v int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldDomainID, v))
|
|
}
|
|
|
|
// Goto applies equality check predicate on the "goto" field. It's identical to GotoEQ.
|
|
func Goto(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldGoto, v))
|
|
}
|
|
|
|
// Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
|
|
func Active(v bool) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldActive, v))
|
|
}
|
|
|
|
// CreatedEQ applies the EQ predicate on the "created" field.
|
|
func CreatedEQ(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldCreated, v))
|
|
}
|
|
|
|
// CreatedNEQ applies the NEQ predicate on the "created" field.
|
|
func CreatedNEQ(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldCreated, v))
|
|
}
|
|
|
|
// CreatedIn applies the In predicate on the "created" field.
|
|
func CreatedIn(vs ...time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldIn(FieldCreated, vs...))
|
|
}
|
|
|
|
// CreatedNotIn applies the NotIn predicate on the "created" field.
|
|
func CreatedNotIn(vs ...time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotIn(FieldCreated, vs...))
|
|
}
|
|
|
|
// CreatedGT applies the GT predicate on the "created" field.
|
|
func CreatedGT(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGT(FieldCreated, v))
|
|
}
|
|
|
|
// CreatedGTE applies the GTE predicate on the "created" field.
|
|
func CreatedGTE(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGTE(FieldCreated, v))
|
|
}
|
|
|
|
// CreatedLT applies the LT predicate on the "created" field.
|
|
func CreatedLT(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLT(FieldCreated, v))
|
|
}
|
|
|
|
// CreatedLTE applies the LTE predicate on the "created" field.
|
|
func CreatedLTE(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLTE(FieldCreated, v))
|
|
}
|
|
|
|
// ModifiedEQ applies the EQ predicate on the "modified" field.
|
|
func ModifiedEQ(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedNEQ applies the NEQ predicate on the "modified" field.
|
|
func ModifiedNEQ(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedIn applies the In predicate on the "modified" field.
|
|
func ModifiedIn(vs ...time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldIn(FieldModified, vs...))
|
|
}
|
|
|
|
// ModifiedNotIn applies the NotIn predicate on the "modified" field.
|
|
func ModifiedNotIn(vs ...time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotIn(FieldModified, vs...))
|
|
}
|
|
|
|
// ModifiedGT applies the GT predicate on the "modified" field.
|
|
func ModifiedGT(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGT(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedGTE applies the GTE predicate on the "modified" field.
|
|
func ModifiedGTE(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGTE(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedLT applies the LT predicate on the "modified" field.
|
|
func ModifiedLT(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLT(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedLTE applies the LTE predicate on the "modified" field.
|
|
func ModifiedLTE(v time.Time) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLTE(FieldModified, v))
|
|
}
|
|
|
|
// ModifiedIsNil applies the IsNil predicate on the "modified" field.
|
|
func ModifiedIsNil() predicate.Alias {
|
|
return predicate.Alias(sql.FieldIsNull(FieldModified))
|
|
}
|
|
|
|
// ModifiedNotNil applies the NotNil predicate on the "modified" field.
|
|
func ModifiedNotNil() predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotNull(FieldModified))
|
|
}
|
|
|
|
// DomainIDEQ applies the EQ predicate on the "domain_id" field.
|
|
func DomainIDEQ(v int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldDomainID, v))
|
|
}
|
|
|
|
// DomainIDNEQ applies the NEQ predicate on the "domain_id" field.
|
|
func DomainIDNEQ(v int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldDomainID, v))
|
|
}
|
|
|
|
// DomainIDIn applies the In predicate on the "domain_id" field.
|
|
func DomainIDIn(vs ...int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldIn(FieldDomainID, vs...))
|
|
}
|
|
|
|
// DomainIDNotIn applies the NotIn predicate on the "domain_id" field.
|
|
func DomainIDNotIn(vs ...int64) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotIn(FieldDomainID, vs...))
|
|
}
|
|
|
|
// DomainIDIsNil applies the IsNil predicate on the "domain_id" field.
|
|
func DomainIDIsNil() predicate.Alias {
|
|
return predicate.Alias(sql.FieldIsNull(FieldDomainID))
|
|
}
|
|
|
|
// DomainIDNotNil applies the NotNil predicate on the "domain_id" field.
|
|
func DomainIDNotNil() predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotNull(FieldDomainID))
|
|
}
|
|
|
|
// GotoEQ applies the EQ predicate on the "goto" field.
|
|
func GotoEQ(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldGoto, v))
|
|
}
|
|
|
|
// GotoNEQ applies the NEQ predicate on the "goto" field.
|
|
func GotoNEQ(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldGoto, v))
|
|
}
|
|
|
|
// GotoIn applies the In predicate on the "goto" field.
|
|
func GotoIn(vs ...string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldIn(FieldGoto, vs...))
|
|
}
|
|
|
|
// GotoNotIn applies the NotIn predicate on the "goto" field.
|
|
func GotoNotIn(vs ...string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNotIn(FieldGoto, vs...))
|
|
}
|
|
|
|
// GotoGT applies the GT predicate on the "goto" field.
|
|
func GotoGT(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGT(FieldGoto, v))
|
|
}
|
|
|
|
// GotoGTE applies the GTE predicate on the "goto" field.
|
|
func GotoGTE(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldGTE(FieldGoto, v))
|
|
}
|
|
|
|
// GotoLT applies the LT predicate on the "goto" field.
|
|
func GotoLT(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLT(FieldGoto, v))
|
|
}
|
|
|
|
// GotoLTE applies the LTE predicate on the "goto" field.
|
|
func GotoLTE(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldLTE(FieldGoto, v))
|
|
}
|
|
|
|
// GotoContains applies the Contains predicate on the "goto" field.
|
|
func GotoContains(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldContains(FieldGoto, v))
|
|
}
|
|
|
|
// GotoHasPrefix applies the HasPrefix predicate on the "goto" field.
|
|
func GotoHasPrefix(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldHasPrefix(FieldGoto, v))
|
|
}
|
|
|
|
// GotoHasSuffix applies the HasSuffix predicate on the "goto" field.
|
|
func GotoHasSuffix(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldHasSuffix(FieldGoto, v))
|
|
}
|
|
|
|
// GotoEqualFold applies the EqualFold predicate on the "goto" field.
|
|
func GotoEqualFold(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEqualFold(FieldGoto, v))
|
|
}
|
|
|
|
// GotoContainsFold applies the ContainsFold predicate on the "goto" field.
|
|
func GotoContainsFold(v string) predicate.Alias {
|
|
return predicate.Alias(sql.FieldContainsFold(FieldGoto, v))
|
|
}
|
|
|
|
// ActiveEQ applies the EQ predicate on the "active" field.
|
|
func ActiveEQ(v bool) predicate.Alias {
|
|
return predicate.Alias(sql.FieldEQ(FieldActive, v))
|
|
}
|
|
|
|
// ActiveNEQ applies the NEQ predicate on the "active" field.
|
|
func ActiveNEQ(v bool) predicate.Alias {
|
|
return predicate.Alias(sql.FieldNEQ(FieldActive, v))
|
|
}
|
|
|
|
// HasDomain applies the HasEdge predicate on the "domain" edge.
|
|
func HasDomain() predicate.Alias {
|
|
return predicate.Alias(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, DomainTable, DomainColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasDomainWith applies the HasEdge predicate on the "domain" edge with a given conditions (other predicates).
|
|
func HasDomainWith(preds ...predicate.Domain) predicate.Alias {
|
|
return predicate.Alias(func(s *sql.Selector) {
|
|
step := newDomainStep()
|
|
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.Alias) predicate.Alias {
|
|
return predicate.Alias(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Alias) predicate.Alias {
|
|
return predicate.Alias(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Alias) predicate.Alias {
|
|
return predicate.Alias(sql.NotPredicates(p))
|
|
}
|