462 lines
16 KiB
Go
462 lines
16 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package transactions
|
|
|
|
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.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
|
|
func Type(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldType, v))
|
|
}
|
|
|
|
// Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
|
|
func Timestamp(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldTimestamp, v))
|
|
}
|
|
|
|
// Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
|
|
func Comment(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldComment, v))
|
|
}
|
|
|
|
// Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
|
|
func Content(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldContent, v))
|
|
}
|
|
|
|
// Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.
|
|
func Hash(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldHash, v))
|
|
}
|
|
|
|
// Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.
|
|
func Signature(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldSignature, v))
|
|
}
|
|
|
|
// TypeEQ applies the EQ predicate on the "type" field.
|
|
func TypeEQ(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeNEQ applies the NEQ predicate on the "type" field.
|
|
func TypeNEQ(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeIn applies the In predicate on the "type" field.
|
|
func TypeIn(vs ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldType, vs...))
|
|
}
|
|
|
|
// TypeNotIn applies the NotIn predicate on the "type" field.
|
|
func TypeNotIn(vs ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldType, vs...))
|
|
}
|
|
|
|
// TypeGT applies the GT predicate on the "type" field.
|
|
func TypeGT(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldType, v))
|
|
}
|
|
|
|
// TypeGTE applies the GTE predicate on the "type" field.
|
|
func TypeGTE(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldType, v))
|
|
}
|
|
|
|
// TypeLT applies the LT predicate on the "type" field.
|
|
func TypeLT(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldType, v))
|
|
}
|
|
|
|
// TypeLTE applies the LTE predicate on the "type" field.
|
|
func TypeLTE(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldType, v))
|
|
}
|
|
|
|
// TimestampEQ applies the EQ predicate on the "timestamp" field.
|
|
func TimestampEQ(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldTimestamp, v))
|
|
}
|
|
|
|
// TimestampNEQ applies the NEQ predicate on the "timestamp" field.
|
|
func TimestampNEQ(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldTimestamp, v))
|
|
}
|
|
|
|
// TimestampIn applies the In predicate on the "timestamp" field.
|
|
func TimestampIn(vs ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldTimestamp, vs...))
|
|
}
|
|
|
|
// TimestampNotIn applies the NotIn predicate on the "timestamp" field.
|
|
func TimestampNotIn(vs ...int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldTimestamp, vs...))
|
|
}
|
|
|
|
// TimestampGT applies the GT predicate on the "timestamp" field.
|
|
func TimestampGT(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldTimestamp, v))
|
|
}
|
|
|
|
// TimestampGTE applies the GTE predicate on the "timestamp" field.
|
|
func TimestampGTE(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldTimestamp, v))
|
|
}
|
|
|
|
// TimestampLT applies the LT predicate on the "timestamp" field.
|
|
func TimestampLT(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldTimestamp, v))
|
|
}
|
|
|
|
// TimestampLTE applies the LTE predicate on the "timestamp" field.
|
|
func TimestampLTE(v int) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldTimestamp, v))
|
|
}
|
|
|
|
// CommentEQ applies the EQ predicate on the "comment" field.
|
|
func CommentEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldComment, v))
|
|
}
|
|
|
|
// CommentNEQ applies the NEQ predicate on the "comment" field.
|
|
func CommentNEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldComment, v))
|
|
}
|
|
|
|
// CommentIn applies the In predicate on the "comment" field.
|
|
func CommentIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldComment, vs...))
|
|
}
|
|
|
|
// CommentNotIn applies the NotIn predicate on the "comment" field.
|
|
func CommentNotIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldComment, vs...))
|
|
}
|
|
|
|
// CommentGT applies the GT predicate on the "comment" field.
|
|
func CommentGT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldComment, v))
|
|
}
|
|
|
|
// CommentGTE applies the GTE predicate on the "comment" field.
|
|
func CommentGTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldComment, v))
|
|
}
|
|
|
|
// CommentLT applies the LT predicate on the "comment" field.
|
|
func CommentLT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldComment, v))
|
|
}
|
|
|
|
// CommentLTE applies the LTE predicate on the "comment" field.
|
|
func CommentLTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldComment, v))
|
|
}
|
|
|
|
// CommentContains applies the Contains predicate on the "comment" field.
|
|
func CommentContains(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContains(FieldComment, v))
|
|
}
|
|
|
|
// CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
|
|
func CommentHasPrefix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasPrefix(FieldComment, v))
|
|
}
|
|
|
|
// CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
|
|
func CommentHasSuffix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasSuffix(FieldComment, v))
|
|
}
|
|
|
|
// CommentEqualFold applies the EqualFold predicate on the "comment" field.
|
|
func CommentEqualFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEqualFold(FieldComment, v))
|
|
}
|
|
|
|
// CommentContainsFold applies the ContainsFold predicate on the "comment" field.
|
|
func CommentContainsFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContainsFold(FieldComment, v))
|
|
}
|
|
|
|
// ContentEQ applies the EQ predicate on the "content" field.
|
|
func ContentEQ(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldContent, v))
|
|
}
|
|
|
|
// ContentNEQ applies the NEQ predicate on the "content" field.
|
|
func ContentNEQ(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldContent, v))
|
|
}
|
|
|
|
// ContentIn applies the In predicate on the "content" field.
|
|
func ContentIn(vs ...[]byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldContent, vs...))
|
|
}
|
|
|
|
// ContentNotIn applies the NotIn predicate on the "content" field.
|
|
func ContentNotIn(vs ...[]byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldContent, vs...))
|
|
}
|
|
|
|
// ContentGT applies the GT predicate on the "content" field.
|
|
func ContentGT(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldContent, v))
|
|
}
|
|
|
|
// ContentGTE applies the GTE predicate on the "content" field.
|
|
func ContentGTE(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldContent, v))
|
|
}
|
|
|
|
// ContentLT applies the LT predicate on the "content" field.
|
|
func ContentLT(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldContent, v))
|
|
}
|
|
|
|
// ContentLTE applies the LTE predicate on the "content" field.
|
|
func ContentLTE(v []byte) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldContent, v))
|
|
}
|
|
|
|
// HashEQ applies the EQ predicate on the "hash" field.
|
|
func HashEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldHash, v))
|
|
}
|
|
|
|
// HashNEQ applies the NEQ predicate on the "hash" field.
|
|
func HashNEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldHash, v))
|
|
}
|
|
|
|
// HashIn applies the In predicate on the "hash" field.
|
|
func HashIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldHash, vs...))
|
|
}
|
|
|
|
// HashNotIn applies the NotIn predicate on the "hash" field.
|
|
func HashNotIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldHash, vs...))
|
|
}
|
|
|
|
// HashGT applies the GT predicate on the "hash" field.
|
|
func HashGT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldHash, v))
|
|
}
|
|
|
|
// HashGTE applies the GTE predicate on the "hash" field.
|
|
func HashGTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldHash, v))
|
|
}
|
|
|
|
// HashLT applies the LT predicate on the "hash" field.
|
|
func HashLT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldHash, v))
|
|
}
|
|
|
|
// HashLTE applies the LTE predicate on the "hash" field.
|
|
func HashLTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldHash, v))
|
|
}
|
|
|
|
// HashContains applies the Contains predicate on the "hash" field.
|
|
func HashContains(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContains(FieldHash, v))
|
|
}
|
|
|
|
// HashHasPrefix applies the HasPrefix predicate on the "hash" field.
|
|
func HashHasPrefix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasPrefix(FieldHash, v))
|
|
}
|
|
|
|
// HashHasSuffix applies the HasSuffix predicate on the "hash" field.
|
|
func HashHasSuffix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasSuffix(FieldHash, v))
|
|
}
|
|
|
|
// HashEqualFold applies the EqualFold predicate on the "hash" field.
|
|
func HashEqualFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEqualFold(FieldHash, v))
|
|
}
|
|
|
|
// HashContainsFold applies the ContainsFold predicate on the "hash" field.
|
|
func HashContainsFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContainsFold(FieldHash, v))
|
|
}
|
|
|
|
// SignatureEQ applies the EQ predicate on the "signature" field.
|
|
func SignatureEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEQ(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureNEQ applies the NEQ predicate on the "signature" field.
|
|
func SignatureNEQ(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNEQ(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureIn applies the In predicate on the "signature" field.
|
|
func SignatureIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldIn(FieldSignature, vs...))
|
|
}
|
|
|
|
// SignatureNotIn applies the NotIn predicate on the "signature" field.
|
|
func SignatureNotIn(vs ...string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldNotIn(FieldSignature, vs...))
|
|
}
|
|
|
|
// SignatureGT applies the GT predicate on the "signature" field.
|
|
func SignatureGT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGT(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureGTE applies the GTE predicate on the "signature" field.
|
|
func SignatureGTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldGTE(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureLT applies the LT predicate on the "signature" field.
|
|
func SignatureLT(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLT(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureLTE applies the LTE predicate on the "signature" field.
|
|
func SignatureLTE(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldLTE(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureContains applies the Contains predicate on the "signature" field.
|
|
func SignatureContains(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContains(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.
|
|
func SignatureHasPrefix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasPrefix(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.
|
|
func SignatureHasSuffix(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldHasSuffix(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureEqualFold applies the EqualFold predicate on the "signature" field.
|
|
func SignatureEqualFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldEqualFold(FieldSignature, v))
|
|
}
|
|
|
|
// SignatureContainsFold applies the ContainsFold predicate on the "signature" field.
|
|
func SignatureContainsFold(v string) predicate.Transactions {
|
|
return predicate.Transactions(sql.FieldContainsFold(FieldSignature, v))
|
|
}
|
|
|
|
// HasSigner applies the HasEdge predicate on the "Signer" edge.
|
|
func HasSigner() predicate.Transactions {
|
|
return predicate.Transactions(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, true, SignerTable, SignerPrimaryKey...),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasSignerWith applies the HasEdge predicate on the "Signer" edge with a given conditions (other predicates).
|
|
func HasSignerWith(preds ...predicate.Key) predicate.Transactions {
|
|
return predicate.Transactions(func(s *sql.Selector) {
|
|
step := newSignerStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasBlock applies the HasEdge predicate on the "Block" edge.
|
|
func HasBlock() predicate.Transactions {
|
|
return predicate.Transactions(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, true, BlockTable, BlockPrimaryKey...),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasBlockWith applies the HasEdge predicate on the "Block" edge with a given conditions (other predicates).
|
|
func HasBlockWith(preds ...predicate.Blocks) predicate.Transactions {
|
|
return predicate.Transactions(func(s *sql.Selector) {
|
|
step := newBlockStep()
|
|
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.Transactions) predicate.Transactions {
|
|
return predicate.Transactions(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Transactions) predicate.Transactions {
|
|
return predicate.Transactions(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Transactions) predicate.Transactions {
|
|
return predicate.Transactions(sql.NotPredicates(p))
|
|
}
|