Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v string) predicate.Race
- func AgeContains(v string) predicate.Race
- func AgeContainsFold(v string) predicate.Race
- func AgeEQ(v string) predicate.Race
- func AgeEqualFold(v string) predicate.Race
- func AgeGT(v string) predicate.Race
- func AgeGTE(v string) predicate.Race
- func AgeHasPrefix(v string) predicate.Race
- func AgeHasSuffix(v string) predicate.Race
- func AgeIn(vs ...string) predicate.Race
- func AgeLT(v string) predicate.Race
- func AgeLTE(v string) predicate.Race
- func AgeNEQ(v string) predicate.Race
- func AgeNotIn(vs ...string) predicate.Race
- func Alignment(v string) predicate.Race
- func AlignmentContains(v string) predicate.Race
- func AlignmentContainsFold(v string) predicate.Race
- func AlignmentEQ(v string) predicate.Race
- func AlignmentEqualFold(v string) predicate.Race
- func AlignmentGT(v string) predicate.Race
- func AlignmentGTE(v string) predicate.Race
- func AlignmentHasPrefix(v string) predicate.Race
- func AlignmentHasSuffix(v string) predicate.Race
- func AlignmentIn(vs ...string) predicate.Race
- func AlignmentLT(v string) predicate.Race
- func AlignmentLTE(v string) predicate.Race
- func AlignmentNEQ(v string) predicate.Race
- func AlignmentNotIn(vs ...string) predicate.Race
- func And(predicates ...predicate.Race) predicate.Race
- func HasAbilityBonuses() predicate.Race
- func HasAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.Race
- func HasLanguages() predicate.Race
- func HasLanguagesWith(preds ...predicate.Language) predicate.Race
- func HasProficiencies() predicate.Race
- func HasProficienciesWith(preds ...predicate.Proficiency) predicate.Race
- func HasProficiencyChoice() predicate.Race
- func HasProficiencyChoiceWith(preds ...predicate.ProficiencyChoice) predicate.Race
- func HasSubrace() predicate.Race
- func HasSubraceWith(preds ...predicate.Subrace) predicate.Race
- func HasTraits() predicate.Race
- func HasTraitsWith(preds ...predicate.Trait) predicate.Race
- func ID(id int) predicate.Race
- func IDEQ(id int) predicate.Race
- func IDGT(id int) predicate.Race
- func IDGTE(id int) predicate.Race
- func IDIn(ids ...int) predicate.Race
- func IDLT(id int) predicate.Race
- func IDLTE(id int) predicate.Race
- func IDNEQ(id int) predicate.Race
- func IDNotIn(ids ...int) predicate.Race
- func Indx(v string) predicate.Race
- func IndxContains(v string) predicate.Race
- func IndxContainsFold(v string) predicate.Race
- func IndxEQ(v string) predicate.Race
- func IndxEqualFold(v string) predicate.Race
- func IndxGT(v string) predicate.Race
- func IndxGTE(v string) predicate.Race
- func IndxHasPrefix(v string) predicate.Race
- func IndxHasSuffix(v string) predicate.Race
- func IndxIn(vs ...string) predicate.Race
- func IndxLT(v string) predicate.Race
- func IndxLTE(v string) predicate.Race
- func IndxNEQ(v string) predicate.Race
- func IndxNotIn(vs ...string) predicate.Race
- func LanguageDesc(v string) predicate.Race
- func LanguageDescContains(v string) predicate.Race
- func LanguageDescContainsFold(v string) predicate.Race
- func LanguageDescEQ(v string) predicate.Race
- func LanguageDescEqualFold(v string) predicate.Race
- func LanguageDescGT(v string) predicate.Race
- func LanguageDescGTE(v string) predicate.Race
- func LanguageDescHasPrefix(v string) predicate.Race
- func LanguageDescHasSuffix(v string) predicate.Race
- func LanguageDescIn(vs ...string) predicate.Race
- func LanguageDescLT(v string) predicate.Race
- func LanguageDescLTE(v string) predicate.Race
- func LanguageDescNEQ(v string) predicate.Race
- func LanguageDescNotIn(vs ...string) predicate.Race
- func Name(v string) predicate.Race
- func NameContains(v string) predicate.Race
- func NameContainsFold(v string) predicate.Race
- func NameEQ(v string) predicate.Race
- func NameEqualFold(v string) predicate.Race
- func NameGT(v string) predicate.Race
- func NameGTE(v string) predicate.Race
- func NameHasPrefix(v string) predicate.Race
- func NameHasSuffix(v string) predicate.Race
- func NameIn(vs ...string) predicate.Race
- func NameLT(v string) predicate.Race
- func NameLTE(v string) predicate.Race
- func NameNEQ(v string) predicate.Race
- func NameNotIn(vs ...string) predicate.Race
- func Not(p predicate.Race) predicate.Race
- func Or(predicates ...predicate.Race) predicate.Race
- func Size(v string) predicate.Race
- func SizeContains(v string) predicate.Race
- func SizeContainsFold(v string) predicate.Race
- func SizeDescription(v string) predicate.Race
- func SizeDescriptionContains(v string) predicate.Race
- func SizeDescriptionContainsFold(v string) predicate.Race
- func SizeDescriptionEQ(v string) predicate.Race
- func SizeDescriptionEqualFold(v string) predicate.Race
- func SizeDescriptionGT(v string) predicate.Race
- func SizeDescriptionGTE(v string) predicate.Race
- func SizeDescriptionHasPrefix(v string) predicate.Race
- func SizeDescriptionHasSuffix(v string) predicate.Race
- func SizeDescriptionIn(vs ...string) predicate.Race
- func SizeDescriptionLT(v string) predicate.Race
- func SizeDescriptionLTE(v string) predicate.Race
- func SizeDescriptionNEQ(v string) predicate.Race
- func SizeDescriptionNotIn(vs ...string) predicate.Race
- func SizeEQ(v string) predicate.Race
- func SizeEqualFold(v string) predicate.Race
- func SizeGT(v string) predicate.Race
- func SizeGTE(v string) predicate.Race
- func SizeHasPrefix(v string) predicate.Race
- func SizeHasSuffix(v string) predicate.Race
- func SizeIn(vs ...string) predicate.Race
- func SizeLT(v string) predicate.Race
- func SizeLTE(v string) predicate.Race
- func SizeNEQ(v string) predicate.Race
- func SizeNotIn(vs ...string) predicate.Race
- func Speed(v int) predicate.Race
- func SpeedEQ(v int) predicate.Race
- func SpeedGT(v int) predicate.Race
- func SpeedGTE(v int) predicate.Race
- func SpeedIn(vs ...int) predicate.Race
- func SpeedLT(v int) predicate.Race
- func SpeedLTE(v int) predicate.Race
- func SpeedNEQ(v int) predicate.Race
- func SpeedNotIn(vs ...int) predicate.Race
- func ValidColumn(column string) bool
- type OrderOption
- func ByAbilityBonuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAbilityBonusesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAge(opts ...sql.OrderTermOption) OrderOption
- func ByAlignment(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByLanguageDesc(opts ...sql.OrderTermOption) OrderOption
- func ByLanguages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLanguagesCount(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 ByProficiencyChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProficiencyChoiceCount(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func BySizeDescription(opts ...sql.OrderTermOption) OrderOption
- func BySpeed(opts ...sql.OrderTermOption) OrderOption
- func BySubrace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubraceCount(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 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" // FieldAlignment holds the string denoting the alignment field in the database. FieldAlignment = "alignment" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldSizeDescription holds the string denoting the size_description field in the database. FieldSizeDescription = "size_description" // FieldLanguageDesc holds the string denoting the language_desc field in the database. FieldLanguageDesc = "language_desc" // FieldSpeed holds the string denoting the speed field in the database. FieldSpeed = "speed" // EdgeProficiencies holds the string denoting the proficiencies edge name in mutations. EdgeProficiencies = "proficiencies" // EdgeProficiencyChoice holds the string denoting the proficiency_choice edge name in mutations. EdgeProficiencyChoice = "proficiency_choice" // EdgeLanguages holds the string denoting the languages edge name in mutations. EdgeLanguages = "languages" // EdgeSubrace holds the string denoting the subrace edge name in mutations. EdgeSubrace = "subrace" // 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 race in the database. Table = "races" // ProficienciesTable is the table that holds the proficiencies relation/edge. The primary key declared below. ProficienciesTable = "race_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" // ProficiencyChoiceTable is the table that holds the proficiency_choice relation/edge. The primary key declared below. ProficiencyChoiceTable = "race_proficiency_choice" // ProficiencyChoiceInverseTable is the table name for the ProficiencyChoice entity. // It exists in this package in order to avoid circular dependency with the "proficiencychoice" package. ProficiencyChoiceInverseTable = "proficiency_choices" // 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" // SubraceTable is the table that holds the subrace relation/edge. SubraceTable = "subraces" // SubraceInverseTable is the table name for the Subrace entity. // It exists in this package in order to avoid circular dependency with the "subrace" package. SubraceInverseTable = "subraces" // SubraceColumn is the table column denoting the subrace relation/edge. SubraceColumn = "subrace_race" // 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" // 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 = "race_ability_bonuses" )
Variables ¶
var ( // ProficienciesPrimaryKey and ProficienciesColumn2 are the table columns denoting the // primary key for the proficiencies relation (M2M). ProficienciesPrimaryKey = []string{"race_id", "proficiency_id"} // ProficiencyChoicePrimaryKey and ProficiencyChoiceColumn2 are the table columns denoting the // primary key for the proficiency_choice relation (M2M). ProficiencyChoicePrimaryKey = []string{"race_id", "proficiency_choice_id"} // LanguagesPrimaryKey and LanguagesColumn2 are the table columns denoting the // primary key for the languages relation (M2M). LanguagesPrimaryKey = []string{"race_id", "language_id"} // TraitsPrimaryKey and TraitsColumn2 are the table columns denoting the // primary key for the traits relation (M2M). TraitsPrimaryKey = []string{"race_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 )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldAlignment, FieldAge, FieldSize, FieldSizeDescription, FieldLanguageDesc, FieldSpeed, }
Columns holds all SQL columns for race fields.
Functions ¶
func AgeContains ¶
AgeContains applies the Contains predicate on the "age" field.
func AgeContainsFold ¶
AgeContainsFold applies the ContainsFold predicate on the "age" field.
func AgeEqualFold ¶
AgeEqualFold applies the EqualFold predicate on the "age" field.
func AgeHasPrefix ¶
AgeHasPrefix applies the HasPrefix predicate on the "age" field.
func AgeHasSuffix ¶
AgeHasSuffix applies the HasSuffix predicate on the "age" field.
func Alignment ¶
Alignment applies equality check predicate on the "alignment" field. It's identical to AlignmentEQ.
func AlignmentContains ¶
AlignmentContains applies the Contains predicate on the "alignment" field.
func AlignmentContainsFold ¶
AlignmentContainsFold applies the ContainsFold predicate on the "alignment" field.
func AlignmentEQ ¶
AlignmentEQ applies the EQ predicate on the "alignment" field.
func AlignmentEqualFold ¶
AlignmentEqualFold applies the EqualFold predicate on the "alignment" field.
func AlignmentGT ¶
AlignmentGT applies the GT predicate on the "alignment" field.
func AlignmentGTE ¶
AlignmentGTE applies the GTE predicate on the "alignment" field.
func AlignmentHasPrefix ¶
AlignmentHasPrefix applies the HasPrefix predicate on the "alignment" field.
func AlignmentHasSuffix ¶
AlignmentHasSuffix applies the HasSuffix predicate on the "alignment" field.
func AlignmentIn ¶
AlignmentIn applies the In predicate on the "alignment" field.
func AlignmentLT ¶
AlignmentLT applies the LT predicate on the "alignment" field.
func AlignmentLTE ¶
AlignmentLTE applies the LTE predicate on the "alignment" field.
func AlignmentNEQ ¶
AlignmentNEQ applies the NEQ predicate on the "alignment" field.
func AlignmentNotIn ¶
AlignmentNotIn applies the NotIn predicate on the "alignment" field.
func HasAbilityBonuses ¶
HasAbilityBonuses applies the HasEdge predicate on the "ability_bonuses" edge.
func HasAbilityBonusesWith ¶
func HasAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.Race
HasAbilityBonusesWith applies the HasEdge predicate on the "ability_bonuses" edge with a given conditions (other predicates).
func HasLanguages ¶
HasLanguages applies the HasEdge predicate on the "languages" edge.
func HasLanguagesWith ¶
HasLanguagesWith applies the HasEdge predicate on the "languages" 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.Race
HasProficienciesWith applies the HasEdge predicate on the "proficiencies" edge with a given conditions (other predicates).
func HasProficiencyChoice ¶
HasProficiencyChoice applies the HasEdge predicate on the "proficiency_choice" edge.
func HasProficiencyChoiceWith ¶
func HasProficiencyChoiceWith(preds ...predicate.ProficiencyChoice) predicate.Race
HasProficiencyChoiceWith applies the HasEdge predicate on the "proficiency_choice" edge with a given conditions (other predicates).
func HasSubrace ¶
HasSubrace applies the HasEdge predicate on the "subrace" edge.
func HasSubraceWith ¶
HasSubraceWith applies the HasEdge predicate on the "subrace" 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 LanguageDesc ¶
LanguageDesc applies equality check predicate on the "language_desc" field. It's identical to LanguageDescEQ.
func LanguageDescContains ¶
LanguageDescContains applies the Contains predicate on the "language_desc" field.
func LanguageDescContainsFold ¶
LanguageDescContainsFold applies the ContainsFold predicate on the "language_desc" field.
func LanguageDescEQ ¶
LanguageDescEQ applies the EQ predicate on the "language_desc" field.
func LanguageDescEqualFold ¶
LanguageDescEqualFold applies the EqualFold predicate on the "language_desc" field.
func LanguageDescGT ¶
LanguageDescGT applies the GT predicate on the "language_desc" field.
func LanguageDescGTE ¶
LanguageDescGTE applies the GTE predicate on the "language_desc" field.
func LanguageDescHasPrefix ¶
LanguageDescHasPrefix applies the HasPrefix predicate on the "language_desc" field.
func LanguageDescHasSuffix ¶
LanguageDescHasSuffix applies the HasSuffix predicate on the "language_desc" field.
func LanguageDescIn ¶
LanguageDescIn applies the In predicate on the "language_desc" field.
func LanguageDescLT ¶
LanguageDescLT applies the LT predicate on the "language_desc" field.
func LanguageDescLTE ¶
LanguageDescLTE applies the LTE predicate on the "language_desc" field.
func LanguageDescNEQ ¶
LanguageDescNEQ applies the NEQ predicate on the "language_desc" field.
func LanguageDescNotIn ¶
LanguageDescNotIn applies the NotIn predicate on the "language_desc" 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 SizeContains ¶
SizeContains applies the Contains predicate on the "size" field.
func SizeContainsFold ¶
SizeContainsFold applies the ContainsFold predicate on the "size" field.
func SizeDescription ¶
SizeDescription applies equality check predicate on the "size_description" field. It's identical to SizeDescriptionEQ.
func SizeDescriptionContains ¶
SizeDescriptionContains applies the Contains predicate on the "size_description" field.
func SizeDescriptionContainsFold ¶
SizeDescriptionContainsFold applies the ContainsFold predicate on the "size_description" field.
func SizeDescriptionEQ ¶
SizeDescriptionEQ applies the EQ predicate on the "size_description" field.
func SizeDescriptionEqualFold ¶
SizeDescriptionEqualFold applies the EqualFold predicate on the "size_description" field.
func SizeDescriptionGT ¶
SizeDescriptionGT applies the GT predicate on the "size_description" field.
func SizeDescriptionGTE ¶
SizeDescriptionGTE applies the GTE predicate on the "size_description" field.
func SizeDescriptionHasPrefix ¶
SizeDescriptionHasPrefix applies the HasPrefix predicate on the "size_description" field.
func SizeDescriptionHasSuffix ¶
SizeDescriptionHasSuffix applies the HasSuffix predicate on the "size_description" field.
func SizeDescriptionIn ¶
SizeDescriptionIn applies the In predicate on the "size_description" field.
func SizeDescriptionLT ¶
SizeDescriptionLT applies the LT predicate on the "size_description" field.
func SizeDescriptionLTE ¶
SizeDescriptionLTE applies the LTE predicate on the "size_description" field.
func SizeDescriptionNEQ ¶
SizeDescriptionNEQ applies the NEQ predicate on the "size_description" field.
func SizeDescriptionNotIn ¶
SizeDescriptionNotIn applies the NotIn predicate on the "size_description" field.
func SizeEqualFold ¶
SizeEqualFold applies the EqualFold predicate on the "size" field.
func SizeHasPrefix ¶
SizeHasPrefix applies the HasPrefix predicate on the "size" field.
func SizeHasSuffix ¶
SizeHasSuffix applies the HasSuffix predicate on the "size" field.
func Speed ¶
Speed applies equality check predicate on the "speed" field. It's identical to SpeedEQ.
func SpeedNotIn ¶
SpeedNotIn applies the NotIn predicate on the "speed" 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 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 ByAge ¶
func ByAge(opts ...sql.OrderTermOption) OrderOption
ByAge orders the results by the age field.
func ByAlignment ¶
func ByAlignment(opts ...sql.OrderTermOption) OrderOption
ByAlignment orders the results by the alignment 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 ByLanguageDesc ¶
func ByLanguageDesc(opts ...sql.OrderTermOption) OrderOption
ByLanguageDesc orders the results by the language_desc 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 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 ByProficiencyChoice ¶
func ByProficiencyChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProficiencyChoice orders the results by proficiency_choice terms.
func ByProficiencyChoiceCount ¶
func ByProficiencyChoiceCount(opts ...sql.OrderTermOption) OrderOption
ByProficiencyChoiceCount orders the results by proficiency_choice count.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func BySizeDescription ¶
func BySizeDescription(opts ...sql.OrderTermOption) OrderOption
BySizeDescription orders the results by the size_description field.
func BySpeed ¶
func BySpeed(opts ...sql.OrderTermOption) OrderOption
BySpeed orders the results by the speed field.
func BySubrace ¶
func BySubrace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubrace orders the results by subrace terms.
func BySubraceCount ¶
func BySubraceCount(opts ...sql.OrderTermOption) OrderOption
BySubraceCount orders the results by subrace 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.