characterabilityscore

package
v0.0.0-...-67bf1eb Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for characterabilityscore fields.

View Source
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.

View Source
var (
	// ScoreValidator is a validator for the "score" field. It is called by the builders before save.
	ScoreValidator func(int) error
)

Functions

func And

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Score

Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.

func ScoreEQ

ScoreEQ applies the EQ predicate on the "score" field.

func ScoreGT

ScoreGT applies the GT predicate on the "score" field.

func ScoreGTE

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

ScoreLT applies the LT predicate on the "score" field.

func ScoreLTE

ScoreLTE applies the LTE predicate on the "score" field.

func ScoreNEQ

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

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 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.

Jump to

Keyboard shortcuts

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