Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subrace) predicate.Subrace
- func Desc(v string) predicate.Subrace
- func DescContains(v string) predicate.Subrace
- func DescContainsFold(v string) predicate.Subrace
- func DescEQ(v string) predicate.Subrace
- func DescEqualFold(v string) predicate.Subrace
- func DescGT(v string) predicate.Subrace
- func DescGTE(v string) predicate.Subrace
- func DescHasPrefix(v string) predicate.Subrace
- func DescHasSuffix(v string) predicate.Subrace
- func DescIn(vs ...string) predicate.Subrace
- func DescLT(v string) predicate.Subrace
- func DescLTE(v string) predicate.Subrace
- func DescNEQ(v string) predicate.Subrace
- func DescNotIn(vs ...string) predicate.Subrace
- func HasAbilityBonuses() predicate.Subrace
- func HasAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.Subrace
- func HasProficiencies() predicate.Subrace
- func HasProficienciesWith(preds ...predicate.Proficiency) predicate.Subrace
- func HasRace() predicate.Subrace
- func HasRaceWith(preds ...predicate.Race) predicate.Subrace
- func HasTraits() predicate.Subrace
- func HasTraitsWith(preds ...predicate.Trait) predicate.Subrace
- func ID(id int) predicate.Subrace
- func IDEQ(id int) predicate.Subrace
- func IDGT(id int) predicate.Subrace
- func IDGTE(id int) predicate.Subrace
- func IDIn(ids ...int) predicate.Subrace
- func IDLT(id int) predicate.Subrace
- func IDLTE(id int) predicate.Subrace
- func IDNEQ(id int) predicate.Subrace
- func IDNotIn(ids ...int) predicate.Subrace
- func Indx(v string) predicate.Subrace
- func IndxContains(v string) predicate.Subrace
- func IndxContainsFold(v string) predicate.Subrace
- func IndxEQ(v string) predicate.Subrace
- func IndxEqualFold(v string) predicate.Subrace
- func IndxGT(v string) predicate.Subrace
- func IndxGTE(v string) predicate.Subrace
- func IndxHasPrefix(v string) predicate.Subrace
- func IndxHasSuffix(v string) predicate.Subrace
- func IndxIn(vs ...string) predicate.Subrace
- func IndxLT(v string) predicate.Subrace
- func IndxLTE(v string) predicate.Subrace
- func IndxNEQ(v string) predicate.Subrace
- func IndxNotIn(vs ...string) predicate.Subrace
- func Name(v string) predicate.Subrace
- func NameContains(v string) predicate.Subrace
- func NameContainsFold(v string) predicate.Subrace
- func NameEQ(v string) predicate.Subrace
- func NameEqualFold(v string) predicate.Subrace
- func NameGT(v string) predicate.Subrace
- func NameGTE(v string) predicate.Subrace
- func NameHasPrefix(v string) predicate.Subrace
- func NameHasSuffix(v string) predicate.Subrace
- func NameIn(vs ...string) predicate.Subrace
- func NameLT(v string) predicate.Subrace
- func NameLTE(v string) predicate.Subrace
- func NameNEQ(v string) predicate.Subrace
- func NameNotIn(vs ...string) predicate.Subrace
- func Not(p predicate.Subrace) predicate.Subrace
- func Or(predicates ...predicate.Subrace) predicate.Subrace
- func ValidColumn(column string) bool
- type OrderOption
- func ByAbilityBonuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAbilityBonusesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDesc(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProficiencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProficienciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTraits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTraitsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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.
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 DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func HasAbilityBonuses ¶
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 ¶
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 HasRaceWith ¶
HasRaceWith applies the HasEdge predicate on the "race" edge with a given conditions (other predicates).
func HasTraitsWith ¶
HasTraitsWith applies the HasEdge predicate on the "traits" edge with a given conditions (other predicates).
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 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.