541 lines
20 KiB
Go
541 lines
20 KiB
Go
// 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))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldEQ(FieldUserID, 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))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDGT applies the GT predicate on the "user_id" field.
|
|
func UserIDGT(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldGT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDGTE applies the GTE predicate on the "user_id" field.
|
|
func UserIDGTE(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldGTE(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLT applies the LT predicate on the "user_id" field.
|
|
func UserIDLT(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldLT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLTE applies the LTE predicate on the "user_id" field.
|
|
func UserIDLTE(v int) predicate.GeneralQueue {
|
|
return predicate.GeneralQueue(sql.FieldLTE(FieldUserID, v))
|
|
}
|
|
|
|
// 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))
|
|
}
|