feat: 同步失败(SyncFailure)实体化与 ent 全量重生成
- 新增 SyncFailure 实体:MES/WMS 两端 schema 源 + ent 生成码(create/delete/query/update 及子包) - ent 框架文件全量重生成:client/ent/hook/migrate/mutation/predicate/runtime/tx - 清理旧代码生成入口:删除 schema/gen.go 与 schema/tools/generate.go - 同步失败页面调整:MES/WMS SyncFailure.vue 接入新实体,MES 产品工艺页同步调整 - 主程序入口注册新实体:bj_power_mes.go / bj_power_wms.go,工作站 main.go 同步调整 - 更新文档:WMS README、案例、问题记录;刷新 MES/WMS 前端构建产物
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package syncfailure
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the syncfailure type in the database.
|
||||
Label = "sync_failure"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldDirection holds the string denoting the direction field in the database.
|
||||
FieldDirection = "direction"
|
||||
// FieldBizType holds the string denoting the biz_type field in the database.
|
||||
FieldBizType = "biz_type"
|
||||
// FieldBizKey holds the string denoting the biz_key field in the database.
|
||||
FieldBizKey = "biz_key"
|
||||
// FieldEndpoint holds the string denoting the endpoint field in the database.
|
||||
FieldEndpoint = "endpoint"
|
||||
// FieldPayloadJSON holds the string denoting the payload_json field in the database.
|
||||
FieldPayloadJSON = "payload_json"
|
||||
// FieldErrorMsg holds the string denoting the error_msg field in the database.
|
||||
FieldErrorMsg = "error_msg"
|
||||
// FieldIdempotencyKey holds the string denoting the idempotency_key field in the database.
|
||||
FieldIdempotencyKey = "idempotency_key"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldRetryCount holds the string denoting the retry_count field in the database.
|
||||
FieldRetryCount = "retry_count"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldLastErrorAt holds the string denoting the last_error_at field in the database.
|
||||
FieldLastErrorAt = "last_error_at"
|
||||
// FieldHandledBy holds the string denoting the handled_by field in the database.
|
||||
FieldHandledBy = "handled_by"
|
||||
// Table holds the table name of the syncfailure in the database.
|
||||
Table = "sync_failure"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for syncfailure fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldDirection,
|
||||
FieldBizType,
|
||||
FieldBizKey,
|
||||
FieldEndpoint,
|
||||
FieldPayloadJSON,
|
||||
FieldErrorMsg,
|
||||
FieldIdempotencyKey,
|
||||
FieldStatus,
|
||||
FieldRetryCount,
|
||||
FieldCreatedAt,
|
||||
FieldLastErrorAt,
|
||||
FieldHandledBy,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// DefaultDirection holds the default value on creation for the "direction" field.
|
||||
DefaultDirection string
|
||||
// DefaultBizType holds the default value on creation for the "biz_type" field.
|
||||
DefaultBizType string
|
||||
// DefaultBizKey holds the default value on creation for the "biz_key" field.
|
||||
DefaultBizKey string
|
||||
// DefaultEndpoint holds the default value on creation for the "endpoint" field.
|
||||
DefaultEndpoint string
|
||||
// DefaultPayloadJSON holds the default value on creation for the "payload_json" field.
|
||||
DefaultPayloadJSON string
|
||||
// DefaultErrorMsg holds the default value on creation for the "error_msg" field.
|
||||
DefaultErrorMsg string
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultRetryCount holds the default value on creation for the "retry_count" field.
|
||||
DefaultRetryCount int32
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt int64
|
||||
// DefaultLastErrorAt holds the default value on creation for the "last_error_at" field.
|
||||
DefaultLastErrorAt int64
|
||||
// DefaultHandledBy holds the default value on creation for the "handled_by" field.
|
||||
DefaultHandledBy string
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the SyncFailure 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()
|
||||
}
|
||||
|
||||
// ByDirection orders the results by the direction field.
|
||||
func ByDirection(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDirection, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBizType orders the results by the biz_type field.
|
||||
func ByBizType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBizType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBizKey orders the results by the biz_key field.
|
||||
func ByBizKey(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBizKey, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByEndpoint orders the results by the endpoint field.
|
||||
func ByEndpoint(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldEndpoint, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPayloadJSON orders the results by the payload_json field.
|
||||
func ByPayloadJSON(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPayloadJSON, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByErrorMsg orders the results by the error_msg field.
|
||||
func ByErrorMsg(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldErrorMsg, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIdempotencyKey orders the results by the idempotency_key field.
|
||||
func ByIdempotencyKey(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIdempotencyKey, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRetryCount orders the results by the retry_count field.
|
||||
func ByRetryCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRetryCount, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLastErrorAt orders the results by the last_error_at field.
|
||||
func ByLastErrorAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLastErrorAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHandledBy orders the results by the handled_by field.
|
||||
func ByHandledBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHandledBy, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,834 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package syncfailure
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Direction applies equality check predicate on the "direction" field. It's identical to DirectionEQ.
|
||||
func Direction(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldDirection, v))
|
||||
}
|
||||
|
||||
// BizType applies equality check predicate on the "biz_type" field. It's identical to BizTypeEQ.
|
||||
func BizType(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizKey applies equality check predicate on the "biz_key" field. It's identical to BizKeyEQ.
|
||||
func BizKey(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.
|
||||
func Endpoint(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// PayloadJSON applies equality check predicate on the "payload_json" field. It's identical to PayloadJSONEQ.
|
||||
func PayloadJSON(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// ErrorMsg applies equality check predicate on the "error_msg" field. It's identical to ErrorMsgEQ.
|
||||
func ErrorMsg(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// IdempotencyKey applies equality check predicate on the "idempotency_key" field. It's identical to IdempotencyKeyEQ.
|
||||
func IdempotencyKey(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RetryCount applies equality check predicate on the "retry_count" field. It's identical to RetryCountEQ.
|
||||
func RetryCount(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAt applies equality check predicate on the "last_error_at" field. It's identical to LastErrorAtEQ.
|
||||
func LastErrorAt(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// HandledBy applies equality check predicate on the "handled_by" field. It's identical to HandledByEQ.
|
||||
func HandledBy(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// DirectionEQ applies the EQ predicate on the "direction" field.
|
||||
func DirectionEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionNEQ applies the NEQ predicate on the "direction" field.
|
||||
func DirectionNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionIn applies the In predicate on the "direction" field.
|
||||
func DirectionIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldDirection, vs...))
|
||||
}
|
||||
|
||||
// DirectionNotIn applies the NotIn predicate on the "direction" field.
|
||||
func DirectionNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldDirection, vs...))
|
||||
}
|
||||
|
||||
// DirectionGT applies the GT predicate on the "direction" field.
|
||||
func DirectionGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionGTE applies the GTE predicate on the "direction" field.
|
||||
func DirectionGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionLT applies the LT predicate on the "direction" field.
|
||||
func DirectionLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionLTE applies the LTE predicate on the "direction" field.
|
||||
func DirectionLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionContains applies the Contains predicate on the "direction" field.
|
||||
func DirectionContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionHasPrefix applies the HasPrefix predicate on the "direction" field.
|
||||
func DirectionHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionHasSuffix applies the HasSuffix predicate on the "direction" field.
|
||||
func DirectionHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionEqualFold applies the EqualFold predicate on the "direction" field.
|
||||
func DirectionEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldDirection, v))
|
||||
}
|
||||
|
||||
// DirectionContainsFold applies the ContainsFold predicate on the "direction" field.
|
||||
func DirectionContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldDirection, v))
|
||||
}
|
||||
|
||||
// BizTypeEQ applies the EQ predicate on the "biz_type" field.
|
||||
func BizTypeEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeNEQ applies the NEQ predicate on the "biz_type" field.
|
||||
func BizTypeNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeIn applies the In predicate on the "biz_type" field.
|
||||
func BizTypeIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldBizType, vs...))
|
||||
}
|
||||
|
||||
// BizTypeNotIn applies the NotIn predicate on the "biz_type" field.
|
||||
func BizTypeNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldBizType, vs...))
|
||||
}
|
||||
|
||||
// BizTypeGT applies the GT predicate on the "biz_type" field.
|
||||
func BizTypeGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeGTE applies the GTE predicate on the "biz_type" field.
|
||||
func BizTypeGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeLT applies the LT predicate on the "biz_type" field.
|
||||
func BizTypeLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeLTE applies the LTE predicate on the "biz_type" field.
|
||||
func BizTypeLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeContains applies the Contains predicate on the "biz_type" field.
|
||||
func BizTypeContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeHasPrefix applies the HasPrefix predicate on the "biz_type" field.
|
||||
func BizTypeHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeHasSuffix applies the HasSuffix predicate on the "biz_type" field.
|
||||
func BizTypeHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeEqualFold applies the EqualFold predicate on the "biz_type" field.
|
||||
func BizTypeEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizTypeContainsFold applies the ContainsFold predicate on the "biz_type" field.
|
||||
func BizTypeContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldBizType, v))
|
||||
}
|
||||
|
||||
// BizKeyEQ applies the EQ predicate on the "biz_key" field.
|
||||
func BizKeyEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyNEQ applies the NEQ predicate on the "biz_key" field.
|
||||
func BizKeyNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyIn applies the In predicate on the "biz_key" field.
|
||||
func BizKeyIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldBizKey, vs...))
|
||||
}
|
||||
|
||||
// BizKeyNotIn applies the NotIn predicate on the "biz_key" field.
|
||||
func BizKeyNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldBizKey, vs...))
|
||||
}
|
||||
|
||||
// BizKeyGT applies the GT predicate on the "biz_key" field.
|
||||
func BizKeyGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyGTE applies the GTE predicate on the "biz_key" field.
|
||||
func BizKeyGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyLT applies the LT predicate on the "biz_key" field.
|
||||
func BizKeyLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyLTE applies the LTE predicate on the "biz_key" field.
|
||||
func BizKeyLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyContains applies the Contains predicate on the "biz_key" field.
|
||||
func BizKeyContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyHasPrefix applies the HasPrefix predicate on the "biz_key" field.
|
||||
func BizKeyHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyHasSuffix applies the HasSuffix predicate on the "biz_key" field.
|
||||
func BizKeyHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyEqualFold applies the EqualFold predicate on the "biz_key" field.
|
||||
func BizKeyEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// BizKeyContainsFold applies the ContainsFold predicate on the "biz_key" field.
|
||||
func BizKeyContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldBizKey, v))
|
||||
}
|
||||
|
||||
// EndpointEQ applies the EQ predicate on the "endpoint" field.
|
||||
func EndpointEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointNEQ applies the NEQ predicate on the "endpoint" field.
|
||||
func EndpointNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointIn applies the In predicate on the "endpoint" field.
|
||||
func EndpointIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldEndpoint, vs...))
|
||||
}
|
||||
|
||||
// EndpointNotIn applies the NotIn predicate on the "endpoint" field.
|
||||
func EndpointNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldEndpoint, vs...))
|
||||
}
|
||||
|
||||
// EndpointGT applies the GT predicate on the "endpoint" field.
|
||||
func EndpointGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointGTE applies the GTE predicate on the "endpoint" field.
|
||||
func EndpointGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointLT applies the LT predicate on the "endpoint" field.
|
||||
func EndpointLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointLTE applies the LTE predicate on the "endpoint" field.
|
||||
func EndpointLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointContains applies the Contains predicate on the "endpoint" field.
|
||||
func EndpointContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.
|
||||
func EndpointHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.
|
||||
func EndpointHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.
|
||||
func EndpointEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.
|
||||
func EndpointContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldEndpoint, v))
|
||||
}
|
||||
|
||||
// PayloadJSONEQ applies the EQ predicate on the "payload_json" field.
|
||||
func PayloadJSONEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONNEQ applies the NEQ predicate on the "payload_json" field.
|
||||
func PayloadJSONNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONIn applies the In predicate on the "payload_json" field.
|
||||
func PayloadJSONIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldPayloadJSON, vs...))
|
||||
}
|
||||
|
||||
// PayloadJSONNotIn applies the NotIn predicate on the "payload_json" field.
|
||||
func PayloadJSONNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldPayloadJSON, vs...))
|
||||
}
|
||||
|
||||
// PayloadJSONGT applies the GT predicate on the "payload_json" field.
|
||||
func PayloadJSONGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONGTE applies the GTE predicate on the "payload_json" field.
|
||||
func PayloadJSONGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONLT applies the LT predicate on the "payload_json" field.
|
||||
func PayloadJSONLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONLTE applies the LTE predicate on the "payload_json" field.
|
||||
func PayloadJSONLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONContains applies the Contains predicate on the "payload_json" field.
|
||||
func PayloadJSONContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONHasPrefix applies the HasPrefix predicate on the "payload_json" field.
|
||||
func PayloadJSONHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONHasSuffix applies the HasSuffix predicate on the "payload_json" field.
|
||||
func PayloadJSONHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONEqualFold applies the EqualFold predicate on the "payload_json" field.
|
||||
func PayloadJSONEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// PayloadJSONContainsFold applies the ContainsFold predicate on the "payload_json" field.
|
||||
func PayloadJSONContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldPayloadJSON, v))
|
||||
}
|
||||
|
||||
// ErrorMsgEQ applies the EQ predicate on the "error_msg" field.
|
||||
func ErrorMsgEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgNEQ applies the NEQ predicate on the "error_msg" field.
|
||||
func ErrorMsgNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgIn applies the In predicate on the "error_msg" field.
|
||||
func ErrorMsgIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldErrorMsg, vs...))
|
||||
}
|
||||
|
||||
// ErrorMsgNotIn applies the NotIn predicate on the "error_msg" field.
|
||||
func ErrorMsgNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldErrorMsg, vs...))
|
||||
}
|
||||
|
||||
// ErrorMsgGT applies the GT predicate on the "error_msg" field.
|
||||
func ErrorMsgGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgGTE applies the GTE predicate on the "error_msg" field.
|
||||
func ErrorMsgGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgLT applies the LT predicate on the "error_msg" field.
|
||||
func ErrorMsgLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgLTE applies the LTE predicate on the "error_msg" field.
|
||||
func ErrorMsgLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgContains applies the Contains predicate on the "error_msg" field.
|
||||
func ErrorMsgContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgHasPrefix applies the HasPrefix predicate on the "error_msg" field.
|
||||
func ErrorMsgHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgHasSuffix applies the HasSuffix predicate on the "error_msg" field.
|
||||
func ErrorMsgHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgEqualFold applies the EqualFold predicate on the "error_msg" field.
|
||||
func ErrorMsgEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// ErrorMsgContainsFold applies the ContainsFold predicate on the "error_msg" field.
|
||||
func ErrorMsgContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldErrorMsg, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyEQ applies the EQ predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyNEQ applies the NEQ predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyIn applies the In predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldIdempotencyKey, vs...))
|
||||
}
|
||||
|
||||
// IdempotencyKeyNotIn applies the NotIn predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldIdempotencyKey, vs...))
|
||||
}
|
||||
|
||||
// IdempotencyKeyGT applies the GT predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyGTE applies the GTE predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyLT applies the LT predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyLTE applies the LTE predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyContains applies the Contains predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyHasPrefix applies the HasPrefix predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyHasSuffix applies the HasSuffix predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyEqualFold applies the EqualFold predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// IdempotencyKeyContainsFold applies the ContainsFold predicate on the "idempotency_key" field.
|
||||
func IdempotencyKeyContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldIdempotencyKey, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RetryCountEQ applies the EQ predicate on the "retry_count" field.
|
||||
func RetryCountEQ(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// RetryCountNEQ applies the NEQ predicate on the "retry_count" field.
|
||||
func RetryCountNEQ(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// RetryCountIn applies the In predicate on the "retry_count" field.
|
||||
func RetryCountIn(vs ...int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldRetryCount, vs...))
|
||||
}
|
||||
|
||||
// RetryCountNotIn applies the NotIn predicate on the "retry_count" field.
|
||||
func RetryCountNotIn(vs ...int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldRetryCount, vs...))
|
||||
}
|
||||
|
||||
// RetryCountGT applies the GT predicate on the "retry_count" field.
|
||||
func RetryCountGT(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// RetryCountGTE applies the GTE predicate on the "retry_count" field.
|
||||
func RetryCountGTE(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// RetryCountLT applies the LT predicate on the "retry_count" field.
|
||||
func RetryCountLT(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// RetryCountLTE applies the LTE predicate on the "retry_count" field.
|
||||
func RetryCountLTE(v int32) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldRetryCount, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtEQ applies the EQ predicate on the "last_error_at" field.
|
||||
func LastErrorAtEQ(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtNEQ applies the NEQ predicate on the "last_error_at" field.
|
||||
func LastErrorAtNEQ(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtIn applies the In predicate on the "last_error_at" field.
|
||||
func LastErrorAtIn(vs ...int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldLastErrorAt, vs...))
|
||||
}
|
||||
|
||||
// LastErrorAtNotIn applies the NotIn predicate on the "last_error_at" field.
|
||||
func LastErrorAtNotIn(vs ...int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldLastErrorAt, vs...))
|
||||
}
|
||||
|
||||
// LastErrorAtGT applies the GT predicate on the "last_error_at" field.
|
||||
func LastErrorAtGT(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtGTE applies the GTE predicate on the "last_error_at" field.
|
||||
func LastErrorAtGTE(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtLT applies the LT predicate on the "last_error_at" field.
|
||||
func LastErrorAtLT(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// LastErrorAtLTE applies the LTE predicate on the "last_error_at" field.
|
||||
func LastErrorAtLTE(v int64) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldLastErrorAt, v))
|
||||
}
|
||||
|
||||
// HandledByEQ applies the EQ predicate on the "handled_by" field.
|
||||
func HandledByEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEQ(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByNEQ applies the NEQ predicate on the "handled_by" field.
|
||||
func HandledByNEQ(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNEQ(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByIn applies the In predicate on the "handled_by" field.
|
||||
func HandledByIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldIn(FieldHandledBy, vs...))
|
||||
}
|
||||
|
||||
// HandledByNotIn applies the NotIn predicate on the "handled_by" field.
|
||||
func HandledByNotIn(vs ...string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldNotIn(FieldHandledBy, vs...))
|
||||
}
|
||||
|
||||
// HandledByGT applies the GT predicate on the "handled_by" field.
|
||||
func HandledByGT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGT(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByGTE applies the GTE predicate on the "handled_by" field.
|
||||
func HandledByGTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldGTE(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByLT applies the LT predicate on the "handled_by" field.
|
||||
func HandledByLT(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLT(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByLTE applies the LTE predicate on the "handled_by" field.
|
||||
func HandledByLTE(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldLTE(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByContains applies the Contains predicate on the "handled_by" field.
|
||||
func HandledByContains(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContains(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByHasPrefix applies the HasPrefix predicate on the "handled_by" field.
|
||||
func HandledByHasPrefix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasPrefix(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByHasSuffix applies the HasSuffix predicate on the "handled_by" field.
|
||||
func HandledByHasSuffix(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldHasSuffix(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByEqualFold applies the EqualFold predicate on the "handled_by" field.
|
||||
func HandledByEqualFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldEqualFold(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// HandledByContainsFold applies the ContainsFold predicate on the "handled_by" field.
|
||||
func HandledByContainsFold(v string) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.FieldContainsFold(FieldHandledBy, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.SyncFailure) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.SyncFailure) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.SyncFailure) predicate.SyncFailure {
|
||||
return predicate.SyncFailure(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user