race

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 race type in the database.
	Label = "race"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIndx holds the string denoting the indx field in the database.
	FieldIndx = "indx"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSpeed holds the string denoting the speed field in the database.
	FieldSpeed = "speed"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldSizeDesc holds the string denoting the size_desc field in the database.
	FieldSizeDesc = "size_desc"
	// FieldAlignmentDesc holds the string denoting the alignment_desc field in the database.
	FieldAlignmentDesc = "alignment_desc"
	// FieldAgeDesc holds the string denoting the age_desc field in the database.
	FieldAgeDesc = "age_desc"
	// FieldLanguageDesc holds the string denoting the language_desc field in the database.
	FieldLanguageDesc = "language_desc"
	// EdgeTraits holds the string denoting the traits edge name in mutations.
	EdgeTraits = "traits"
	// EdgeStartingProficiencies holds the string denoting the starting_proficiencies edge name in mutations.
	EdgeStartingProficiencies = "starting_proficiencies"
	// EdgeStartingProficiencyOptions holds the string denoting the starting_proficiency_options edge name in mutations.
	EdgeStartingProficiencyOptions = "starting_proficiency_options"
	// EdgeAbilityBonuses holds the string denoting the ability_bonuses edge name in mutations.
	EdgeAbilityBonuses = "ability_bonuses"
	// EdgeLanguages holds the string denoting the languages edge name in mutations.
	EdgeLanguages = "languages"
	// EdgeLanguageOptions holds the string denoting the language_options edge name in mutations.
	EdgeLanguageOptions = "language_options"
	// EdgeCharacters holds the string denoting the characters edge name in mutations.
	EdgeCharacters = "characters"
	// EdgeRaceAbilityBonuses holds the string denoting the race_ability_bonuses edge name in mutations.
	EdgeRaceAbilityBonuses = "race_ability_bonuses"
	// Table holds the table name of the race in the database.
	Table = "races"
	// TraitsTable is the table that holds the traits relation/edge. The primary key declared below.
	TraitsTable = "race_traits"
	// TraitsInverseTable is the table name for the Trait entity.
	// It exists in this package in order to avoid circular dependency with the "trait" package.
	TraitsInverseTable = "traits"
	// StartingProficienciesTable is the table that holds the starting_proficiencies relation/edge. The primary key declared below.
	StartingProficienciesTable = "race_starting_proficiencies"
	// StartingProficienciesInverseTable is the table name for the Proficiency entity.
	// It exists in this package in order to avoid circular dependency with the "proficiency" package.
	StartingProficienciesInverseTable = "proficiencies"
	// StartingProficiencyOptionsTable is the table that holds the starting_proficiency_options relation/edge.
	StartingProficiencyOptionsTable = "proficiency_choices"
	// StartingProficiencyOptionsInverseTable is the table name for the ProficiencyChoice entity.
	// It exists in this package in order to avoid circular dependency with the "proficiencychoice" package.
	StartingProficiencyOptionsInverseTable = "proficiency_choices"
	// StartingProficiencyOptionsColumn is the table column denoting the starting_proficiency_options relation/edge.
	StartingProficiencyOptionsColumn = "race_starting_proficiency_options"
	// AbilityBonusesTable is the table that holds the ability_bonuses relation/edge. The primary key declared below.
	AbilityBonusesTable = "ability_bonus"
	// AbilityBonusesInverseTable is the table name for the AbilityScore entity.
	// It exists in this package in order to avoid circular dependency with the "abilityscore" package.
	AbilityBonusesInverseTable = "ability_scores"
	// LanguagesTable is the table that holds the languages relation/edge. The primary key declared below.
	LanguagesTable = "race_languages"
	// LanguagesInverseTable is the table name for the Language entity.
	// It exists in this package in order to avoid circular dependency with the "language" package.
	LanguagesInverseTable = "languages"
	// LanguageOptionsTable is the table that holds the language_options relation/edge.
	LanguageOptionsTable = "language_choices"
	// LanguageOptionsInverseTable is the table name for the LanguageChoice entity.
	// It exists in this package in order to avoid circular dependency with the "languagechoice" package.
	LanguageOptionsInverseTable = "language_choices"
	// LanguageOptionsColumn is the table column denoting the language_options relation/edge.
	LanguageOptionsColumn = "race_language_options"
	// CharactersTable is the table that holds the characters relation/edge.
	CharactersTable = "characters"
	// CharactersInverseTable is the table name for the Character entity.
	// It exists in this package in order to avoid circular dependency with the "character" package.
	CharactersInverseTable = "characters"
	// CharactersColumn is the table column denoting the characters relation/edge.
	CharactersColumn = "character_race"
	// RaceAbilityBonusesTable is the table that holds the race_ability_bonuses relation/edge.
	RaceAbilityBonusesTable = "ability_bonus"
	// RaceAbilityBonusesInverseTable is the table name for the AbilityBonus entity.
	// It exists in this package in order to avoid circular dependency with the "abilitybonus" package.
	RaceAbilityBonusesInverseTable = "ability_bonus"
	// RaceAbilityBonusesColumn is the table column denoting the race_ability_bonuses relation/edge.
	RaceAbilityBonusesColumn = "race_id"
)
View Source
const DefaultSize = SizeMedium

SizeMedium is the default value of the Size enum.

Variables

View Source
var (
	// TraitsPrimaryKey and TraitsColumn2 are the table columns denoting the
	// primary key for the traits relation (M2M).
	TraitsPrimaryKey = []string{"race_id", "trait_id"}
	// StartingProficienciesPrimaryKey and StartingProficienciesColumn2 are the table columns denoting the
	// primary key for the starting_proficiencies relation (M2M).
	StartingProficienciesPrimaryKey = []string{"race_id", "proficiency_id"}
	// AbilityBonusesPrimaryKey and AbilityBonusesColumn2 are the table columns denoting the
	// primary key for the ability_bonuses relation (M2M).
	AbilityBonusesPrimaryKey = []string{"race_id", "ability_score_id"}
	// LanguagesPrimaryKey and LanguagesColumn2 are the table columns denoting the
	// primary key for the languages relation (M2M).
	LanguagesPrimaryKey = []string{"race_id", "language_id"}
)
View Source
var (
	// IndxValidator is a validator for the "indx" field. It is called by the builders before save.
	IndxValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// SpeedValidator is a validator for the "speed" field. It is called by the builders before save.
	SpeedValidator func(int) error
)

Columns holds all SQL columns for race fields.

Functions

func AgeDesc

func AgeDesc(v string) predicate.Race

AgeDesc applies equality check predicate on the "age_desc" field. It's identical to AgeDescEQ.

func AgeDescContains

func AgeDescContains(v string) predicate.Race

AgeDescContains applies the Contains predicate on the "age_desc" field.

func AgeDescContainsFold

func AgeDescContainsFold(v string) predicate.Race

AgeDescContainsFold applies the ContainsFold predicate on the "age_desc" field.

func AgeDescEQ

func AgeDescEQ(v string) predicate.Race

AgeDescEQ applies the EQ predicate on the "age_desc" field.

func AgeDescEqualFold

func AgeDescEqualFold(v string) predicate.Race

AgeDescEqualFold applies the EqualFold predicate on the "age_desc" field.

func AgeDescGT

func AgeDescGT(v string) predicate.Race

AgeDescGT applies the GT predicate on the "age_desc" field.

func AgeDescGTE

func AgeDescGTE(v string) predicate.Race

AgeDescGTE applies the GTE predicate on the "age_desc" field.

func AgeDescHasPrefix

func AgeDescHasPrefix(v string) predicate.Race

AgeDescHasPrefix applies the HasPrefix predicate on the "age_desc" field.

func AgeDescHasSuffix

func AgeDescHasSuffix(v string) predicate.Race

AgeDescHasSuffix applies the HasSuffix predicate on the "age_desc" field.

func AgeDescIn

func AgeDescIn(vs ...string) predicate.Race

AgeDescIn applies the In predicate on the "age_desc" field.

func AgeDescLT

func AgeDescLT(v string) predicate.Race

AgeDescLT applies the LT predicate on the "age_desc" field.

func AgeDescLTE

func AgeDescLTE(v string) predicate.Race

AgeDescLTE applies the LTE predicate on the "age_desc" field.

func AgeDescNEQ

func AgeDescNEQ(v string) predicate.Race

AgeDescNEQ applies the NEQ predicate on the "age_desc" field.

func AgeDescNotIn

func AgeDescNotIn(vs ...string) predicate.Race

AgeDescNotIn applies the NotIn predicate on the "age_desc" field.

func AlignmentDesc

func AlignmentDesc(v string) predicate.Race

AlignmentDesc applies equality check predicate on the "alignment_desc" field. It's identical to AlignmentDescEQ.

func AlignmentDescContains

func AlignmentDescContains(v string) predicate.Race

AlignmentDescContains applies the Contains predicate on the "alignment_desc" field.

func AlignmentDescContainsFold

func AlignmentDescContainsFold(v string) predicate.Race

AlignmentDescContainsFold applies the ContainsFold predicate on the "alignment_desc" field.

func AlignmentDescEQ

func AlignmentDescEQ(v string) predicate.Race

AlignmentDescEQ applies the EQ predicate on the "alignment_desc" field.

func AlignmentDescEqualFold

func AlignmentDescEqualFold(v string) predicate.Race

AlignmentDescEqualFold applies the EqualFold predicate on the "alignment_desc" field.

func AlignmentDescGT

func AlignmentDescGT(v string) predicate.Race

AlignmentDescGT applies the GT predicate on the "alignment_desc" field.

func AlignmentDescGTE

func AlignmentDescGTE(v string) predicate.Race

AlignmentDescGTE applies the GTE predicate on the "alignment_desc" field.

func AlignmentDescHasPrefix

func AlignmentDescHasPrefix(v string) predicate.Race

AlignmentDescHasPrefix applies the HasPrefix predicate on the "alignment_desc" field.

func AlignmentDescHasSuffix

func AlignmentDescHasSuffix(v string) predicate.Race

AlignmentDescHasSuffix applies the HasSuffix predicate on the "alignment_desc" field.

func AlignmentDescIn

func AlignmentDescIn(vs ...string) predicate.Race

AlignmentDescIn applies the In predicate on the "alignment_desc" field.

func AlignmentDescLT

func AlignmentDescLT(v string) predicate.Race

AlignmentDescLT applies the LT predicate on the "alignment_desc" field.

func AlignmentDescLTE

func AlignmentDescLTE(v string) predicate.Race

AlignmentDescLTE applies the LTE predicate on the "alignment_desc" field.

func AlignmentDescNEQ

func AlignmentDescNEQ(v string) predicate.Race

AlignmentDescNEQ applies the NEQ predicate on the "alignment_desc" field.

func AlignmentDescNotIn

func AlignmentDescNotIn(vs ...string) predicate.Race

AlignmentDescNotIn applies the NotIn predicate on the "alignment_desc" field.

func And

func And(predicates ...predicate.Race) predicate.Race

And groups predicates with the AND operator between them.

func HasAbilityBonuses

func HasAbilityBonuses() predicate.Race

HasAbilityBonuses applies the HasEdge predicate on the "ability_bonuses" edge.

func HasAbilityBonusesWith

func HasAbilityBonusesWith(preds ...predicate.AbilityScore) predicate.Race

HasAbilityBonusesWith applies the HasEdge predicate on the "ability_bonuses" edge with a given conditions (other predicates).

func HasCharacters

func HasCharacters() predicate.Race

HasCharacters applies the HasEdge predicate on the "characters" edge.

func HasCharactersWith

func HasCharactersWith(preds ...predicate.Character) predicate.Race

HasCharactersWith applies the HasEdge predicate on the "characters" edge with a given conditions (other predicates).

func HasLanguageOptions

func HasLanguageOptions() predicate.Race

HasLanguageOptions applies the HasEdge predicate on the "language_options" edge.

func HasLanguageOptionsWith

func HasLanguageOptionsWith(preds ...predicate.LanguageChoice) predicate.Race

HasLanguageOptionsWith applies the HasEdge predicate on the "language_options" edge with a given conditions (other predicates).

func HasLanguages

func HasLanguages() predicate.Race

HasLanguages applies the HasEdge predicate on the "languages" edge.

func HasLanguagesWith

func HasLanguagesWith(preds ...predicate.Language) predicate.Race

HasLanguagesWith applies the HasEdge predicate on the "languages" edge with a given conditions (other predicates).

func HasRaceAbilityBonuses

func HasRaceAbilityBonuses() predicate.Race

HasRaceAbilityBonuses applies the HasEdge predicate on the "race_ability_bonuses" edge.

func HasRaceAbilityBonusesWith

func HasRaceAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.Race

HasRaceAbilityBonusesWith applies the HasEdge predicate on the "race_ability_bonuses" edge with a given conditions (other predicates).

func HasStartingProficiencies

func HasStartingProficiencies() predicate.Race

HasStartingProficiencies applies the HasEdge predicate on the "starting_proficiencies" edge.

func HasStartingProficienciesWith

func HasStartingProficienciesWith(preds ...predicate.Proficiency) predicate.Race

HasStartingProficienciesWith applies the HasEdge predicate on the "starting_proficiencies" edge with a given conditions (other predicates).

func HasStartingProficiencyOptions

func HasStartingProficiencyOptions() predicate.Race

HasStartingProficiencyOptions applies the HasEdge predicate on the "starting_proficiency_options" edge.

func HasStartingProficiencyOptionsWith

func HasStartingProficiencyOptionsWith(preds ...predicate.ProficiencyChoice) predicate.Race

HasStartingProficiencyOptionsWith applies the HasEdge predicate on the "starting_proficiency_options" edge with a given conditions (other predicates).

func HasTraits

func HasTraits() predicate.Race

HasTraits applies the HasEdge predicate on the "traits" edge.

func HasTraitsWith

func HasTraitsWith(preds ...predicate.Trait) predicate.Race

HasTraitsWith applies the HasEdge predicate on the "traits" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Race

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Race

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Race

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Race

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Race

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Race

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Race

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Race

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Race

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Race

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Race

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Race

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Race

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Race

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Race

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Race

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Race

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Race

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Race

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Race

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Race

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Race

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Race

IndxNotIn applies the NotIn predicate on the "indx" field.

func LanguageDesc

func LanguageDesc(v string) predicate.Race

LanguageDesc applies equality check predicate on the "language_desc" field. It's identical to LanguageDescEQ.

func LanguageDescContains

func LanguageDescContains(v string) predicate.Race

LanguageDescContains applies the Contains predicate on the "language_desc" field.

func LanguageDescContainsFold

func LanguageDescContainsFold(v string) predicate.Race

LanguageDescContainsFold applies the ContainsFold predicate on the "language_desc" field.

func LanguageDescEQ

func LanguageDescEQ(v string) predicate.Race

LanguageDescEQ applies the EQ predicate on the "language_desc" field.

func LanguageDescEqualFold

func LanguageDescEqualFold(v string) predicate.Race

LanguageDescEqualFold applies the EqualFold predicate on the "language_desc" field.

func LanguageDescGT

func LanguageDescGT(v string) predicate.Race

LanguageDescGT applies the GT predicate on the "language_desc" field.

func LanguageDescGTE

func LanguageDescGTE(v string) predicate.Race

LanguageDescGTE applies the GTE predicate on the "language_desc" field.

func LanguageDescHasPrefix

func LanguageDescHasPrefix(v string) predicate.Race

LanguageDescHasPrefix applies the HasPrefix predicate on the "language_desc" field.

func LanguageDescHasSuffix

func LanguageDescHasSuffix(v string) predicate.Race

LanguageDescHasSuffix applies the HasSuffix predicate on the "language_desc" field.

func LanguageDescIn

func LanguageDescIn(vs ...string) predicate.Race

LanguageDescIn applies the In predicate on the "language_desc" field.

func LanguageDescLT

func LanguageDescLT(v string) predicate.Race

LanguageDescLT applies the LT predicate on the "language_desc" field.

func LanguageDescLTE

func LanguageDescLTE(v string) predicate.Race

LanguageDescLTE applies the LTE predicate on the "language_desc" field.

func LanguageDescNEQ

func LanguageDescNEQ(v string) predicate.Race

LanguageDescNEQ applies the NEQ predicate on the "language_desc" field.

func LanguageDescNotIn

func LanguageDescNotIn(vs ...string) predicate.Race

LanguageDescNotIn applies the NotIn predicate on the "language_desc" field.

func Name

func Name(v string) predicate.Race

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Race

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Race

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Race

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Race

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Race

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Race

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Race

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Race

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Race

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Race

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Race

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Race

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Race

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Race) predicate.Race

Or groups predicates with the OR operator between them.

func SizeDesc

func SizeDesc(v string) predicate.Race

SizeDesc applies equality check predicate on the "size_desc" field. It's identical to SizeDescEQ.

func SizeDescContains

func SizeDescContains(v string) predicate.Race

SizeDescContains applies the Contains predicate on the "size_desc" field.

func SizeDescContainsFold

func SizeDescContainsFold(v string) predicate.Race

SizeDescContainsFold applies the ContainsFold predicate on the "size_desc" field.

func SizeDescEQ

func SizeDescEQ(v string) predicate.Race

SizeDescEQ applies the EQ predicate on the "size_desc" field.

func SizeDescEqualFold

func SizeDescEqualFold(v string) predicate.Race

SizeDescEqualFold applies the EqualFold predicate on the "size_desc" field.

func SizeDescGT

func SizeDescGT(v string) predicate.Race

SizeDescGT applies the GT predicate on the "size_desc" field.

func SizeDescGTE

func SizeDescGTE(v string) predicate.Race

SizeDescGTE applies the GTE predicate on the "size_desc" field.

func SizeDescHasPrefix

func SizeDescHasPrefix(v string) predicate.Race

SizeDescHasPrefix applies the HasPrefix predicate on the "size_desc" field.

func SizeDescHasSuffix

func SizeDescHasSuffix(v string) predicate.Race

SizeDescHasSuffix applies the HasSuffix predicate on the "size_desc" field.

func SizeDescIn

func SizeDescIn(vs ...string) predicate.Race

SizeDescIn applies the In predicate on the "size_desc" field.

func SizeDescLT

func SizeDescLT(v string) predicate.Race

SizeDescLT applies the LT predicate on the "size_desc" field.

func SizeDescLTE

func SizeDescLTE(v string) predicate.Race

SizeDescLTE applies the LTE predicate on the "size_desc" field.

func SizeDescNEQ

func SizeDescNEQ(v string) predicate.Race

SizeDescNEQ applies the NEQ predicate on the "size_desc" field.

func SizeDescNotIn

func SizeDescNotIn(vs ...string) predicate.Race

SizeDescNotIn applies the NotIn predicate on the "size_desc" field.

func SizeEQ

func SizeEQ(v Size) predicate.Race

SizeEQ applies the EQ predicate on the "size" field.

func SizeIn

func SizeIn(vs ...Size) predicate.Race

SizeIn applies the In predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v Size) predicate.Race

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...Size) predicate.Race

SizeNotIn applies the NotIn predicate on the "size" field.

func SizeValidator

func SizeValidator(s Size) error

SizeValidator is a validator for the "size" field enum values. It is called by the builders before save.

func Speed

func Speed(v int) predicate.Race

Speed applies equality check predicate on the "speed" field. It's identical to SpeedEQ.

func SpeedEQ

func SpeedEQ(v int) predicate.Race

SpeedEQ applies the EQ predicate on the "speed" field.

func SpeedGT

func SpeedGT(v int) predicate.Race

SpeedGT applies the GT predicate on the "speed" field.

func SpeedGTE

func SpeedGTE(v int) predicate.Race

SpeedGTE applies the GTE predicate on the "speed" field.

func SpeedIn

func SpeedIn(vs ...int) predicate.Race

SpeedIn applies the In predicate on the "speed" field.

func SpeedLT

func SpeedLT(v int) predicate.Race

SpeedLT applies the LT predicate on the "speed" field.

func SpeedLTE

func SpeedLTE(v int) predicate.Race

SpeedLTE applies the LTE predicate on the "speed" field.

func SpeedNEQ

func SpeedNEQ(v int) predicate.Race

SpeedNEQ applies the NEQ predicate on the "speed" field.

func SpeedNotIn

func SpeedNotIn(vs ...int) predicate.Race

SpeedNotIn applies the NotIn predicate on the "speed" 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 Race queries.

func ByAbilityBonuses

func ByAbilityBonuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAbilityBonuses orders the results by ability_bonuses terms.

func ByAbilityBonusesCount

func ByAbilityBonusesCount(opts ...sql.OrderTermOption) OrderOption

ByAbilityBonusesCount orders the results by ability_bonuses count.

func ByAgeDesc

func ByAgeDesc(opts ...sql.OrderTermOption) OrderOption

ByAgeDesc orders the results by the age_desc field.

func ByAlignmentDesc

func ByAlignmentDesc(opts ...sql.OrderTermOption) OrderOption

ByAlignmentDesc orders the results by the alignment_desc field.

func ByCharacters

func ByCharacters(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCharacters orders the results by characters terms.

func ByCharactersCount

func ByCharactersCount(opts ...sql.OrderTermOption) OrderOption

ByCharactersCount orders the results by characters count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIndx

func ByIndx(opts ...sql.OrderTermOption) OrderOption

ByIndx orders the results by the indx field.

func ByLanguageDesc

func ByLanguageDesc(opts ...sql.OrderTermOption) OrderOption

ByLanguageDesc orders the results by the language_desc field.

func ByLanguageOptionsField

func ByLanguageOptionsField(field string, opts ...sql.OrderTermOption) OrderOption

ByLanguageOptionsField orders the results by language_options field.

func ByLanguages

func ByLanguages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLanguages orders the results by languages terms.

func ByLanguagesCount

func ByLanguagesCount(opts ...sql.OrderTermOption) OrderOption

ByLanguagesCount orders the results by languages count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByRaceAbilityBonuses

func ByRaceAbilityBonuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRaceAbilityBonuses orders the results by race_ability_bonuses terms.

func ByRaceAbilityBonusesCount

func ByRaceAbilityBonusesCount(opts ...sql.OrderTermOption) OrderOption

ByRaceAbilityBonusesCount orders the results by race_ability_bonuses count.

func BySize

func BySize(opts ...sql.OrderTermOption) OrderOption

BySize orders the results by the size field.

func BySizeDesc

func BySizeDesc(opts ...sql.OrderTermOption) OrderOption

BySizeDesc orders the results by the size_desc field.

func BySpeed

func BySpeed(opts ...sql.OrderTermOption) OrderOption

BySpeed orders the results by the speed field.

func ByStartingProficiencies

func ByStartingProficiencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByStartingProficiencies orders the results by starting_proficiencies terms.

func ByStartingProficienciesCount

func ByStartingProficienciesCount(opts ...sql.OrderTermOption) OrderOption

ByStartingProficienciesCount orders the results by starting_proficiencies count.

func ByStartingProficiencyOptions

func ByStartingProficiencyOptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByStartingProficiencyOptions orders the results by starting_proficiency_options terms.

func ByStartingProficiencyOptionsCount

func ByStartingProficiencyOptionsCount(opts ...sql.OrderTermOption) OrderOption

ByStartingProficiencyOptionsCount orders the results by starting_proficiency_options count.

func ByTraits

func ByTraits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTraits orders the results by traits terms.

func ByTraitsCount

func ByTraitsCount(opts ...sql.OrderTermOption) OrderOption

ByTraitsCount orders the results by traits count.

type Size

type Size string

Size defines the type for the "size" enum field.

const (
	SizeSmall  Size = "Small"
	SizeMedium Size = "Medium"
	SizeLarge  Size = "Large"
)

Size values.

func (Size) MarshalGQL

func (e Size) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Size) String

func (s Size) String() string

func (*Size) UnmarshalGQL

func (e *Size) 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