mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-24 21:29:00 +08:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
316 lines
12 KiB
Go
316 lines
12 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package agentpluginversion
|
|
|
|
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.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// ResourceID applies equality check predicate on the "resource_id" field. It's identical to ResourceIDEQ.
|
|
func ResourceID(v uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldResourceID, v))
|
|
}
|
|
|
|
// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
|
|
func Version(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// S3Key applies equality check predicate on the "s3_key" field. It's identical to S3KeyEQ.
|
|
func S3Key(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldS3Key, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// ResourceIDEQ applies the EQ predicate on the "resource_id" field.
|
|
func ResourceIDEQ(v uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldResourceID, v))
|
|
}
|
|
|
|
// ResourceIDNEQ applies the NEQ predicate on the "resource_id" field.
|
|
func ResourceIDNEQ(v uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNEQ(FieldResourceID, v))
|
|
}
|
|
|
|
// ResourceIDIn applies the In predicate on the "resource_id" field.
|
|
func ResourceIDIn(vs ...uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIn(FieldResourceID, vs...))
|
|
}
|
|
|
|
// ResourceIDNotIn applies the NotIn predicate on the "resource_id" field.
|
|
func ResourceIDNotIn(vs ...uuid.UUID) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotIn(FieldResourceID, vs...))
|
|
}
|
|
|
|
// VersionEQ applies the EQ predicate on the "version" field.
|
|
func VersionEQ(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionNEQ applies the NEQ predicate on the "version" field.
|
|
func VersionNEQ(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionIn applies the In predicate on the "version" field.
|
|
func VersionIn(vs ...string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionNotIn applies the NotIn predicate on the "version" field.
|
|
func VersionNotIn(vs ...string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionGT applies the GT predicate on the "version" field.
|
|
func VersionGT(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionGTE applies the GTE predicate on the "version" field.
|
|
func VersionGTE(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLT applies the LT predicate on the "version" field.
|
|
func VersionLT(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLTE applies the LTE predicate on the "version" field.
|
|
func VersionLTE(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContains applies the Contains predicate on the "version" field.
|
|
func VersionContains(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldContains(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasPrefix applies the HasPrefix predicate on the "version" field.
|
|
func VersionHasPrefix(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldHasPrefix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasSuffix applies the HasSuffix predicate on the "version" field.
|
|
func VersionHasSuffix(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldHasSuffix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionEqualFold applies the EqualFold predicate on the "version" field.
|
|
func VersionEqualFold(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEqualFold(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContainsFold applies the ContainsFold predicate on the "version" field.
|
|
func VersionContainsFold(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldContainsFold(FieldVersion, v))
|
|
}
|
|
|
|
// S3KeyEQ applies the EQ predicate on the "s3_key" field.
|
|
func S3KeyEQ(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyNEQ applies the NEQ predicate on the "s3_key" field.
|
|
func S3KeyNEQ(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNEQ(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyIn applies the In predicate on the "s3_key" field.
|
|
func S3KeyIn(vs ...string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIn(FieldS3Key, vs...))
|
|
}
|
|
|
|
// S3KeyNotIn applies the NotIn predicate on the "s3_key" field.
|
|
func S3KeyNotIn(vs ...string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotIn(FieldS3Key, vs...))
|
|
}
|
|
|
|
// S3KeyGT applies the GT predicate on the "s3_key" field.
|
|
func S3KeyGT(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGT(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyGTE applies the GTE predicate on the "s3_key" field.
|
|
func S3KeyGTE(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGTE(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyLT applies the LT predicate on the "s3_key" field.
|
|
func S3KeyLT(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLT(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyLTE applies the LTE predicate on the "s3_key" field.
|
|
func S3KeyLTE(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLTE(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyContains applies the Contains predicate on the "s3_key" field.
|
|
func S3KeyContains(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldContains(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyHasPrefix applies the HasPrefix predicate on the "s3_key" field.
|
|
func S3KeyHasPrefix(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldHasPrefix(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyHasSuffix applies the HasSuffix predicate on the "s3_key" field.
|
|
func S3KeyHasSuffix(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldHasSuffix(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyEqualFold applies the EqualFold predicate on the "s3_key" field.
|
|
func S3KeyEqualFold(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEqualFold(FieldS3Key, v))
|
|
}
|
|
|
|
// S3KeyContainsFold applies the ContainsFold predicate on the "s3_key" field.
|
|
func S3KeyContainsFold(v string) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldContainsFold(FieldS3Key, v))
|
|
}
|
|
|
|
// ParsedMetaIsNil applies the IsNil predicate on the "parsed_meta" field.
|
|
func ParsedMetaIsNil() predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIsNull(FieldParsedMeta))
|
|
}
|
|
|
|
// ParsedMetaNotNil applies the NotNil predicate on the "parsed_meta" field.
|
|
func ParsedMetaNotNil() predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotNull(FieldParsedMeta))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// HasPlugin applies the HasEdge predicate on the "plugin" edge.
|
|
func HasPlugin() predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, PluginTable, PluginColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasPluginWith applies the HasEdge predicate on the "plugin" edge with a given conditions (other predicates).
|
|
func HasPluginWith(preds ...predicate.AgentPlugin) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(func(s *sql.Selector) {
|
|
step := newPluginStep()
|
|
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.AgentPluginVersion) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.AgentPluginVersion) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.AgentPluginVersion) predicate.AgentPluginVersion {
|
|
return predicate.AgentPluginVersion(sql.NotPredicates(p))
|
|
}
|