2025-02-06 09:31:49 +01:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
2022-04-08 21:26:25 +02:00
|
|
|
|
|
|
|
package account
|
|
|
|
|
|
|
|
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.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
|
|
func IDEQ(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
|
|
func IDNEQ(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
|
|
func IDIn(ids ...int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIn(FieldID, ids...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
|
|
func IDNotIn(ids ...int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotIn(FieldID, ids...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
|
|
func IDGT(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGT(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
|
|
func IDGTE(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGTE(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
|
|
func IDLT(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLT(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
|
|
func IDLTE(id int64) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLTE(FieldID, id))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
|
|
|
|
func Created(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
|
|
|
|
func Modified(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
|
|
|
|
func Username(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
|
|
|
func Password(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Super applies equality check predicate on the "super" field. It's identical to SuperEQ.
|
|
|
|
func Super(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldSuper, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
|
|
|
|
func Active(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldActive, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedEQ applies the EQ predicate on the "created" field.
|
|
|
|
func CreatedEQ(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedNEQ applies the NEQ predicate on the "created" field.
|
|
|
|
func CreatedNEQ(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedIn applies the In predicate on the "created" field.
|
|
|
|
func CreatedIn(vs ...time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIn(FieldCreated, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedNotIn applies the NotIn predicate on the "created" field.
|
|
|
|
func CreatedNotIn(vs ...time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotIn(FieldCreated, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedGT applies the GT predicate on the "created" field.
|
|
|
|
func CreatedGT(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGT(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedGTE applies the GTE predicate on the "created" field.
|
|
|
|
func CreatedGTE(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGTE(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedLT applies the LT predicate on the "created" field.
|
|
|
|
func CreatedLT(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLT(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatedLTE applies the LTE predicate on the "created" field.
|
|
|
|
func CreatedLTE(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLTE(FieldCreated, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedEQ applies the EQ predicate on the "modified" field.
|
|
|
|
func ModifiedEQ(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedNEQ applies the NEQ predicate on the "modified" field.
|
|
|
|
func ModifiedNEQ(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedIn applies the In predicate on the "modified" field.
|
|
|
|
func ModifiedIn(vs ...time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIn(FieldModified, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedNotIn applies the NotIn predicate on the "modified" field.
|
|
|
|
func ModifiedNotIn(vs ...time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotIn(FieldModified, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedGT applies the GT predicate on the "modified" field.
|
|
|
|
func ModifiedGT(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGT(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedGTE applies the GTE predicate on the "modified" field.
|
|
|
|
func ModifiedGTE(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGTE(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedLT applies the LT predicate on the "modified" field.
|
|
|
|
func ModifiedLT(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLT(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedLTE applies the LTE predicate on the "modified" field.
|
|
|
|
func ModifiedLTE(v time.Time) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLTE(FieldModified, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedIsNil applies the IsNil predicate on the "modified" field.
|
|
|
|
func ModifiedIsNil() predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIsNull(FieldModified))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ModifiedNotNil applies the NotNil predicate on the "modified" field.
|
|
|
|
func ModifiedNotNil() predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotNull(FieldModified))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameEQ applies the EQ predicate on the "username" field.
|
|
|
|
func UsernameEQ(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameNEQ applies the NEQ predicate on the "username" field.
|
|
|
|
func UsernameNEQ(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameIn applies the In predicate on the "username" field.
|
|
|
|
func UsernameIn(vs ...string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIn(FieldUsername, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameNotIn applies the NotIn predicate on the "username" field.
|
|
|
|
func UsernameNotIn(vs ...string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotIn(FieldUsername, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameGT applies the GT predicate on the "username" field.
|
|
|
|
func UsernameGT(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGT(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameGTE applies the GTE predicate on the "username" field.
|
|
|
|
func UsernameGTE(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGTE(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameLT applies the LT predicate on the "username" field.
|
|
|
|
func UsernameLT(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLT(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameLTE applies the LTE predicate on the "username" field.
|
|
|
|
func UsernameLTE(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLTE(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameContains applies the Contains predicate on the "username" field.
|
|
|
|
func UsernameContains(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldContains(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
|
|
|
|
func UsernameHasPrefix(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldHasPrefix(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
|
|
|
|
func UsernameHasSuffix(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldHasSuffix(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameEqualFold applies the EqualFold predicate on the "username" field.
|
|
|
|
func UsernameEqualFold(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEqualFold(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// UsernameContainsFold applies the ContainsFold predicate on the "username" field.
|
|
|
|
func UsernameContainsFold(v string) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldContainsFold(FieldUsername, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordEQ applies the EQ predicate on the "password" field.
|
|
|
|
func PasswordEQ(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
|
|
|
func PasswordNEQ(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordIn applies the In predicate on the "password" field.
|
|
|
|
func PasswordIn(vs ...[]byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldIn(FieldPassword, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
|
|
|
func PasswordNotIn(vs ...[]byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNotIn(FieldPassword, vs...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordGT applies the GT predicate on the "password" field.
|
|
|
|
func PasswordGT(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGT(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordGTE applies the GTE predicate on the "password" field.
|
|
|
|
func PasswordGTE(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldGTE(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordLT applies the LT predicate on the "password" field.
|
|
|
|
func PasswordLT(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLT(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordLTE applies the LTE predicate on the "password" field.
|
|
|
|
func PasswordLTE(v []byte) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldLTE(FieldPassword, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// SuperEQ applies the EQ predicate on the "super" field.
|
|
|
|
func SuperEQ(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldSuper, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// SuperNEQ applies the NEQ predicate on the "super" field.
|
|
|
|
func SuperNEQ(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldSuper, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ActiveEQ applies the EQ predicate on the "active" field.
|
|
|
|
func ActiveEQ(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldEQ(FieldActive, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ActiveNEQ applies the NEQ predicate on the "active" field.
|
|
|
|
func ActiveNEQ(v bool) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.FieldNEQ(FieldActive, v))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// HasDomains applies the HasEdge predicate on the "domains" edge.
|
|
|
|
func HasDomains() predicate.Account {
|
|
|
|
return predicate.Account(func(s *sql.Selector) {
|
|
|
|
step := sqlgraph.NewStep(
|
|
|
|
sqlgraph.From(Table, FieldID),
|
|
|
|
sqlgraph.Edge(sqlgraph.M2M, false, DomainsTable, DomainsPrimaryKey...),
|
|
|
|
)
|
|
|
|
sqlgraph.HasNeighbors(s, step)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// HasDomainsWith applies the HasEdge predicate on the "domains" edge with a given conditions (other predicates).
|
|
|
|
func HasDomainsWith(preds ...predicate.Domain) predicate.Account {
|
|
|
|
return predicate.Account(func(s *sql.Selector) {
|
2025-02-06 09:31:49 +01:00
|
|
|
step := newDomainsStep()
|
2022-04-08 21:26:25 +02:00
|
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
|
|
for _, p := range preds {
|
|
|
|
p(s)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// HasLogs applies the HasEdge predicate on the "logs" edge.
|
|
|
|
func HasLogs() predicate.Account {
|
|
|
|
return predicate.Account(func(s *sql.Selector) {
|
|
|
|
step := sqlgraph.NewStep(
|
|
|
|
sqlgraph.From(Table, FieldID),
|
|
|
|
sqlgraph.Edge(sqlgraph.O2M, false, LogsTable, LogsColumn),
|
|
|
|
)
|
|
|
|
sqlgraph.HasNeighbors(s, step)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// HasLogsWith applies the HasEdge predicate on the "logs" edge with a given conditions (other predicates).
|
|
|
|
func HasLogsWith(preds ...predicate.Logentry) predicate.Account {
|
|
|
|
return predicate.Account(func(s *sql.Selector) {
|
2025-02-06 09:31:49 +01:00
|
|
|
step := newLogsStep()
|
2022-04-08 21:26:25 +02:00
|
|
|
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.Account) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.AndPredicates(predicates...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
|
|
func Or(predicates ...predicate.Account) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.OrPredicates(predicates...))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
|
|
func Not(p predicate.Account) predicate.Account {
|
2025-02-06 09:31:49 +01:00
|
|
|
return predicate.Account(sql.NotPredicates(p))
|
2022-04-08 21:26:25 +02:00
|
|
|
}
|