characterskill

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 characterskill type in the database.
	Label = "character_skill"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProficient holds the string denoting the proficient field in the database.
	FieldProficient = "proficient"
	// EdgeCharacter holds the string denoting the character edge name in mutations.
	EdgeCharacter = "character"
	// EdgeSkill holds the string denoting the skill edge name in mutations.
	EdgeSkill = "skill"
	// EdgeCharacterAbilityScore holds the string denoting the character_ability_score edge name in mutations.
	EdgeCharacterAbilityScore = "character_ability_score"
	// EdgeCharacterProficiency holds the string denoting the character_proficiency edge name in mutations.
	EdgeCharacterProficiency = "character_proficiency"
	// Table holds the table name of the characterskill in the database.
	Table = "character_skills"
	// CharacterTable is the table that holds the character relation/edge.
	CharacterTable = "character_skills"
	// 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_skills"
	// SkillTable is the table that holds the skill relation/edge.
	SkillTable = "character_skills"
	// SkillInverseTable is the table name for the Skill entity.
	// It exists in this package in order to avoid circular dependency with the "skill" package.
	SkillInverseTable = "skills"
	// SkillColumn is the table column denoting the skill relation/edge.
	SkillColumn = "character_skill_skill"
	// CharacterAbilityScoreTable is the table that holds the character_ability_score relation/edge.
	CharacterAbilityScoreTable = "character_skills"
	// 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_skill_character_ability_score"
	// CharacterProficiencyTable is the table that holds the character_proficiency relation/edge.
	CharacterProficiencyTable = "character_proficiencies"
	// CharacterProficiencyInverseTable is the table name for the CharacterProficiency entity.
	// It exists in this package in order to avoid circular dependency with the "characterproficiency" package.
	CharacterProficiencyInverseTable = "character_proficiencies"
	// CharacterProficiencyColumn is the table column denoting the character_proficiency relation/edge.
	CharacterProficiencyColumn = "character_skill_character_proficiency"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldProficient,
}

Columns holds all SQL columns for characterskill fields.

View Source
var (
	// DefaultProficient holds the default value on creation for the "proficient" field.
	DefaultProficient bool
)
View Source
var ForeignKeys = []string{
	"character_character_skills",
	"character_skill_skill",
	"character_skill_character_ability_score",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "character_skills" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasCharacter

func HasCharacter() predicate.CharacterSkill

HasCharacter applies the HasEdge predicate on the "character" edge.

func HasCharacterAbilityScore

func HasCharacterAbilityScore() predicate.CharacterSkill

HasCharacterAbilityScore applies the HasEdge predicate on the "character_ability_score" edge.

func HasCharacterAbilityScoreWith

func HasCharacterAbilityScoreWith(preds ...predicate.CharacterAbilityScore) predicate.CharacterSkill

HasCharacterAbilityScoreWith applies the HasEdge predicate on the "character_ability_score" edge with a given conditions (other predicates).

func HasCharacterProficiency

func HasCharacterProficiency() predicate.CharacterSkill

HasCharacterProficiency applies the HasEdge predicate on the "character_proficiency" edge.

func HasCharacterProficiencyWith

func HasCharacterProficiencyWith(preds ...predicate.CharacterProficiency) predicate.CharacterSkill

HasCharacterProficiencyWith applies the HasEdge predicate on the "character_proficiency" edge with a given conditions (other predicates).

func HasCharacterWith

func HasCharacterWith(preds ...predicate.Character) predicate.CharacterSkill

HasCharacterWith applies the HasEdge predicate on the "character" edge with a given conditions (other predicates).

func HasSkill

func HasSkill() predicate.CharacterSkill

HasSkill applies the HasEdge predicate on the "skill" edge.

func HasSkillWith

func HasSkillWith(preds ...predicate.Skill) predicate.CharacterSkill

HasSkillWith applies the HasEdge predicate on the "skill" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CharacterSkill

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CharacterSkill

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CharacterSkill

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.CharacterSkill

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CharacterSkill

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CharacterSkill

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CharacterSkill

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.CharacterSkill

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Proficient

func Proficient(v bool) predicate.CharacterSkill

Proficient applies equality check predicate on the "proficient" field. It's identical to ProficientEQ.

func ProficientEQ

func ProficientEQ(v bool) predicate.CharacterSkill

ProficientEQ applies the EQ predicate on the "proficient" field.

func ProficientNEQ

func ProficientNEQ(v bool) predicate.CharacterSkill

ProficientNEQ applies the NEQ predicate on the "proficient" 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 CharacterSkill queries.

func ByCharacterAbilityScoreField

func ByCharacterAbilityScoreField(field string, opts ...sql.OrderTermOption) OrderOption

ByCharacterAbilityScoreField orders the results by character_ability_score field.

func ByCharacterField

func ByCharacterField(field string, opts ...sql.OrderTermOption) OrderOption

ByCharacterField orders the results by character field.

func ByCharacterProficiencyField

func ByCharacterProficiencyField(field string, opts ...sql.OrderTermOption) OrderOption

ByCharacterProficiencyField orders the results by character_proficiency field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByProficient

func ByProficient(opts ...sql.OrderTermOption) OrderOption

ByProficient orders the results by the proficient field.

func BySkillField

func BySkillField(field string, opts ...sql.OrderTermOption) OrderOption

BySkillField orders the results by skill field.

Jump to

Keyboard shortcuts

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