| |
|
|
| package errorpassthroughrule |
|
|
| import ( |
| "time" |
|
|
| "entgo.io/ent/dialect/sql" |
| "github.com/Wei-Shaw/sub2api/ent/predicate" |
| ) |
|
|
| |
| func ID(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldID, id)) |
| } |
|
|
| |
| func IDEQ(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldID, id)) |
| } |
|
|
| |
| func IDNEQ(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldID, id)) |
| } |
|
|
| |
| func IDIn(ids ...int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldID, ids...)) |
| } |
|
|
| |
| func IDNotIn(ids ...int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldID, ids...)) |
| } |
|
|
| |
| func IDGT(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldID, id)) |
| } |
|
|
| |
| func IDGTE(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldID, id)) |
| } |
|
|
| |
| func IDLT(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldID, id)) |
| } |
|
|
| |
| func IDLTE(id int64) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldID, id)) |
| } |
|
|
| |
| func CreatedAt(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCreatedAt, v)) |
| } |
|
|
| |
| func UpdatedAt(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func Name(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldName, v)) |
| } |
|
|
| |
| func Enabled(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldEnabled, v)) |
| } |
|
|
| |
| func Priority(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPriority, v)) |
| } |
|
|
| |
| func MatchMode(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldMatchMode, v)) |
| } |
|
|
| |
| func PassthroughCode(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughCode, v)) |
| } |
|
|
| |
| func ResponseCode(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldResponseCode, v)) |
| } |
|
|
| |
| func PassthroughBody(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughBody, v)) |
| } |
|
|
| |
| func CustomMessage(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCustomMessage, v)) |
| } |
|
|
| |
| func SkipMonitoring(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldSkipMonitoring, v)) |
| } |
|
|
| |
| func Description(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldDescription, v)) |
| } |
|
|
| |
| func CreatedAtEQ(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCreatedAt, v)) |
| } |
|
|
| |
| func CreatedAtNEQ(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldCreatedAt, v)) |
| } |
|
|
| |
| func CreatedAtIn(vs ...time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldCreatedAt, vs...)) |
| } |
|
|
| |
| func CreatedAtNotIn(vs ...time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldCreatedAt, vs...)) |
| } |
|
|
| |
| func CreatedAtGT(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldCreatedAt, v)) |
| } |
|
|
| |
| func CreatedAtGTE(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldCreatedAt, v)) |
| } |
|
|
| |
| func CreatedAtLT(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldCreatedAt, v)) |
| } |
|
|
| |
| func CreatedAtLTE(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldCreatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtEQ(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtNEQ(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtIn(vs ...time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldUpdatedAt, vs...)) |
| } |
|
|
| |
| func UpdatedAtNotIn(vs ...time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldUpdatedAt, vs...)) |
| } |
|
|
| |
| func UpdatedAtGT(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtGTE(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtLT(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func UpdatedAtLTE(v time.Time) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldUpdatedAt, v)) |
| } |
|
|
| |
| func NameEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldName, v)) |
| } |
|
|
| |
| func NameNEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldName, v)) |
| } |
|
|
| |
| func NameIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldName, vs...)) |
| } |
|
|
| |
| func NameNotIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldName, vs...)) |
| } |
|
|
| |
| func NameGT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldName, v)) |
| } |
|
|
| |
| func NameGTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldName, v)) |
| } |
|
|
| |
| func NameLT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldName, v)) |
| } |
|
|
| |
| func NameLTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldName, v)) |
| } |
|
|
| |
| func NameContains(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContains(FieldName, v)) |
| } |
|
|
| |
| func NameHasPrefix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldName, v)) |
| } |
|
|
| |
| func NameHasSuffix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldName, v)) |
| } |
|
|
| |
| func NameEqualFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldName, v)) |
| } |
|
|
| |
| func NameContainsFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldName, v)) |
| } |
|
|
| |
| func EnabledEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldEnabled, v)) |
| } |
|
|
| |
| func EnabledNEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldEnabled, v)) |
| } |
|
|
| |
| func PriorityEQ(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPriority, v)) |
| } |
|
|
| |
| func PriorityNEQ(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPriority, v)) |
| } |
|
|
| |
| func PriorityIn(vs ...int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldPriority, vs...)) |
| } |
|
|
| |
| func PriorityNotIn(vs ...int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldPriority, vs...)) |
| } |
|
|
| |
| func PriorityGT(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldPriority, v)) |
| } |
|
|
| |
| func PriorityGTE(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldPriority, v)) |
| } |
|
|
| |
| func PriorityLT(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldPriority, v)) |
| } |
|
|
| |
| func PriorityLTE(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldPriority, v)) |
| } |
|
|
| |
| func ErrorCodesIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldErrorCodes)) |
| } |
|
|
| |
| func ErrorCodesNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldErrorCodes)) |
| } |
|
|
| |
| func KeywordsIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldKeywords)) |
| } |
|
|
| |
| func KeywordsNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldKeywords)) |
| } |
|
|
| |
| func MatchModeEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeNEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldMatchMode, vs...)) |
| } |
|
|
| |
| func MatchModeNotIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldMatchMode, vs...)) |
| } |
|
|
| |
| func MatchModeGT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeGTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeLT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeLTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeContains(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContains(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeHasPrefix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeHasSuffix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeEqualFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldMatchMode, v)) |
| } |
|
|
| |
| func MatchModeContainsFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldMatchMode, v)) |
| } |
|
|
| |
| func PlatformsIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldPlatforms)) |
| } |
|
|
| |
| func PlatformsNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldPlatforms)) |
| } |
|
|
| |
| func PassthroughCodeEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughCode, v)) |
| } |
|
|
| |
| func PassthroughCodeNEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPassthroughCode, v)) |
| } |
|
|
| |
| func ResponseCodeEQ(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeNEQ(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeIn(vs ...int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldResponseCode, vs...)) |
| } |
|
|
| |
| func ResponseCodeNotIn(vs ...int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldResponseCode, vs...)) |
| } |
|
|
| |
| func ResponseCodeGT(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeGTE(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeLT(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeLTE(v int) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldResponseCode, v)) |
| } |
|
|
| |
| func ResponseCodeIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldResponseCode)) |
| } |
|
|
| |
| func ResponseCodeNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldResponseCode)) |
| } |
|
|
| |
| func PassthroughBodyEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughBody, v)) |
| } |
|
|
| |
| func PassthroughBodyNEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPassthroughBody, v)) |
| } |
|
|
| |
| func CustomMessageEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageNEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldCustomMessage, vs...)) |
| } |
|
|
| |
| func CustomMessageNotIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldCustomMessage, vs...)) |
| } |
|
|
| |
| func CustomMessageGT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageGTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageLT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageLTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageContains(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContains(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageHasPrefix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageHasSuffix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldCustomMessage)) |
| } |
|
|
| |
| func CustomMessageNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldCustomMessage)) |
| } |
|
|
| |
| func CustomMessageEqualFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldCustomMessage, v)) |
| } |
|
|
| |
| func CustomMessageContainsFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldCustomMessage, v)) |
| } |
|
|
| |
| func SkipMonitoringEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldSkipMonitoring, v)) |
| } |
|
|
| |
| func SkipMonitoringNEQ(v bool) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldSkipMonitoring, v)) |
| } |
|
|
| |
| func DescriptionEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionNEQ(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIn(FieldDescription, vs...)) |
| } |
|
|
| |
| func DescriptionNotIn(vs ...string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldDescription, vs...)) |
| } |
|
|
| |
| func DescriptionGT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGT(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionGTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionLT(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLT(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionLTE(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionContains(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContains(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionHasPrefix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionHasSuffix(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionIsNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldDescription)) |
| } |
|
|
| |
| func DescriptionNotNil() predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldDescription)) |
| } |
|
|
| |
| func DescriptionEqualFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldDescription, v)) |
| } |
|
|
| |
| func DescriptionContainsFold(v string) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldDescription, v)) |
| } |
|
|
| |
| func And(predicates ...predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.AndPredicates(predicates...)) |
| } |
|
|
| |
| func Or(predicates ...predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.OrPredicates(predicates...)) |
| } |
|
|
| |
| func Not(p predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule { |
| return predicate.ErrorPassthroughRule(sql.NotPredicates(p)) |
| } |
|
|