Files

634 lines
23 KiB
Go

// Code generated by ent, DO NOT EDIT.
package agentplugin
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/chaitin/MonkeyCode/backend/db/predicate"
"github.com/google/uuid"
)
// ID filters vertices based on their ID field.
func ID(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldID, id))
}
// RepoID applies equality check predicate on the "repo_id" field. It's identical to RepoIDEQ.
func RepoID(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldRepoID, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldName, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldDescription, v))
}
// ScopeID applies equality check predicate on the "scope_id" field. It's identical to ScopeIDEQ.
func ScopeID(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldScopeID, v))
}
// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedBy(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldCreatedBy, v))
}
// ActiveVersionID applies equality check predicate on the "active_version_id" field. It's identical to ActiveVersionIDEQ.
func ActiveVersionID(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldActiveVersionID, v))
}
// IsForceDelivery applies equality check predicate on the "is_force_delivery" field. It's identical to IsForceDeliveryEQ.
func IsForceDelivery(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsForceDelivery, v))
}
// IsOrphan applies equality check predicate on the "is_orphan" field. It's identical to IsOrphanEQ.
func IsOrphan(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsOrphan, v))
}
// IsDeleted applies equality check predicate on the "is_deleted" field. It's identical to IsDeletedEQ.
func IsDeleted(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsDeleted, v))
}
// Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func Enabled(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldEnabled, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(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.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldUpdatedAt, v))
}
// RepoIDEQ applies the EQ predicate on the "repo_id" field.
func RepoIDEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldRepoID, v))
}
// RepoIDNEQ applies the NEQ predicate on the "repo_id" field.
func RepoIDNEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldRepoID, v))
}
// RepoIDIn applies the In predicate on the "repo_id" field.
func RepoIDIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldRepoID, vs...))
}
// RepoIDNotIn applies the NotIn predicate on the "repo_id" field.
func RepoIDNotIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldRepoID, vs...))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContainsFold(FieldName, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContainsFold(FieldDescription, v))
}
// ScopeTypeEQ applies the EQ predicate on the "scope_type" field.
func ScopeTypeEQ(v ScopeType) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldScopeType, v))
}
// ScopeTypeNEQ applies the NEQ predicate on the "scope_type" field.
func ScopeTypeNEQ(v ScopeType) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldScopeType, v))
}
// ScopeTypeIn applies the In predicate on the "scope_type" field.
func ScopeTypeIn(vs ...ScopeType) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldScopeType, vs...))
}
// ScopeTypeNotIn applies the NotIn predicate on the "scope_type" field.
func ScopeTypeNotIn(vs ...ScopeType) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldScopeType, vs...))
}
// ScopeIDEQ applies the EQ predicate on the "scope_id" field.
func ScopeIDEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldScopeID, v))
}
// ScopeIDNEQ applies the NEQ predicate on the "scope_id" field.
func ScopeIDNEQ(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldScopeID, v))
}
// ScopeIDIn applies the In predicate on the "scope_id" field.
func ScopeIDIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldScopeID, vs...))
}
// ScopeIDNotIn applies the NotIn predicate on the "scope_id" field.
func ScopeIDNotIn(vs ...string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldScopeID, vs...))
}
// ScopeIDGT applies the GT predicate on the "scope_id" field.
func ScopeIDGT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldScopeID, v))
}
// ScopeIDGTE applies the GTE predicate on the "scope_id" field.
func ScopeIDGTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldScopeID, v))
}
// ScopeIDLT applies the LT predicate on the "scope_id" field.
func ScopeIDLT(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldScopeID, v))
}
// ScopeIDLTE applies the LTE predicate on the "scope_id" field.
func ScopeIDLTE(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldScopeID, v))
}
// ScopeIDContains applies the Contains predicate on the "scope_id" field.
func ScopeIDContains(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContains(FieldScopeID, v))
}
// ScopeIDHasPrefix applies the HasPrefix predicate on the "scope_id" field.
func ScopeIDHasPrefix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasPrefix(FieldScopeID, v))
}
// ScopeIDHasSuffix applies the HasSuffix predicate on the "scope_id" field.
func ScopeIDHasSuffix(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldHasSuffix(FieldScopeID, v))
}
// ScopeIDEqualFold applies the EqualFold predicate on the "scope_id" field.
func ScopeIDEqualFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEqualFold(FieldScopeID, v))
}
// ScopeIDContainsFold applies the ContainsFold predicate on the "scope_id" field.
func ScopeIDContainsFold(v string) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldContainsFold(FieldScopeID, v))
}
// CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldCreatedBy, v))
}
// CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldCreatedBy, vs...))
}
// CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldCreatedBy, vs...))
}
// CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGT(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldCreatedBy, v))
}
// CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByGTE(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldCreatedBy, v))
}
// CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLT(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldCreatedBy, v))
}
// CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByLTE(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldCreatedBy, v))
}
// ActiveVersionIDEQ applies the EQ predicate on the "active_version_id" field.
func ActiveVersionIDEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldActiveVersionID, v))
}
// ActiveVersionIDNEQ applies the NEQ predicate on the "active_version_id" field.
func ActiveVersionIDNEQ(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldActiveVersionID, v))
}
// ActiveVersionIDIn applies the In predicate on the "active_version_id" field.
func ActiveVersionIDIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldActiveVersionID, vs...))
}
// ActiveVersionIDNotIn applies the NotIn predicate on the "active_version_id" field.
func ActiveVersionIDNotIn(vs ...uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldActiveVersionID, vs...))
}
// ActiveVersionIDGT applies the GT predicate on the "active_version_id" field.
func ActiveVersionIDGT(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldActiveVersionID, v))
}
// ActiveVersionIDGTE applies the GTE predicate on the "active_version_id" field.
func ActiveVersionIDGTE(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldActiveVersionID, v))
}
// ActiveVersionIDLT applies the LT predicate on the "active_version_id" field.
func ActiveVersionIDLT(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldActiveVersionID, v))
}
// ActiveVersionIDLTE applies the LTE predicate on the "active_version_id" field.
func ActiveVersionIDLTE(v uuid.UUID) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldActiveVersionID, v))
}
// ActiveVersionIDIsNil applies the IsNil predicate on the "active_version_id" field.
func ActiveVersionIDIsNil() predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIsNull(FieldActiveVersionID))
}
// ActiveVersionIDNotNil applies the NotNil predicate on the "active_version_id" field.
func ActiveVersionIDNotNil() predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotNull(FieldActiveVersionID))
}
// IsForceDeliveryEQ applies the EQ predicate on the "is_force_delivery" field.
func IsForceDeliveryEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsForceDelivery, v))
}
// IsForceDeliveryNEQ applies the NEQ predicate on the "is_force_delivery" field.
func IsForceDeliveryNEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldIsForceDelivery, v))
}
// IsOrphanEQ applies the EQ predicate on the "is_orphan" field.
func IsOrphanEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsOrphan, v))
}
// IsOrphanNEQ applies the NEQ predicate on the "is_orphan" field.
func IsOrphanNEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldIsOrphan, v))
}
// IsDeletedEQ applies the EQ predicate on the "is_deleted" field.
func IsDeletedEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldIsDeleted, v))
}
// IsDeletedNEQ applies the NEQ predicate on the "is_deleted" field.
func IsDeletedNEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldIsDeleted, v))
}
// EnabledEQ applies the EQ predicate on the "enabled" field.
func EnabledEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldEnabled, v))
}
// EnabledNEQ applies the NEQ predicate on the "enabled" field.
func EnabledNEQ(v bool) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldEnabled, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.FieldLTE(FieldUpdatedAt, v))
}
// HasRepo applies the HasEdge predicate on the "repo" edge.
func HasRepo() predicate.AgentPlugin {
return predicate.AgentPlugin(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, RepoTable, RepoColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasRepoWith applies the HasEdge predicate on the "repo" edge with a given conditions (other predicates).
func HasRepoWith(preds ...predicate.AgentPluginRepo) predicate.AgentPlugin {
return predicate.AgentPlugin(func(s *sql.Selector) {
step := newRepoStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasVersions applies the HasEdge predicate on the "versions" edge.
func HasVersions() predicate.AgentPlugin {
return predicate.AgentPlugin(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, VersionsTable, VersionsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasVersionsWith applies the HasEdge predicate on the "versions" edge with a given conditions (other predicates).
func HasVersionsWith(preds ...predicate.AgentPluginVersion) predicate.AgentPlugin {
return predicate.AgentPlugin(func(s *sql.Selector) {
step := newVersionsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.AgentPlugin) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.AgentPlugin) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.AgentPlugin) predicate.AgentPlugin {
return predicate.AgentPlugin(sql.NotPredicates(p))
}