Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AbilityScore) predicate.AbilityScore
- func DescIsNil() predicate.AbilityScore
- func DescNotNil() predicate.AbilityScore
- func FullName(v string) predicate.AbilityScore
- func FullNameContains(v string) predicate.AbilityScore
- func FullNameContainsFold(v string) predicate.AbilityScore
- func FullNameEQ(v string) predicate.AbilityScore
- func FullNameEqualFold(v string) predicate.AbilityScore
- func FullNameGT(v string) predicate.AbilityScore
- func FullNameGTE(v string) predicate.AbilityScore
- func FullNameHasPrefix(v string) predicate.AbilityScore
- func FullNameHasSuffix(v string) predicate.AbilityScore
- func FullNameIn(vs ...string) predicate.AbilityScore
- func FullNameLT(v string) predicate.AbilityScore
- func FullNameLTE(v string) predicate.AbilityScore
- func FullNameNEQ(v string) predicate.AbilityScore
- func FullNameNotIn(vs ...string) predicate.AbilityScore
- func HasCharacterAbilityScore() predicate.AbilityScore
- func HasCharacterAbilityScoreWith(preds ...predicate.CharacterAbilityScore) predicate.AbilityScore
- func HasClasses() predicate.AbilityScore
- func HasClassesWith(preds ...predicate.Class) predicate.AbilityScore
- func HasRace() predicate.AbilityScore
- func HasRaceAbilityBonuses() predicate.AbilityScore
- func HasRaceAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.AbilityScore
- func HasRaceWith(preds ...predicate.Race) predicate.AbilityScore
- func HasSkills() predicate.AbilityScore
- func HasSkillsWith(preds ...predicate.Skill) predicate.AbilityScore
- func ID(id int) predicate.AbilityScore
- func IDEQ(id int) predicate.AbilityScore
- func IDGT(id int) predicate.AbilityScore
- func IDGTE(id int) predicate.AbilityScore
- func IDIn(ids ...int) predicate.AbilityScore
- func IDLT(id int) predicate.AbilityScore
- func IDLTE(id int) predicate.AbilityScore
- func IDNEQ(id int) predicate.AbilityScore
- func IDNotIn(ids ...int) predicate.AbilityScore
- func Indx(v string) predicate.AbilityScore
- func IndxContains(v string) predicate.AbilityScore
- func IndxContainsFold(v string) predicate.AbilityScore
- func IndxEQ(v string) predicate.AbilityScore
- func IndxEqualFold(v string) predicate.AbilityScore
- func IndxGT(v string) predicate.AbilityScore
- func IndxGTE(v string) predicate.AbilityScore
- func IndxHasPrefix(v string) predicate.AbilityScore
- func IndxHasSuffix(v string) predicate.AbilityScore
- func IndxIn(vs ...string) predicate.AbilityScore
- func IndxLT(v string) predicate.AbilityScore
- func IndxLTE(v string) predicate.AbilityScore
- func IndxNEQ(v string) predicate.AbilityScore
- func IndxNotIn(vs ...string) predicate.AbilityScore
- func Name(v string) predicate.AbilityScore
- func NameContains(v string) predicate.AbilityScore
- func NameContainsFold(v string) predicate.AbilityScore
- func NameEQ(v string) predicate.AbilityScore
- func NameEqualFold(v string) predicate.AbilityScore
- func NameGT(v string) predicate.AbilityScore
- func NameGTE(v string) predicate.AbilityScore
- func NameHasPrefix(v string) predicate.AbilityScore
- func NameHasSuffix(v string) predicate.AbilityScore
- func NameIn(vs ...string) predicate.AbilityScore
- func NameLT(v string) predicate.AbilityScore
- func NameLTE(v string) predicate.AbilityScore
- func NameNEQ(v string) predicate.AbilityScore
- func NameNotIn(vs ...string) predicate.AbilityScore
- func Not(p predicate.AbilityScore) predicate.AbilityScore
- func Or(predicates ...predicate.AbilityScore) predicate.AbilityScore
- func ValidColumn(column string) bool
- type OrderOption
- func ByCharacterAbilityScore(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCharacterAbilityScoreCount(opts ...sql.OrderTermOption) OrderOption
- func ByClasses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassesCount(opts ...sql.OrderTermOption) OrderOption
- func ByFullName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRaceAbilityBonuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRaceAbilityBonusesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRaceCount(opts ...sql.OrderTermOption) OrderOption
- func BySkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySkillsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the abilityscore type in the database. Label = "ability_score" // 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" // FieldFullName holds the string denoting the full_name field in the database. FieldFullName = "full_name" // EdgeSkills holds the string denoting the skills edge name in mutations. EdgeSkills = "skills" // EdgeCharacterAbilityScore holds the string denoting the character_ability_score edge name in mutations. EdgeCharacterAbilityScore = "character_ability_score" // EdgeClasses holds the string denoting the classes edge name in mutations. EdgeClasses = "classes" // EdgeRace holds the string denoting the race edge name in mutations. EdgeRace = "race" // EdgeRaceAbilityBonuses holds the string denoting the race_ability_bonuses edge name in mutations. EdgeRaceAbilityBonuses = "race_ability_bonuses" // Table holds the table name of the abilityscore in the database. Table = "ability_scores" // SkillsTable is the table that holds the skills relation/edge. SkillsTable = "skills" // SkillsInverseTable is the table name for the Skill entity. // It exists in this package in order to avoid circular dependency with the "skill" package. SkillsInverseTable = "skills" // SkillsColumn is the table column denoting the skills relation/edge. SkillsColumn = "ability_score_skills" // CharacterAbilityScoreTable is the table that holds the character_ability_score relation/edge. CharacterAbilityScoreTable = "character_ability_scores" // CharacterAbilityScoreInverseTable is the table name for the CharacterAbilityScore entity. // It exists in this package in order to avoid circular dependency with the "characterabilityscore" package. CharacterAbilityScoreInverseTable = "character_ability_scores" // CharacterAbilityScoreColumn is the table column denoting the character_ability_score relation/edge. CharacterAbilityScoreColumn = "character_ability_score_ability_score" // ClassesTable is the table that holds the classes relation/edge. The primary key declared below. ClassesTable = "class_saving_throws" // ClassesInverseTable is the table name for the Class entity. // It exists in this package in order to avoid circular dependency with the "class" package. ClassesInverseTable = "classes" // RaceTable is the table that holds the race relation/edge. The primary key declared below. RaceTable = "ability_bonus" // 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" // 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 = "ability_score_id" )
Variables ¶
var ( // ClassesPrimaryKey and ClassesColumn2 are the table columns denoting the // primary key for the classes relation (M2M). ClassesPrimaryKey = []string{"class_id", "ability_score_id"} // RacePrimaryKey and RaceColumn2 are the table columns denoting the // primary key for the race relation (M2M). RacePrimaryKey = []string{"race_id", "ability_score_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, FieldDesc, FieldFullName, }
Columns holds all SQL columns for abilityscore fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AbilityScore) predicate.AbilityScore
And groups predicates with the AND operator between them.
func DescIsNil ¶
func DescIsNil() predicate.AbilityScore
DescIsNil applies the IsNil predicate on the "desc" field.
func DescNotNil ¶
func DescNotNil() predicate.AbilityScore
DescNotNil applies the NotNil predicate on the "desc" field.
func FullName ¶
func FullName(v string) predicate.AbilityScore
FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.
func FullNameContains ¶
func FullNameContains(v string) predicate.AbilityScore
FullNameContains applies the Contains predicate on the "full_name" field.
func FullNameContainsFold ¶
func FullNameContainsFold(v string) predicate.AbilityScore
FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.
func FullNameEQ ¶
func FullNameEQ(v string) predicate.AbilityScore
FullNameEQ applies the EQ predicate on the "full_name" field.
func FullNameEqualFold ¶
func FullNameEqualFold(v string) predicate.AbilityScore
FullNameEqualFold applies the EqualFold predicate on the "full_name" field.
func FullNameGT ¶
func FullNameGT(v string) predicate.AbilityScore
FullNameGT applies the GT predicate on the "full_name" field.
func FullNameGTE ¶
func FullNameGTE(v string) predicate.AbilityScore
FullNameGTE applies the GTE predicate on the "full_name" field.
func FullNameHasPrefix ¶
func FullNameHasPrefix(v string) predicate.AbilityScore
FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.
func FullNameHasSuffix ¶
func FullNameHasSuffix(v string) predicate.AbilityScore
FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.
func FullNameIn ¶
func FullNameIn(vs ...string) predicate.AbilityScore
FullNameIn applies the In predicate on the "full_name" field.
func FullNameLT ¶
func FullNameLT(v string) predicate.AbilityScore
FullNameLT applies the LT predicate on the "full_name" field.
func FullNameLTE ¶
func FullNameLTE(v string) predicate.AbilityScore
FullNameLTE applies the LTE predicate on the "full_name" field.
func FullNameNEQ ¶
func FullNameNEQ(v string) predicate.AbilityScore
FullNameNEQ applies the NEQ predicate on the "full_name" field.
func FullNameNotIn ¶
func FullNameNotIn(vs ...string) predicate.AbilityScore
FullNameNotIn applies the NotIn predicate on the "full_name" field.
func HasCharacterAbilityScore ¶
func HasCharacterAbilityScore() predicate.AbilityScore
HasCharacterAbilityScore applies the HasEdge predicate on the "character_ability_score" edge.
func HasCharacterAbilityScoreWith ¶
func HasCharacterAbilityScoreWith(preds ...predicate.CharacterAbilityScore) predicate.AbilityScore
HasCharacterAbilityScoreWith applies the HasEdge predicate on the "character_ability_score" edge with a given conditions (other predicates).
func HasClasses ¶
func HasClasses() predicate.AbilityScore
HasClasses applies the HasEdge predicate on the "classes" edge.
func HasClassesWith ¶
func HasClassesWith(preds ...predicate.Class) predicate.AbilityScore
HasClassesWith applies the HasEdge predicate on the "classes" edge with a given conditions (other predicates).
func HasRace ¶
func HasRace() predicate.AbilityScore
HasRace applies the HasEdge predicate on the "race" edge.
func HasRaceAbilityBonuses ¶
func HasRaceAbilityBonuses() predicate.AbilityScore
HasRaceAbilityBonuses applies the HasEdge predicate on the "race_ability_bonuses" edge.
func HasRaceAbilityBonusesWith ¶
func HasRaceAbilityBonusesWith(preds ...predicate.AbilityBonus) predicate.AbilityScore
HasRaceAbilityBonusesWith applies the HasEdge predicate on the "race_ability_bonuses" edge with a given conditions (other predicates).
func HasRaceWith ¶
func HasRaceWith(preds ...predicate.Race) predicate.AbilityScore
HasRaceWith applies the HasEdge predicate on the "race" edge with a given conditions (other predicates).
func HasSkills ¶
func HasSkills() predicate.AbilityScore
HasSkills applies the HasEdge predicate on the "skills" edge.
func HasSkillsWith ¶
func HasSkillsWith(preds ...predicate.Skill) predicate.AbilityScore
HasSkillsWith applies the HasEdge predicate on the "skills" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.AbilityScore
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.AbilityScore
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.AbilityScore
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.AbilityScore
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.AbilityScore
IDNotIn applies the NotIn predicate on the ID field.
func Indx ¶
func Indx(v string) predicate.AbilityScore
Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.
func IndxContains ¶
func IndxContains(v string) predicate.AbilityScore
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
func IndxContainsFold(v string) predicate.AbilityScore
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEQ ¶
func IndxEQ(v string) predicate.AbilityScore
IndxEQ applies the EQ predicate on the "indx" field.
func IndxEqualFold ¶
func IndxEqualFold(v string) predicate.AbilityScore
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxGT ¶
func IndxGT(v string) predicate.AbilityScore
IndxGT applies the GT predicate on the "indx" field.
func IndxGTE ¶
func IndxGTE(v string) predicate.AbilityScore
IndxGTE applies the GTE predicate on the "indx" field.
func IndxHasPrefix ¶
func IndxHasPrefix(v string) predicate.AbilityScore
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
func IndxHasSuffix(v string) predicate.AbilityScore
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func IndxIn ¶
func IndxIn(vs ...string) predicate.AbilityScore
IndxIn applies the In predicate on the "indx" field.
func IndxLT ¶
func IndxLT(v string) predicate.AbilityScore
IndxLT applies the LT predicate on the "indx" field.
func IndxLTE ¶
func IndxLTE(v string) predicate.AbilityScore
IndxLTE applies the LTE predicate on the "indx" field.
func IndxNEQ ¶
func IndxNEQ(v string) predicate.AbilityScore
IndxNEQ applies the NEQ predicate on the "indx" field.
func IndxNotIn ¶
func IndxNotIn(vs ...string) predicate.AbilityScore
IndxNotIn applies the NotIn predicate on the "indx" field.
func Name ¶
func Name(v string) predicate.AbilityScore
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.AbilityScore
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.AbilityScore
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.AbilityScore
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.AbilityScore
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.AbilityScore
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.AbilityScore
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.AbilityScore
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.AbilityScore
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.AbilityScore
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.AbilityScore
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.AbilityScore
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.AbilityScore
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.AbilityScore
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.AbilityScore) predicate.AbilityScore
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AbilityScore) predicate.AbilityScore
Or groups predicates with the OR operator between them.
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 AbilityScore queries.
func ByCharacterAbilityScore ¶
func ByCharacterAbilityScore(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCharacterAbilityScore orders the results by character_ability_score terms.
func ByCharacterAbilityScoreCount ¶
func ByCharacterAbilityScoreCount(opts ...sql.OrderTermOption) OrderOption
ByCharacterAbilityScoreCount orders the results by character_ability_score count.
func ByClasses ¶
func ByClasses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByClasses orders the results by classes terms.
func ByClassesCount ¶
func ByClassesCount(opts ...sql.OrderTermOption) OrderOption
ByClassesCount orders the results by classes count.
func ByFullName ¶
func ByFullName(opts ...sql.OrderTermOption) OrderOption
ByFullName orders the results by the full_name 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 ByRace ¶
func ByRace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRace orders the results by race terms.
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 ByRaceCount ¶
func ByRaceCount(opts ...sql.OrderTermOption) OrderOption
ByRaceCount orders the results by race count.
func BySkills ¶
func BySkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySkills orders the results by skills terms.
func BySkillsCount ¶
func BySkillsCount(opts ...sql.OrderTermOption) OrderOption
BySkillsCount orders the results by skills count.