mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-28 14:40:46 +08:00
270 lines
9.0 KiB
Go
270 lines
9.0 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package storage
|
|
|
|
import (
|
|
"polaris/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Settings applies equality check predicate on the "settings" field. It's identical to SettingsEQ.
|
|
func Settings(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldSettings, v))
|
|
}
|
|
|
|
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
|
func Deleted(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldDeleted, v))
|
|
}
|
|
|
|
// Default applies equality check predicate on the "default" field. It's identical to DefaultEQ.
|
|
func Default(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldDefault, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// ImplementationEQ applies the EQ predicate on the "implementation" field.
|
|
func ImplementationEQ(v Implementation) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldImplementation, v))
|
|
}
|
|
|
|
// ImplementationNEQ applies the NEQ predicate on the "implementation" field.
|
|
func ImplementationNEQ(v Implementation) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldImplementation, v))
|
|
}
|
|
|
|
// ImplementationIn applies the In predicate on the "implementation" field.
|
|
func ImplementationIn(vs ...Implementation) predicate.Storage {
|
|
return predicate.Storage(sql.FieldIn(FieldImplementation, vs...))
|
|
}
|
|
|
|
// ImplementationNotIn applies the NotIn predicate on the "implementation" field.
|
|
func ImplementationNotIn(vs ...Implementation) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNotIn(FieldImplementation, vs...))
|
|
}
|
|
|
|
// SettingsEQ applies the EQ predicate on the "settings" field.
|
|
func SettingsEQ(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsNEQ applies the NEQ predicate on the "settings" field.
|
|
func SettingsNEQ(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsIn applies the In predicate on the "settings" field.
|
|
func SettingsIn(vs ...string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldIn(FieldSettings, vs...))
|
|
}
|
|
|
|
// SettingsNotIn applies the NotIn predicate on the "settings" field.
|
|
func SettingsNotIn(vs ...string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNotIn(FieldSettings, vs...))
|
|
}
|
|
|
|
// SettingsGT applies the GT predicate on the "settings" field.
|
|
func SettingsGT(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGT(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsGTE applies the GTE predicate on the "settings" field.
|
|
func SettingsGTE(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldGTE(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsLT applies the LT predicate on the "settings" field.
|
|
func SettingsLT(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLT(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsLTE applies the LTE predicate on the "settings" field.
|
|
func SettingsLTE(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldLTE(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsContains applies the Contains predicate on the "settings" field.
|
|
func SettingsContains(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldContains(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsHasPrefix applies the HasPrefix predicate on the "settings" field.
|
|
func SettingsHasPrefix(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldHasPrefix(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsHasSuffix applies the HasSuffix predicate on the "settings" field.
|
|
func SettingsHasSuffix(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldHasSuffix(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsIsNil applies the IsNil predicate on the "settings" field.
|
|
func SettingsIsNil() predicate.Storage {
|
|
return predicate.Storage(sql.FieldIsNull(FieldSettings))
|
|
}
|
|
|
|
// SettingsNotNil applies the NotNil predicate on the "settings" field.
|
|
func SettingsNotNil() predicate.Storage {
|
|
return predicate.Storage(sql.FieldNotNull(FieldSettings))
|
|
}
|
|
|
|
// SettingsEqualFold applies the EqualFold predicate on the "settings" field.
|
|
func SettingsEqualFold(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEqualFold(FieldSettings, v))
|
|
}
|
|
|
|
// SettingsContainsFold applies the ContainsFold predicate on the "settings" field.
|
|
func SettingsContainsFold(v string) predicate.Storage {
|
|
return predicate.Storage(sql.FieldContainsFold(FieldSettings, v))
|
|
}
|
|
|
|
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
|
func DeletedEQ(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldDeleted, v))
|
|
}
|
|
|
|
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
|
func DeletedNEQ(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldDeleted, v))
|
|
}
|
|
|
|
// DefaultEQ applies the EQ predicate on the "default" field.
|
|
func DefaultEQ(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldEQ(FieldDefault, v))
|
|
}
|
|
|
|
// DefaultNEQ applies the NEQ predicate on the "default" field.
|
|
func DefaultNEQ(v bool) predicate.Storage {
|
|
return predicate.Storage(sql.FieldNEQ(FieldDefault, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Storage) predicate.Storage {
|
|
return predicate.Storage(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Storage) predicate.Storage {
|
|
return predicate.Storage(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Storage) predicate.Storage {
|
|
return predicate.Storage(sql.NotPredicates(p))
|
|
}
|