prerequisite

package
v0.0.0-...-67bf1eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for prerequisite fields.

View Source
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 ID

func ID(id int) predicate.Prerequisite

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Prerequisite

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Prerequisite

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Prerequisite

IDLT applies the LT 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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL