Add general queue

This commit is contained in:
Achim Rohn
2025-11-16 19:09:01 +01:00
parent ed7ee7e95c
commit bcc5c7493d
60 changed files with 5657 additions and 8506 deletions
+146
View File
@@ -0,0 +1,146 @@
// Code generated by ent, DO NOT EDIT.
package generalqueue
import (
"fmt"
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the generalqueue type in the database.
Label = "general_queue"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// FieldPayload holds the string denoting the payload field in the database.
FieldPayload = "payload"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldNumberOfTries holds the string denoting the number_of_tries field in the database.
FieldNumberOfTries = "number_of_tries"
// FieldMaxRetries holds the string denoting the max_retries field in the database.
FieldMaxRetries = "max_retries"
// FieldErrorMessage holds the string denoting the error_message field in the database.
FieldErrorMessage = "error_message"
// FieldFailurePayload holds the string denoting the failure_payload field in the database.
FieldFailurePayload = "failure_payload"
// FieldResultPayload holds the string denoting the result_payload field in the database.
FieldResultPayload = "result_payload"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUpdatedAt = "updated_at"
// FieldProcessedAt holds the string denoting the processed_at field in the database.
FieldProcessedAt = "processed_at"
// Table holds the table name of the generalqueue in the database.
Table = "generalQueue"
)
// Columns holds all SQL columns for generalqueue fields.
var Columns = []string{
FieldID,
FieldName,
FieldPayload,
FieldStatus,
FieldNumberOfTries,
FieldMaxRetries,
FieldErrorMessage,
FieldFailurePayload,
FieldResultPayload,
FieldCreatedAt,
FieldUpdatedAt,
FieldProcessedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// DefaultNumberOfTries holds the default value on creation for the "number_of_tries" field.
DefaultNumberOfTries int
// DefaultMaxRetries holds the default value on creation for the "max_retries" field.
DefaultMaxRetries int
)
// Status defines the type for the "status" enum field.
type Status string
// Status values.
const (
StatusPending Status = "pending"
StatusInProgress Status = "in_progress"
StatusCompleted Status = "completed"
StatusFailed Status = "failed"
)
func (s Status) String() string {
return string(s)
}
// StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func StatusValidator(s Status) error {
switch s {
case StatusPending, StatusInProgress, StatusCompleted, StatusFailed:
return nil
default:
return fmt.Errorf("generalqueue: invalid enum value for status field: %q", s)
}
}
// OrderOption defines the ordering options for the GeneralQueue queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByName orders the results by the name field.
func ByName(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldName, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByNumberOfTries orders the results by the number_of_tries field.
func ByNumberOfTries(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNumberOfTries, opts...).ToFunc()
}
// ByMaxRetries orders the results by the max_retries field.
func ByMaxRetries(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMaxRetries, opts...).ToFunc()
}
// ByErrorMessage orders the results by the error_message field.
func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldErrorMessage, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
// ByProcessedAt orders the results by the processed_at field.
func ByProcessedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldProcessedAt, opts...).ToFunc()
}
+495
View File
@@ -0,0 +1,495 @@
// Code generated by ent, DO NOT EDIT.
package generalqueue
import (
"time"
"entgo.io/ent/dialect/sql"
"git.gorlug.de/code/ersteller/schema/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldID, id))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldName, v))
}
// NumberOfTries applies equality check predicate on the "number_of_tries" field. It's identical to NumberOfTriesEQ.
func NumberOfTries(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldNumberOfTries, v))
}
// MaxRetries applies equality check predicate on the "max_retries" field. It's identical to MaxRetriesEQ.
func MaxRetries(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldMaxRetries, v))
}
// ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.
func ErrorMessage(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldErrorMessage, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldUpdatedAt, v))
}
// ProcessedAt applies equality check predicate on the "processed_at" field. It's identical to ProcessedAtEQ.
func ProcessedAt(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldProcessedAt, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldContainsFold(FieldName, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v Status) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v Status) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...Status) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...Status) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldStatus, vs...))
}
// NumberOfTriesEQ applies the EQ predicate on the "number_of_tries" field.
func NumberOfTriesEQ(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldNumberOfTries, v))
}
// NumberOfTriesNEQ applies the NEQ predicate on the "number_of_tries" field.
func NumberOfTriesNEQ(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldNumberOfTries, v))
}
// NumberOfTriesIn applies the In predicate on the "number_of_tries" field.
func NumberOfTriesIn(vs ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldNumberOfTries, vs...))
}
// NumberOfTriesNotIn applies the NotIn predicate on the "number_of_tries" field.
func NumberOfTriesNotIn(vs ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldNumberOfTries, vs...))
}
// NumberOfTriesGT applies the GT predicate on the "number_of_tries" field.
func NumberOfTriesGT(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldNumberOfTries, v))
}
// NumberOfTriesGTE applies the GTE predicate on the "number_of_tries" field.
func NumberOfTriesGTE(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldNumberOfTries, v))
}
// NumberOfTriesLT applies the LT predicate on the "number_of_tries" field.
func NumberOfTriesLT(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldNumberOfTries, v))
}
// NumberOfTriesLTE applies the LTE predicate on the "number_of_tries" field.
func NumberOfTriesLTE(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldNumberOfTries, v))
}
// MaxRetriesEQ applies the EQ predicate on the "max_retries" field.
func MaxRetriesEQ(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldMaxRetries, v))
}
// MaxRetriesNEQ applies the NEQ predicate on the "max_retries" field.
func MaxRetriesNEQ(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldMaxRetries, v))
}
// MaxRetriesIn applies the In predicate on the "max_retries" field.
func MaxRetriesIn(vs ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldMaxRetries, vs...))
}
// MaxRetriesNotIn applies the NotIn predicate on the "max_retries" field.
func MaxRetriesNotIn(vs ...int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldMaxRetries, vs...))
}
// MaxRetriesGT applies the GT predicate on the "max_retries" field.
func MaxRetriesGT(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldMaxRetries, v))
}
// MaxRetriesGTE applies the GTE predicate on the "max_retries" field.
func MaxRetriesGTE(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldMaxRetries, v))
}
// MaxRetriesLT applies the LT predicate on the "max_retries" field.
func MaxRetriesLT(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldMaxRetries, v))
}
// MaxRetriesLTE applies the LTE predicate on the "max_retries" field.
func MaxRetriesLTE(v int) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldMaxRetries, v))
}
// ErrorMessageEQ applies the EQ predicate on the "error_message" field.
func ErrorMessageEQ(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldErrorMessage, v))
}
// ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.
func ErrorMessageNEQ(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldErrorMessage, v))
}
// ErrorMessageIn applies the In predicate on the "error_message" field.
func ErrorMessageIn(vs ...string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldErrorMessage, vs...))
}
// ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.
func ErrorMessageNotIn(vs ...string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldErrorMessage, vs...))
}
// ErrorMessageGT applies the GT predicate on the "error_message" field.
func ErrorMessageGT(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldErrorMessage, v))
}
// ErrorMessageGTE applies the GTE predicate on the "error_message" field.
func ErrorMessageGTE(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldErrorMessage, v))
}
// ErrorMessageLT applies the LT predicate on the "error_message" field.
func ErrorMessageLT(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldErrorMessage, v))
}
// ErrorMessageLTE applies the LTE predicate on the "error_message" field.
func ErrorMessageLTE(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldErrorMessage, v))
}
// ErrorMessageContains applies the Contains predicate on the "error_message" field.
func ErrorMessageContains(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldContains(FieldErrorMessage, v))
}
// ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.
func ErrorMessageHasPrefix(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldHasPrefix(FieldErrorMessage, v))
}
// ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.
func ErrorMessageHasSuffix(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldHasSuffix(FieldErrorMessage, v))
}
// ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.
func ErrorMessageIsNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIsNull(FieldErrorMessage))
}
// ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.
func ErrorMessageNotNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotNull(FieldErrorMessage))
}
// ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.
func ErrorMessageEqualFold(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEqualFold(FieldErrorMessage, v))
}
// ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.
func ErrorMessageContainsFold(v string) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldContainsFold(FieldErrorMessage, v))
}
// FailurePayloadIsNil applies the IsNil predicate on the "failure_payload" field.
func FailurePayloadIsNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIsNull(FieldFailurePayload))
}
// FailurePayloadNotNil applies the NotNil predicate on the "failure_payload" field.
func FailurePayloadNotNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotNull(FieldFailurePayload))
}
// ResultPayloadIsNil applies the IsNil predicate on the "result_payload" field.
func ResultPayloadIsNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIsNull(FieldResultPayload))
}
// ResultPayloadNotNil applies the NotNil predicate on the "result_payload" field.
func ResultPayloadNotNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotNull(FieldResultPayload))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldUpdatedAt, v))
}
// ProcessedAtEQ applies the EQ predicate on the "processed_at" field.
func ProcessedAtEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldEQ(FieldProcessedAt, v))
}
// ProcessedAtNEQ applies the NEQ predicate on the "processed_at" field.
func ProcessedAtNEQ(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNEQ(FieldProcessedAt, v))
}
// ProcessedAtIn applies the In predicate on the "processed_at" field.
func ProcessedAtIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIn(FieldProcessedAt, vs...))
}
// ProcessedAtNotIn applies the NotIn predicate on the "processed_at" field.
func ProcessedAtNotIn(vs ...time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotIn(FieldProcessedAt, vs...))
}
// ProcessedAtGT applies the GT predicate on the "processed_at" field.
func ProcessedAtGT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGT(FieldProcessedAt, v))
}
// ProcessedAtGTE applies the GTE predicate on the "processed_at" field.
func ProcessedAtGTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldGTE(FieldProcessedAt, v))
}
// ProcessedAtLT applies the LT predicate on the "processed_at" field.
func ProcessedAtLT(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLT(FieldProcessedAt, v))
}
// ProcessedAtLTE applies the LTE predicate on the "processed_at" field.
func ProcessedAtLTE(v time.Time) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldLTE(FieldProcessedAt, v))
}
// ProcessedAtIsNil applies the IsNil predicate on the "processed_at" field.
func ProcessedAtIsNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldIsNull(FieldProcessedAt))
}
// ProcessedAtNotNil applies the NotNil predicate on the "processed_at" field.
func ProcessedAtNotNil() predicate.GeneralQueue {
return predicate.GeneralQueue(sql.FieldNotNull(FieldProcessedAt))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.GeneralQueue) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.GeneralQueue) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.GeneralQueue) predicate.GeneralQueue {
return predicate.GeneralQueue(sql.NotPredicates(p))
}