Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CharacterProficiency) predicate.CharacterProficiency
- func HasCharacter() predicate.CharacterProficiency
- func HasCharacterSkill() predicate.CharacterProficiency
- func HasCharacterSkillWith(preds ...predicate.CharacterSkill) predicate.CharacterProficiency
- func HasCharacterWith(preds ...predicate.Character) predicate.CharacterProficiency
- func HasProficiency() predicate.CharacterProficiency
- func HasProficiencyWith(preds ...predicate.Proficiency) predicate.CharacterProficiency
- func ID(id int) predicate.CharacterProficiency
- func IDEQ(id int) predicate.CharacterProficiency
- func IDGT(id int) predicate.CharacterProficiency
- func IDGTE(id int) predicate.CharacterProficiency
- func IDIn(ids ...int) predicate.CharacterProficiency
- func IDLT(id int) predicate.CharacterProficiency
- func IDLTE(id int) predicate.CharacterProficiency
- func IDNEQ(id int) predicate.CharacterProficiency
- func IDNotIn(ids ...int) predicate.CharacterProficiency
- func Not(p predicate.CharacterProficiency) predicate.CharacterProficiency
- func Or(predicates ...predicate.CharacterProficiency) predicate.CharacterProficiency
- func ProficiencySourceEQ(v ProficiencySource) predicate.CharacterProficiency
- func ProficiencySourceIn(vs ...ProficiencySource) predicate.CharacterProficiency
- func ProficiencySourceNEQ(v ProficiencySource) predicate.CharacterProficiency
- func ProficiencySourceNotIn(vs ...ProficiencySource) predicate.CharacterProficiency
- func ProficiencySourceValidator(ps ProficiencySource) error
- func ProficiencyTypeEQ(v ProficiencyType) predicate.CharacterProficiency
- func ProficiencyTypeIn(vs ...ProficiencyType) predicate.CharacterProficiency
- func ProficiencyTypeNEQ(v ProficiencyType) predicate.CharacterProficiency
- func ProficiencyTypeNotIn(vs ...ProficiencyType) predicate.CharacterProficiency
- func ProficiencyTypeValidator(pt ProficiencyType) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByCharacterField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCharacterSkillField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProficiencyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProficiencySource(opts ...sql.OrderTermOption) OrderOption
- func ByProficiencyType(opts ...sql.OrderTermOption) OrderOption
- type ProficiencySource
- type ProficiencyType
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldProficiencyType, FieldProficiencySource, }
Columns holds all SQL columns for characterproficiency fields.
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 ¶
func And(predicates ...predicate.CharacterProficiency) predicate.CharacterProficiency
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 ¶
func ID(id int) predicate.CharacterProficiency
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.CharacterProficiency
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.CharacterProficiency
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.CharacterProficiency
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 ¶
func IDLT(id int) predicate.CharacterProficiency
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CharacterProficiency
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CharacterProficiency
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 ¶
func Not(p predicate.CharacterProficiency) predicate.CharacterProficiency
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CharacterProficiency) predicate.CharacterProficiency
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.