Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Prerequisite) predicate.Prerequisite
- func FeatureValue(v string) predicate.Prerequisite
- func FeatureValueContains(v string) predicate.Prerequisite
- func FeatureValueContainsFold(v string) predicate.Prerequisite
- func FeatureValueEQ(v string) predicate.Prerequisite
- func FeatureValueEqualFold(v string) predicate.Prerequisite
- func FeatureValueGT(v string) predicate.Prerequisite
- func FeatureValueGTE(v string) predicate.Prerequisite
- func FeatureValueHasPrefix(v string) predicate.Prerequisite
- func FeatureValueHasSuffix(v string) predicate.Prerequisite
- func FeatureValueIn(vs ...string) predicate.Prerequisite
- func FeatureValueIsNil() predicate.Prerequisite
- func FeatureValueLT(v string) predicate.Prerequisite
- func FeatureValueLTE(v string) predicate.Prerequisite
- func FeatureValueNEQ(v string) predicate.Prerequisite
- func FeatureValueNotIn(vs ...string) predicate.Prerequisite
- func FeatureValueNotNil() predicate.Prerequisite
- func HasFeature() predicate.Prerequisite
- func HasFeatureWith(preds ...predicate.Feature) predicate.Prerequisite
- func ID(id int) predicate.Prerequisite
- func IDEQ(id int) predicate.Prerequisite
- func IDGT(id int) predicate.Prerequisite
- func IDGTE(id int) predicate.Prerequisite
- func IDIn(ids ...int) predicate.Prerequisite
- func IDLT(id int) predicate.Prerequisite
- func IDLTE(id int) predicate.Prerequisite
- func IDNEQ(id int) predicate.Prerequisite
- func IDNotIn(ids ...int) predicate.Prerequisite
- func LevelValue(v int) predicate.Prerequisite
- func LevelValueEQ(v int) predicate.Prerequisite
- func LevelValueGT(v int) predicate.Prerequisite
- func LevelValueGTE(v int) predicate.Prerequisite
- func LevelValueIn(vs ...int) predicate.Prerequisite
- func LevelValueIsNil() predicate.Prerequisite
- func LevelValueLT(v int) predicate.Prerequisite
- func LevelValueLTE(v int) predicate.Prerequisite
- func LevelValueNEQ(v int) predicate.Prerequisite
- func LevelValueNotIn(vs ...int) predicate.Prerequisite
- func LevelValueNotNil() predicate.Prerequisite
- func Not(p predicate.Prerequisite) predicate.Prerequisite
- func Or(predicates ...predicate.Prerequisite) predicate.Prerequisite
- func PrerequisiteTypeEQ(v PrerequisiteType) predicate.Prerequisite
- func PrerequisiteTypeIn(vs ...PrerequisiteType) predicate.Prerequisite
- func PrerequisiteTypeNEQ(v PrerequisiteType) predicate.Prerequisite
- func PrerequisiteTypeNotIn(vs ...PrerequisiteType) predicate.Prerequisite
- func PrerequisiteTypeValidator(pt PrerequisiteType) error
- func SpellValue(v string) predicate.Prerequisite
- func SpellValueContains(v string) predicate.Prerequisite
- func SpellValueContainsFold(v string) predicate.Prerequisite
- func SpellValueEQ(v string) predicate.Prerequisite
- func SpellValueEqualFold(v string) predicate.Prerequisite
- func SpellValueGT(v string) predicate.Prerequisite
- func SpellValueGTE(v string) predicate.Prerequisite
- func SpellValueHasPrefix(v string) predicate.Prerequisite
- func SpellValueHasSuffix(v string) predicate.Prerequisite
- func SpellValueIn(vs ...string) predicate.Prerequisite
- func SpellValueIsNil() predicate.Prerequisite
- func SpellValueLT(v string) predicate.Prerequisite
- func SpellValueLTE(v string) predicate.Prerequisite
- func SpellValueNEQ(v string) predicate.Prerequisite
- func SpellValueNotIn(vs ...string) predicate.Prerequisite
- func SpellValueNotNil() predicate.Prerequisite
- func ValidColumn(column string) bool
- type OrderOption
- func ByFeatureField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFeatureValue(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLevelValue(opts ...sql.OrderTermOption) OrderOption
- func ByPrerequisiteType(opts ...sql.OrderTermOption) OrderOption
- func BySpellValue(opts ...sql.OrderTermOption) OrderOption
- type PrerequisiteType
Constants ¶
const ( // Label holds the string label denoting the prerequisite type in the database. Label = "prerequisite" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPrerequisiteType holds the string denoting the prerequisite_type field in the database. FieldPrerequisiteType = "prerequisite_type" // FieldLevelValue holds the string denoting the level_value field in the database. FieldLevelValue = "level_value" // FieldFeatureValue holds the string denoting the feature_value field in the database. FieldFeatureValue = "feature_value" // FieldSpellValue holds the string denoting the spell_value field in the database. FieldSpellValue = "spell_value" // EdgeFeature holds the string denoting the feature edge name in mutations. EdgeFeature = "feature" // Table holds the table name of the prerequisite in the database. Table = "prerequisites" // FeatureTable is the table that holds the feature relation/edge. FeatureTable = "prerequisites" // FeatureInverseTable is the table name for the Feature entity. // It exists in this package in order to avoid circular dependency with the "feature" package. FeatureInverseTable = "features" // FeatureColumn is the table column denoting the feature relation/edge. FeatureColumn = "feature_prerequisites" )
Variables ¶
var Columns = []string{ FieldID, FieldPrerequisiteType, FieldLevelValue, FieldFeatureValue, FieldSpellValue, }
Columns holds all SQL columns for prerequisite fields.
var ForeignKeys = []string{
"feature_prerequisites",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "prerequisites" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Prerequisite) predicate.Prerequisite
And groups predicates with the AND operator between them.
func FeatureValue ¶
func FeatureValue(v string) predicate.Prerequisite
FeatureValue applies equality check predicate on the "feature_value" field. It's identical to FeatureValueEQ.
func FeatureValueContains ¶
func FeatureValueContains(v string) predicate.Prerequisite
FeatureValueContains applies the Contains predicate on the "feature_value" field.
func FeatureValueContainsFold ¶
func FeatureValueContainsFold(v string) predicate.Prerequisite
FeatureValueContainsFold applies the ContainsFold predicate on the "feature_value" field.
func FeatureValueEQ ¶
func FeatureValueEQ(v string) predicate.Prerequisite
FeatureValueEQ applies the EQ predicate on the "feature_value" field.
func FeatureValueEqualFold ¶
func FeatureValueEqualFold(v string) predicate.Prerequisite
FeatureValueEqualFold applies the EqualFold predicate on the "feature_value" field.
func FeatureValueGT ¶
func FeatureValueGT(v string) predicate.Prerequisite
FeatureValueGT applies the GT predicate on the "feature_value" field.
func FeatureValueGTE ¶
func FeatureValueGTE(v string) predicate.Prerequisite
FeatureValueGTE applies the GTE predicate on the "feature_value" field.
func FeatureValueHasPrefix ¶
func FeatureValueHasPrefix(v string) predicate.Prerequisite
FeatureValueHasPrefix applies the HasPrefix predicate on the "feature_value" field.
func FeatureValueHasSuffix ¶
func FeatureValueHasSuffix(v string) predicate.Prerequisite
FeatureValueHasSuffix applies the HasSuffix predicate on the "feature_value" field.
func FeatureValueIn ¶
func FeatureValueIn(vs ...string) predicate.Prerequisite
FeatureValueIn applies the In predicate on the "feature_value" field.
func FeatureValueIsNil ¶
func FeatureValueIsNil() predicate.Prerequisite
FeatureValueIsNil applies the IsNil predicate on the "feature_value" field.
func FeatureValueLT ¶
func FeatureValueLT(v string) predicate.Prerequisite
FeatureValueLT applies the LT predicate on the "feature_value" field.
func FeatureValueLTE ¶
func FeatureValueLTE(v string) predicate.Prerequisite
FeatureValueLTE applies the LTE predicate on the "feature_value" field.
func FeatureValueNEQ ¶
func FeatureValueNEQ(v string) predicate.Prerequisite
FeatureValueNEQ applies the NEQ predicate on the "feature_value" field.
func FeatureValueNotIn ¶
func FeatureValueNotIn(vs ...string) predicate.Prerequisite
FeatureValueNotIn applies the NotIn predicate on the "feature_value" field.
func FeatureValueNotNil ¶
func FeatureValueNotNil() predicate.Prerequisite
FeatureValueNotNil applies the NotNil predicate on the "feature_value" field.
func HasFeature ¶
func HasFeature() predicate.Prerequisite
HasFeature applies the HasEdge predicate on the "feature" edge.
func HasFeatureWith ¶
func HasFeatureWith(preds ...predicate.Feature) predicate.Prerequisite
HasFeatureWith applies the HasEdge predicate on the "feature" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Prerequisite
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Prerequisite
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Prerequisite
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Prerequisite
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Prerequisite
IDNotIn applies the NotIn predicate on the ID field.
func LevelValue ¶
func LevelValue(v int) predicate.Prerequisite
LevelValue applies equality check predicate on the "level_value" field. It's identical to LevelValueEQ.
func LevelValueEQ ¶
func LevelValueEQ(v int) predicate.Prerequisite
LevelValueEQ applies the EQ predicate on the "level_value" field.
func LevelValueGT ¶
func LevelValueGT(v int) predicate.Prerequisite
LevelValueGT applies the GT predicate on the "level_value" field.
func LevelValueGTE ¶
func LevelValueGTE(v int) predicate.Prerequisite
LevelValueGTE applies the GTE predicate on the "level_value" field.
func LevelValueIn ¶
func LevelValueIn(vs ...int) predicate.Prerequisite
LevelValueIn applies the In predicate on the "level_value" field.
func LevelValueIsNil ¶
func LevelValueIsNil() predicate.Prerequisite
LevelValueIsNil applies the IsNil predicate on the "level_value" field.
func LevelValueLT ¶
func LevelValueLT(v int) predicate.Prerequisite
LevelValueLT applies the LT predicate on the "level_value" field.
func LevelValueLTE ¶
func LevelValueLTE(v int) predicate.Prerequisite
LevelValueLTE applies the LTE predicate on the "level_value" field.
func LevelValueNEQ ¶
func LevelValueNEQ(v int) predicate.Prerequisite
LevelValueNEQ applies the NEQ predicate on the "level_value" field.
func LevelValueNotIn ¶
func LevelValueNotIn(vs ...int) predicate.Prerequisite
LevelValueNotIn applies the NotIn predicate on the "level_value" field.
func LevelValueNotNil ¶
func LevelValueNotNil() predicate.Prerequisite
LevelValueNotNil applies the NotNil predicate on the "level_value" field.
func Not ¶
func Not(p predicate.Prerequisite) predicate.Prerequisite
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Prerequisite) predicate.Prerequisite
Or groups predicates with the OR operator between them.
func PrerequisiteTypeEQ ¶
func PrerequisiteTypeEQ(v PrerequisiteType) predicate.Prerequisite
PrerequisiteTypeEQ applies the EQ predicate on the "prerequisite_type" field.
func PrerequisiteTypeIn ¶
func PrerequisiteTypeIn(vs ...PrerequisiteType) predicate.Prerequisite
PrerequisiteTypeIn applies the In predicate on the "prerequisite_type" field.
func PrerequisiteTypeNEQ ¶
func PrerequisiteTypeNEQ(v PrerequisiteType) predicate.Prerequisite
PrerequisiteTypeNEQ applies the NEQ predicate on the "prerequisite_type" field.
func PrerequisiteTypeNotIn ¶
func PrerequisiteTypeNotIn(vs ...PrerequisiteType) predicate.Prerequisite
PrerequisiteTypeNotIn applies the NotIn predicate on the "prerequisite_type" field.
func PrerequisiteTypeValidator ¶
func PrerequisiteTypeValidator(pt PrerequisiteType) error
PrerequisiteTypeValidator is a validator for the "prerequisite_type" field enum values. It is called by the builders before save.
func SpellValue ¶
func SpellValue(v string) predicate.Prerequisite
SpellValue applies equality check predicate on the "spell_value" field. It's identical to SpellValueEQ.
func SpellValueContains ¶
func SpellValueContains(v string) predicate.Prerequisite
SpellValueContains applies the Contains predicate on the "spell_value" field.
func SpellValueContainsFold ¶
func SpellValueContainsFold(v string) predicate.Prerequisite
SpellValueContainsFold applies the ContainsFold predicate on the "spell_value" field.
func SpellValueEQ ¶
func SpellValueEQ(v string) predicate.Prerequisite
SpellValueEQ applies the EQ predicate on the "spell_value" field.
func SpellValueEqualFold ¶
func SpellValueEqualFold(v string) predicate.Prerequisite
SpellValueEqualFold applies the EqualFold predicate on the "spell_value" field.
func SpellValueGT ¶
func SpellValueGT(v string) predicate.Prerequisite
SpellValueGT applies the GT predicate on the "spell_value" field.
func SpellValueGTE ¶
func SpellValueGTE(v string) predicate.Prerequisite
SpellValueGTE applies the GTE predicate on the "spell_value" field.
func SpellValueHasPrefix ¶
func SpellValueHasPrefix(v string) predicate.Prerequisite
SpellValueHasPrefix applies the HasPrefix predicate on the "spell_value" field.
func SpellValueHasSuffix ¶
func SpellValueHasSuffix(v string) predicate.Prerequisite
SpellValueHasSuffix applies the HasSuffix predicate on the "spell_value" field.
func SpellValueIn ¶
func SpellValueIn(vs ...string) predicate.Prerequisite
SpellValueIn applies the In predicate on the "spell_value" field.
func SpellValueIsNil ¶
func SpellValueIsNil() predicate.Prerequisite
SpellValueIsNil applies the IsNil predicate on the "spell_value" field.
func SpellValueLT ¶
func SpellValueLT(v string) predicate.Prerequisite
SpellValueLT applies the LT predicate on the "spell_value" field.
func SpellValueLTE ¶
func SpellValueLTE(v string) predicate.Prerequisite
SpellValueLTE applies the LTE predicate on the "spell_value" field.
func SpellValueNEQ ¶
func SpellValueNEQ(v string) predicate.Prerequisite
SpellValueNEQ applies the NEQ predicate on the "spell_value" field.
func SpellValueNotIn ¶
func SpellValueNotIn(vs ...string) predicate.Prerequisite
SpellValueNotIn applies the NotIn predicate on the "spell_value" field.
func SpellValueNotNil ¶
func SpellValueNotNil() predicate.Prerequisite
SpellValueNotNil applies the NotNil predicate on the "spell_value" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Prerequisite queries.
func ByFeatureField ¶
func ByFeatureField(field string, opts ...sql.OrderTermOption) OrderOption
ByFeatureField orders the results by feature field.
func ByFeatureValue ¶
func ByFeatureValue(opts ...sql.OrderTermOption) OrderOption
ByFeatureValue orders the results by the feature_value field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLevelValue ¶
func ByLevelValue(opts ...sql.OrderTermOption) OrderOption
ByLevelValue orders the results by the level_value field.
func ByPrerequisiteType ¶
func ByPrerequisiteType(opts ...sql.OrderTermOption) OrderOption
ByPrerequisiteType orders the results by the prerequisite_type field.
func BySpellValue ¶
func BySpellValue(opts ...sql.OrderTermOption) OrderOption
BySpellValue orders the results by the spell_value field.
type PrerequisiteType ¶
type PrerequisiteType string
PrerequisiteType defines the type for the "prerequisite_type" enum field.
const ( PrerequisiteTypeLevel PrerequisiteType = "level" PrerequisiteTypeSpell PrerequisiteType = "spell" PrerequisiteTypeFeature PrerequisiteType = "feature" )
PrerequisiteType values.
func (PrerequisiteType) MarshalGQL ¶
func (e PrerequisiteType) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (PrerequisiteType) String ¶
func (pt PrerequisiteType) String() string
func (*PrerequisiteType) UnmarshalGQL ¶
func (e *PrerequisiteType) UnmarshalGQL(val interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.