characterproficiency

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the characterproficiency type in the database.
	Label = "character_proficiency"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProficiencyType holds the string denoting the proficiency_type field in the database.
	FieldProficiencyType = "proficiency_type"
	// FieldProficiencySource holds the string denoting the proficiency_source field in the database.
	FieldProficiencySource = "proficiency_source"
	// EdgeCharacter holds the string denoting the character edge name in mutations.
	EdgeCharacter = "character"
	// EdgeProficiency holds the string denoting the proficiency edge name in mutations.
	EdgeProficiency = "proficiency"
	// EdgeCharacterSkill holds the string denoting the character_skill edge name in mutations.
	EdgeCharacterSkill = "character_skill"
	// Table holds the table name of the characterproficiency in the database.
	Table = "character_proficiencies"
	// CharacterTable is the table that holds the character relation/edge.
	CharacterTable = "character_proficiencies"
	// 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_proficiencies"
	// ProficiencyTable is the table that holds the proficiency relation/edge.
	ProficiencyTable = "character_proficiencies"
	// ProficiencyInverseTable is the table name for the Proficiency entity.
	// It exists in this package in order to avoid circular dependency with the "proficiency" package.
	ProficiencyInverseTable = "proficiencies"
	// ProficiencyColumn is the table column denoting the proficiency relation/edge.
	ProficiencyColumn = "character_proficiency_proficiency"
	// CharacterSkillTable is the table that holds the character_skill relation/edge.
	CharacterSkillTable = "character_proficiencies"
	// CharacterSkillInverseTable is the table name for the CharacterSkill entity.
	// It exists in this package in order to avoid circular dependency with the "characterskill" package.
	CharacterSkillInverseTable = "character_skills"
	// CharacterSkillColumn is the table column denoting the character_skill relation/edge.
	CharacterSkillColumn = "character_skill_character_proficiency"
)

Variables

Columns holds all SQL columns for characterproficiency fields.

View Source
var ForeignKeys = []string{
	"character_character_proficiencies",
	"character_proficiency_proficiency",
	"character_skill_character_proficiency",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "character_proficiencies" 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.CharacterProficiency

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

func HasCharacterSkill

func HasCharacterSkill() predicate.CharacterProficiency

HasCharacterSkill applies the HasEdge predicate on the "character_skill" edge.

func HasCharacterSkillWith

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

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

func HasCharacterWith

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

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

func HasProficiency

func HasProficiency() predicate.CharacterProficiency

HasProficiency applies the HasEdge predicate on the "proficiency" edge.

func HasProficiencyWith

func HasProficiencyWith(preds ...predicate.Proficiency) predicate.CharacterProficiency

HasProficiencyWith applies the HasEdge predicate on the "proficiency" 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.CharacterProficiency

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

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 ProficiencySourceEQ

func ProficiencySourceEQ(v ProficiencySource) predicate.CharacterProficiency

ProficiencySourceEQ applies the EQ predicate on the "proficiency_source" field.

func ProficiencySourceIn

func ProficiencySourceIn(vs ...ProficiencySource) predicate.CharacterProficiency

ProficiencySourceIn applies the In predicate on the "proficiency_source" field.

func ProficiencySourceNEQ

func ProficiencySourceNEQ(v ProficiencySource) predicate.CharacterProficiency

ProficiencySourceNEQ applies the NEQ predicate on the "proficiency_source" field.

func ProficiencySourceNotIn

func ProficiencySourceNotIn(vs ...ProficiencySource) predicate.CharacterProficiency

ProficiencySourceNotIn applies the NotIn predicate on the "proficiency_source" field.

func ProficiencySourceValidator

func ProficiencySourceValidator(ps ProficiencySource) error

ProficiencySourceValidator is a validator for the "proficiency_source" field enum values. It is called by the builders before save.

func ProficiencyTypeEQ

func ProficiencyTypeEQ(v ProficiencyType) predicate.CharacterProficiency

ProficiencyTypeEQ applies the EQ predicate on the "proficiency_type" field.

func ProficiencyTypeIn

func ProficiencyTypeIn(vs ...ProficiencyType) predicate.CharacterProficiency

ProficiencyTypeIn applies the In predicate on the "proficiency_type" field.

func ProficiencyTypeNEQ

func ProficiencyTypeNEQ(v ProficiencyType) predicate.CharacterProficiency

ProficiencyTypeNEQ applies the NEQ predicate on the "proficiency_type" field.

func ProficiencyTypeNotIn

func ProficiencyTypeNotIn(vs ...ProficiencyType) predicate.CharacterProficiency

ProficiencyTypeNotIn applies the NotIn predicate on the "proficiency_type" field.

func ProficiencyTypeValidator

func ProficiencyTypeValidator(pt ProficiencyType) error

ProficiencyTypeValidator is a validator for the "proficiency_type" field enum values. It is called by the builders before save.

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

func ByCharacterField

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

ByCharacterField orders the results by character field.

func ByCharacterSkillField

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

ByCharacterSkillField orders the results by character_skill field.

func ByID

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

ByID orders the results by the id field.

func ByProficiencyField

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

ByProficiencyField orders the results by proficiency field.

func ByProficiencySource

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

ByProficiencySource orders the results by the proficiency_source field.

func ByProficiencyType

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

ByProficiencyType orders the results by the proficiency_type field.

type ProficiencySource

type ProficiencySource string

ProficiencySource defines the type for the "proficiency_source" enum field.

const (
	ProficiencySourceCLASS_PROFICIENCY ProficiencySource = "CLASS_PROFICIENCY"
	ProficiencySourceRACE_PROFICIENCY  ProficiencySource = "RACE_PROFICIENCY"
	ProficiencySourceCLASS_CHOICE      ProficiencySource = "CLASS_CHOICE"
	ProficiencySourceRACE_CHOICE       ProficiencySource = "RACE_CHOICE"
	ProficiencySourceOTHER             ProficiencySource = "OTHER"
)

ProficiencySource values.

func (ProficiencySource) MarshalGQL

func (e ProficiencySource) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ProficiencySource) String

func (ps ProficiencySource) String() string

func (*ProficiencySource) UnmarshalGQL

func (e *ProficiencySource) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ProficiencyType

type ProficiencyType string

ProficiencyType defines the type for the "proficiency_type" enum field.

const (
	ProficiencyTypeSKILL              ProficiencyType = "SKILL"
	ProficiencyTypeEQUIPMENT          ProficiencyType = "EQUIPMENT"
	ProficiencyTypeEQUIPMENT_CATEGORY ProficiencyType = "EQUIPMENT_CATEGORY"
	ProficiencyTypeSAVING_THROW       ProficiencyType = "SAVING_THROW"
	ProficiencyTypeOTHER              ProficiencyType = "OTHER"
)

ProficiencyType values.

func (ProficiencyType) MarshalGQL

func (e ProficiencyType) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ProficiencyType) String

func (pt ProficiencyType) String() string

func (*ProficiencyType) UnmarshalGQL

func (e *ProficiencyType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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