Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
- func HasAbilityScore() predicate.CharacterAbilityScore
- func HasAbilityScoreWith(preds ...predicate.AbilityScore) predicate.CharacterAbilityScore
- func HasCharacter() predicate.CharacterAbilityScore
- func HasCharacterSkills() predicate.CharacterAbilityScore
- func HasCharacterSkillsWith(preds ...predicate.CharacterSkill) predicate.CharacterAbilityScore
- func HasCharacterWith(preds ...predicate.Character) predicate.CharacterAbilityScore
- func ID(id int) predicate.CharacterAbilityScore
- func IDEQ(id int) predicate.CharacterAbilityScore
- func IDGT(id int) predicate.CharacterAbilityScore
- func IDGTE(id int) predicate.CharacterAbilityScore
- func IDIn(ids ...int) predicate.CharacterAbilityScore
- func IDLT(id int) predicate.CharacterAbilityScore
- func IDLTE(id int) predicate.CharacterAbilityScore
- func IDNEQ(id int) predicate.CharacterAbilityScore
- func IDNotIn(ids ...int) predicate.CharacterAbilityScore
- func Modifier(v int) predicate.CharacterAbilityScore
- func ModifierEQ(v int) predicate.CharacterAbilityScore
- func ModifierGT(v int) predicate.CharacterAbilityScore
- func ModifierGTE(v int) predicate.CharacterAbilityScore
- func ModifierIn(vs ...int) predicate.CharacterAbilityScore
- func ModifierLT(v int) predicate.CharacterAbilityScore
- func ModifierLTE(v int) predicate.CharacterAbilityScore
- func ModifierNEQ(v int) predicate.CharacterAbilityScore
- func ModifierNotIn(vs ...int) predicate.CharacterAbilityScore
- func Not(p predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
- func Or(predicates ...predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
- func Score(v int) predicate.CharacterAbilityScore
- func ScoreEQ(v int) predicate.CharacterAbilityScore
- func ScoreGT(v int) predicate.CharacterAbilityScore
- func ScoreGTE(v int) predicate.CharacterAbilityScore
- func ScoreIn(vs ...int) predicate.CharacterAbilityScore
- func ScoreLT(v int) predicate.CharacterAbilityScore
- func ScoreLTE(v int) predicate.CharacterAbilityScore
- func ScoreNEQ(v int) predicate.CharacterAbilityScore
- func ScoreNotIn(vs ...int) predicate.CharacterAbilityScore
- func ValidColumn(column string) bool
- type OrderOption
- func ByAbilityScoreField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCharacterField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCharacterSkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCharacterSkillsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModifier(opts ...sql.OrderTermOption) OrderOption
- func ByScore(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the characterabilityscore type in the database. Label = "character_ability_score" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldScore holds the string denoting the score field in the database. FieldScore = "score" // FieldModifier holds the string denoting the modifier field in the database. FieldModifier = "modifier" // EdgeCharacter holds the string denoting the character edge name in mutations. EdgeCharacter = "character" // EdgeAbilityScore holds the string denoting the ability_score edge name in mutations. EdgeAbilityScore = "ability_score" // EdgeCharacterSkills holds the string denoting the character_skills edge name in mutations. EdgeCharacterSkills = "character_skills" // Table holds the table name of the characterabilityscore in the database. Table = "character_ability_scores" // CharacterTable is the table that holds the character relation/edge. CharacterTable = "character_ability_scores" // CharacterInverseTable is the table name for the Character entity. // It exists in this package in order to avoid circular dependency with the "character" package. CharacterInverseTable = "characters" // CharacterColumn is the table column denoting the character relation/edge. CharacterColumn = "character_character_ability_scores" // AbilityScoreTable is the table that holds the ability_score relation/edge. AbilityScoreTable = "character_ability_scores" // AbilityScoreInverseTable is the table name for the AbilityScore entity. // It exists in this package in order to avoid circular dependency with the "abilityscore" package. AbilityScoreInverseTable = "ability_scores" // AbilityScoreColumn is the table column denoting the ability_score relation/edge. AbilityScoreColumn = "character_ability_score_ability_score" // CharacterSkillsTable is the table that holds the character_skills relation/edge. CharacterSkillsTable = "character_skills" // CharacterSkillsInverseTable is the table name for the CharacterSkill entity. // It exists in this package in order to avoid circular dependency with the "characterskill" package. CharacterSkillsInverseTable = "character_skills" // CharacterSkillsColumn is the table column denoting the character_skills relation/edge. CharacterSkillsColumn = "character_skill_character_ability_score" )
Variables ¶
var Columns = []string{ FieldID, FieldScore, FieldModifier, }
Columns holds all SQL columns for characterabilityscore fields.
var ForeignKeys = []string{
"character_character_ability_scores",
"character_ability_score_ability_score",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "character_ability_scores" table and are not defined as standalone fields in the schema.
var ( // ScoreValidator is a validator for the "score" field. It is called by the builders before save. ScoreValidator func(int) error )
Functions ¶
func And ¶
func And(predicates ...predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
And groups predicates with the AND operator between them.
func HasAbilityScore ¶
func HasAbilityScore() predicate.CharacterAbilityScore
HasAbilityScore applies the HasEdge predicate on the "ability_score" edge.
func HasAbilityScoreWith ¶
func HasAbilityScoreWith(preds ...predicate.AbilityScore) predicate.CharacterAbilityScore
HasAbilityScoreWith applies the HasEdge predicate on the "ability_score" edge with a given conditions (other predicates).
func HasCharacter ¶
func HasCharacter() predicate.CharacterAbilityScore
HasCharacter applies the HasEdge predicate on the "character" edge.
func HasCharacterSkills ¶
func HasCharacterSkills() predicate.CharacterAbilityScore
HasCharacterSkills applies the HasEdge predicate on the "character_skills" edge.
func HasCharacterSkillsWith ¶
func HasCharacterSkillsWith(preds ...predicate.CharacterSkill) predicate.CharacterAbilityScore
HasCharacterSkillsWith applies the HasEdge predicate on the "character_skills" edge with a given conditions (other predicates).
func HasCharacterWith ¶
func HasCharacterWith(preds ...predicate.Character) predicate.CharacterAbilityScore
HasCharacterWith applies the HasEdge predicate on the "character" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.CharacterAbilityScore
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.CharacterAbilityScore
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.CharacterAbilityScore
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.CharacterAbilityScore
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.CharacterAbilityScore
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.CharacterAbilityScore
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CharacterAbilityScore
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CharacterAbilityScore
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.CharacterAbilityScore
IDNotIn applies the NotIn predicate on the ID field.
func Modifier ¶
func Modifier(v int) predicate.CharacterAbilityScore
Modifier applies equality check predicate on the "modifier" field. It's identical to ModifierEQ.
func ModifierEQ ¶
func ModifierEQ(v int) predicate.CharacterAbilityScore
ModifierEQ applies the EQ predicate on the "modifier" field.
func ModifierGT ¶
func ModifierGT(v int) predicate.CharacterAbilityScore
ModifierGT applies the GT predicate on the "modifier" field.
func ModifierGTE ¶
func ModifierGTE(v int) predicate.CharacterAbilityScore
ModifierGTE applies the GTE predicate on the "modifier" field.
func ModifierIn ¶
func ModifierIn(vs ...int) predicate.CharacterAbilityScore
ModifierIn applies the In predicate on the "modifier" field.
func ModifierLT ¶
func ModifierLT(v int) predicate.CharacterAbilityScore
ModifierLT applies the LT predicate on the "modifier" field.
func ModifierLTE ¶
func ModifierLTE(v int) predicate.CharacterAbilityScore
ModifierLTE applies the LTE predicate on the "modifier" field.
func ModifierNEQ ¶
func ModifierNEQ(v int) predicate.CharacterAbilityScore
ModifierNEQ applies the NEQ predicate on the "modifier" field.
func ModifierNotIn ¶
func ModifierNotIn(vs ...int) predicate.CharacterAbilityScore
ModifierNotIn applies the NotIn predicate on the "modifier" field.
func Not ¶
func Not(p predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CharacterAbilityScore) predicate.CharacterAbilityScore
Or groups predicates with the OR operator between them.
func Score ¶
func Score(v int) predicate.CharacterAbilityScore
Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.
func ScoreEQ ¶
func ScoreEQ(v int) predicate.CharacterAbilityScore
ScoreEQ applies the EQ predicate on the "score" field.
func ScoreGT ¶
func ScoreGT(v int) predicate.CharacterAbilityScore
ScoreGT applies the GT predicate on the "score" field.
func ScoreGTE ¶
func ScoreGTE(v int) predicate.CharacterAbilityScore
ScoreGTE applies the GTE predicate on the "score" field.
func ScoreIn ¶
func ScoreIn(vs ...int) predicate.CharacterAbilityScore
ScoreIn applies the In predicate on the "score" field.
func ScoreLT ¶
func ScoreLT(v int) predicate.CharacterAbilityScore
ScoreLT applies the LT predicate on the "score" field.
func ScoreLTE ¶
func ScoreLTE(v int) predicate.CharacterAbilityScore
ScoreLTE applies the LTE predicate on the "score" field.
func ScoreNEQ ¶
func ScoreNEQ(v int) predicate.CharacterAbilityScore
ScoreNEQ applies the NEQ predicate on the "score" field.
func ScoreNotIn ¶
func ScoreNotIn(vs ...int) predicate.CharacterAbilityScore
ScoreNotIn applies the NotIn predicate on the "score" 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 CharacterAbilityScore queries.
func ByAbilityScoreField ¶
func ByAbilityScoreField(field string, opts ...sql.OrderTermOption) OrderOption
ByAbilityScoreField orders the results by ability_score field.
func ByCharacterField ¶
func ByCharacterField(field string, opts ...sql.OrderTermOption) OrderOption
ByCharacterField orders the results by character field.
func ByCharacterSkills ¶
func ByCharacterSkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCharacterSkills orders the results by character_skills terms.
func ByCharacterSkillsCount ¶
func ByCharacterSkillsCount(opts ...sql.OrderTermOption) OrderOption
ByCharacterSkillsCount orders the results by character_skills count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByModifier ¶
func ByModifier(opts ...sql.OrderTermOption) OrderOption
ByModifier orders the results by the modifier field.
func ByScore ¶
func ByScore(opts ...sql.OrderTermOption) OrderOption
ByScore orders the results by the score field.