subrace

package
v0.0.0-...-c5055fb Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subrace type in the database.
	Label = "subrace"
	// 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"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// EdgeRace holds the string denoting the race edge name in mutations.
	EdgeRace = "race"
	// EdgeProficiencies holds the string denoting the proficiencies edge name in mutations.
	EdgeProficiencies = "proficiencies"
	// EdgeTraits holds the string denoting the traits edge name in mutations.
	EdgeTraits = "traits"
	// EdgeAbilityBonuses holds the string denoting the ability_bonuses edge name in mutations.
	EdgeAbilityBonuses = "ability_bonuses"
	// Table holds the table name of the subrace in the database.
	Table = "subraces"
	// RaceTable is the table that holds the race relation/edge.
	RaceTable = "subraces"
	// RaceInverseTable is the table name for the Race entity.
	// It exists in this package in order to avoid circular dependency with the "race" package.
	RaceInverseTable = "races"
	// RaceColumn is the table column denoting the race relation/edge.
	RaceColumn = "subrace_race"
	// ProficienciesTable is the table that holds the proficiencies relation/edge. The primary key declared below.
	ProficienciesTable = "subrace_proficiencies"
	// ProficienciesInverseTable is the table name for the Proficiency entity.
	// It exists in this package in order to avoid circular dependency with the "proficiency" package.
	ProficienciesInverseTable = "proficiencies"
	// TraitsTable is the table that holds the traits relation/edge. The primary key declared below.
	TraitsTable = "subrace_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"
	// AbilityBonusesTable is the table that holds the ability_bonuses relation/edge.
	AbilityBonusesTable = "ability_bonus"
	// AbilityBonusesInverseTable is the table name for the AbilityBonus entity.
	// It exists in this package in order to avoid circular dependency with the "abilitybonus" package.
	AbilityBonusesInverseTable = "ability_bonus"
	// AbilityBonusesColumn is the table column denoting the ability_bonuses relation/edge.
	AbilityBonusesColumn = "subrace_ability_bonuses"
)

Variables

View Source
var (
	// ProficienciesPrimaryKey and ProficienciesColumn2 are the table columns denoting the
	// primary key for the proficiencies relation (M2M).
	ProficienciesPrimaryKey = []string{"subrace_id", "proficiency_id"}
	// TraitsPrimaryKey and TraitsColumn2 are the table columns denoting the
	// primary key for the traits relation (M2M).
	TraitsPrimaryKey = []string{"subrace_id", "trait_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
)

Columns holds all SQL columns for subrace fields.

View Source
var ForeignKeys = []string{
	"subrace_race",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "subraces" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Subrace) predicate.Subrace

And groups predicates with the AND operator between them.

func Desc

func Desc(v string) predicate.Subrace

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Subrace

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Subrace

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Subrace

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Subrace

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Subrace

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Subrace

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Subrace

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Subrace

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Subrace

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Subrace

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Subrace

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Subrace

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Subrace

DescNotIn applies the NotIn predicate on the "desc" field.

func HasAbilityBonuses

func HasAbilityBonuses() predicate.Subrace

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

func HasAbilityBonusesWith

func HasAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.Subrace

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

func HasProficiencies

func HasProficiencies() predicate.Subrace

HasProficiencies applies the HasEdge predicate on the "proficiencies" edge.

func HasProficienciesWith

func HasProficienciesWith(preds ...predicate.Proficiency) predicate.Subrace

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

func HasRace

func HasRace() predicate.Subrace

HasRace applies the HasEdge predicate on the "race" edge.

func HasRaceWith

func HasRaceWith(preds ...predicate.Race) predicate.Subrace

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

func HasTraits

func HasTraits() predicate.Subrace

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

func HasTraitsWith

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

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

func ID

func ID(id int) predicate.Subrace

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Subrace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Subrace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Subrace

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Subrace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Subrace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Subrace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Subrace

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

func IndxContains

func IndxContains(v string) predicate.Subrace

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

func IndxContainsFold

func IndxContainsFold(v string) predicate.Subrace

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

func IndxEQ

func IndxEQ(v string) predicate.Subrace

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

func IndxEqualFold

func IndxEqualFold(v string) predicate.Subrace

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

func IndxGT

func IndxGT(v string) predicate.Subrace

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

func IndxGTE

func IndxGTE(v string) predicate.Subrace

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

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Subrace

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

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Subrace

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

func IndxIn

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

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

func IndxLT

func IndxLT(v string) predicate.Subrace

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

func IndxLTE

func IndxLTE(v string) predicate.Subrace

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

func IndxNEQ

func IndxNEQ(v string) predicate.Subrace

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

func IndxNotIn

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

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

func Name

func Name(v string) predicate.Subrace

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

func NameContains

func NameContains(v string) predicate.Subrace

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

func NameContainsFold

func NameContainsFold(v string) predicate.Subrace

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

func NameEQ

func NameEQ(v string) predicate.Subrace

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

func NameEqualFold

func NameEqualFold(v string) predicate.Subrace

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

func NameGT

func NameGT(v string) predicate.Subrace

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

func NameGTE

func NameGTE(v string) predicate.Subrace

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Subrace

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Subrace

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Subrace

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

func NameLTE

func NameLTE(v string) predicate.Subrace

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

func NameNEQ

func NameNEQ(v string) predicate.Subrace

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

func NameNotIn

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

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.Subrace) predicate.Subrace

Or groups predicates with the OR operator between them.

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 Subrace 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 ByDesc

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

ByDesc orders the results by the desc field.

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 ByName

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

ByName orders the results by the name field.

func ByProficiencies

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

ByProficiencies orders the results by proficiencies terms.

func ByProficienciesCount

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

ByProficienciesCount orders the results by proficiencies count.

func ByRaceField

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

ByRaceField orders the results by race field.

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.

Jump to

Keyboard shortcuts

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