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

279 lines
8.9 KiB
Go
Raw Permalink Normal View History

2024-04-25 11:51:47 +00:00
// Code generated by ent, DO NOT EDIT.
package key
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.Key {
return predicate.Key(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Key {
return predicate.Key(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Key {
return predicate.Key(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Key {
return predicate.Key(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Key {
return predicate.Key(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Key {
return predicate.Key(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Key {
return predicate.Key(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Key {
return predicate.Key(sql.FieldLTE(FieldID, id))
}
// PublicKey applies equality check predicate on the "publicKey" field. It's identical to PublicKeyEQ.
func PublicKey(v string) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldPublicKey, v))
}
// Owner applies equality check predicate on the "Owner" field. It's identical to OwnerEQ.
func Owner(v string) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldOwner, v))
}
// TrustScore applies equality check predicate on the "trustScore" field. It's identical to TrustScoreEQ.
func TrustScore(v float64) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldTrustScore, v))
}
// PublicKeyEQ applies the EQ predicate on the "publicKey" field.
func PublicKeyEQ(v string) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldPublicKey, v))
}
// PublicKeyNEQ applies the NEQ predicate on the "publicKey" field.
func PublicKeyNEQ(v string) predicate.Key {
return predicate.Key(sql.FieldNEQ(FieldPublicKey, v))
}
// PublicKeyIn applies the In predicate on the "publicKey" field.
func PublicKeyIn(vs ...string) predicate.Key {
return predicate.Key(sql.FieldIn(FieldPublicKey, vs...))
}
// PublicKeyNotIn applies the NotIn predicate on the "publicKey" field.
func PublicKeyNotIn(vs ...string) predicate.Key {
return predicate.Key(sql.FieldNotIn(FieldPublicKey, vs...))
}
// PublicKeyGT applies the GT predicate on the "publicKey" field.
func PublicKeyGT(v string) predicate.Key {
return predicate.Key(sql.FieldGT(FieldPublicKey, v))
}
// PublicKeyGTE applies the GTE predicate on the "publicKey" field.
func PublicKeyGTE(v string) predicate.Key {
return predicate.Key(sql.FieldGTE(FieldPublicKey, v))
}
// PublicKeyLT applies the LT predicate on the "publicKey" field.
func PublicKeyLT(v string) predicate.Key {
return predicate.Key(sql.FieldLT(FieldPublicKey, v))
}
// PublicKeyLTE applies the LTE predicate on the "publicKey" field.
func PublicKeyLTE(v string) predicate.Key {
return predicate.Key(sql.FieldLTE(FieldPublicKey, v))
}
// PublicKeyContains applies the Contains predicate on the "publicKey" field.
func PublicKeyContains(v string) predicate.Key {
return predicate.Key(sql.FieldContains(FieldPublicKey, v))
}
// PublicKeyHasPrefix applies the HasPrefix predicate on the "publicKey" field.
func PublicKeyHasPrefix(v string) predicate.Key {
return predicate.Key(sql.FieldHasPrefix(FieldPublicKey, v))
}
// PublicKeyHasSuffix applies the HasSuffix predicate on the "publicKey" field.
func PublicKeyHasSuffix(v string) predicate.Key {
return predicate.Key(sql.FieldHasSuffix(FieldPublicKey, v))
}
// PublicKeyEqualFold applies the EqualFold predicate on the "publicKey" field.
func PublicKeyEqualFold(v string) predicate.Key {
return predicate.Key(sql.FieldEqualFold(FieldPublicKey, v))
}
// PublicKeyContainsFold applies the ContainsFold predicate on the "publicKey" field.
func PublicKeyContainsFold(v string) predicate.Key {
return predicate.Key(sql.FieldContainsFold(FieldPublicKey, v))
}
// OwnerEQ applies the EQ predicate on the "Owner" field.
func OwnerEQ(v string) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldOwner, v))
}
// OwnerNEQ applies the NEQ predicate on the "Owner" field.
func OwnerNEQ(v string) predicate.Key {
return predicate.Key(sql.FieldNEQ(FieldOwner, v))
}
// OwnerIn applies the In predicate on the "Owner" field.
func OwnerIn(vs ...string) predicate.Key {
return predicate.Key(sql.FieldIn(FieldOwner, vs...))
}
// OwnerNotIn applies the NotIn predicate on the "Owner" field.
func OwnerNotIn(vs ...string) predicate.Key {
return predicate.Key(sql.FieldNotIn(FieldOwner, vs...))
}
// OwnerGT applies the GT predicate on the "Owner" field.
func OwnerGT(v string) predicate.Key {
return predicate.Key(sql.FieldGT(FieldOwner, v))
}
// OwnerGTE applies the GTE predicate on the "Owner" field.
func OwnerGTE(v string) predicate.Key {
return predicate.Key(sql.FieldGTE(FieldOwner, v))
}
// OwnerLT applies the LT predicate on the "Owner" field.
func OwnerLT(v string) predicate.Key {
return predicate.Key(sql.FieldLT(FieldOwner, v))
}
// OwnerLTE applies the LTE predicate on the "Owner" field.
func OwnerLTE(v string) predicate.Key {
return predicate.Key(sql.FieldLTE(FieldOwner, v))
}
// OwnerContains applies the Contains predicate on the "Owner" field.
func OwnerContains(v string) predicate.Key {
return predicate.Key(sql.FieldContains(FieldOwner, v))
}
// OwnerHasPrefix applies the HasPrefix predicate on the "Owner" field.
func OwnerHasPrefix(v string) predicate.Key {
return predicate.Key(sql.FieldHasPrefix(FieldOwner, v))
}
// OwnerHasSuffix applies the HasSuffix predicate on the "Owner" field.
func OwnerHasSuffix(v string) predicate.Key {
return predicate.Key(sql.FieldHasSuffix(FieldOwner, v))
}
// OwnerEqualFold applies the EqualFold predicate on the "Owner" field.
func OwnerEqualFold(v string) predicate.Key {
return predicate.Key(sql.FieldEqualFold(FieldOwner, v))
}
// OwnerContainsFold applies the ContainsFold predicate on the "Owner" field.
func OwnerContainsFold(v string) predicate.Key {
return predicate.Key(sql.FieldContainsFold(FieldOwner, v))
}
// TrustScoreEQ applies the EQ predicate on the "trustScore" field.
func TrustScoreEQ(v float64) predicate.Key {
return predicate.Key(sql.FieldEQ(FieldTrustScore, v))
}
// TrustScoreNEQ applies the NEQ predicate on the "trustScore" field.
func TrustScoreNEQ(v float64) predicate.Key {
return predicate.Key(sql.FieldNEQ(FieldTrustScore, v))
}
// TrustScoreIn applies the In predicate on the "trustScore" field.
func TrustScoreIn(vs ...float64) predicate.Key {
return predicate.Key(sql.FieldIn(FieldTrustScore, vs...))
}
// TrustScoreNotIn applies the NotIn predicate on the "trustScore" field.
func TrustScoreNotIn(vs ...float64) predicate.Key {
return predicate.Key(sql.FieldNotIn(FieldTrustScore, vs...))
}
// TrustScoreGT applies the GT predicate on the "trustScore" field.
func TrustScoreGT(v float64) predicate.Key {
return predicate.Key(sql.FieldGT(FieldTrustScore, v))
}
// TrustScoreGTE applies the GTE predicate on the "trustScore" field.
func TrustScoreGTE(v float64) predicate.Key {
return predicate.Key(sql.FieldGTE(FieldTrustScore, v))
}
// TrustScoreLT applies the LT predicate on the "trustScore" field.
func TrustScoreLT(v float64) predicate.Key {
return predicate.Key(sql.FieldLT(FieldTrustScore, v))
}
// TrustScoreLTE applies the LTE predicate on the "trustScore" field.
func TrustScoreLTE(v float64) predicate.Key {
return predicate.Key(sql.FieldLTE(FieldTrustScore, v))
}
// HasSigned applies the HasEdge predicate on the "Signed" edge.
func HasSigned() predicate.Key {
return predicate.Key(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, SignedTable, SignedPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSignedWith applies the HasEdge predicate on the "Signed" edge with a given conditions (other predicates).
func HasSignedWith(preds ...predicate.Transactions) predicate.Key {
return predicate.Key(func(s *sql.Selector) {
step := newSignedStep()
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.Key) predicate.Key {
return predicate.Key(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Key) predicate.Key {
return predicate.Key(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Key) predicate.Key {
return predicate.Key(sql.NotPredicates(p))
}