proficiency

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 proficiency type in the database.
	Label = "proficiency"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIndx holds the string denoting the indx field in the database.
	FieldIndx = "indx"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldReference holds the string denoting the reference field in the database.
	FieldReference = "reference"
	// EdgeRace holds the string denoting the race edge name in mutations.
	EdgeRace = "race"
	// EdgeOptions holds the string denoting the options edge name in mutations.
	EdgeOptions = "options"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// EdgeCharacterProficiencies holds the string denoting the character_proficiencies edge name in mutations.
	EdgeCharacterProficiencies = "character_proficiencies"
	// Table holds the table name of the proficiency in the database.
	Table = "proficiencies"
	// RaceTable is the table that holds the race relation/edge. The primary key declared below.
	RaceTable = "race_starting_proficiencies"
	// RaceInverseTable is the table name for the Race entity.
	// It exists in this package in order to avoid circular dependency with the "race" package.
	RaceInverseTable = "races"
	// OptionsTable is the table that holds the options relation/edge. The primary key declared below.
	OptionsTable = "proficiency_choice_proficiencies"
	// OptionsInverseTable is the table name for the ProficiencyChoice entity.
	// It exists in this package in order to avoid circular dependency with the "proficiencychoice" package.
	OptionsInverseTable = "proficiency_choices"
	// ClassTable is the table that holds the class relation/edge. The primary key declared below.
	ClassTable = "class_proficiencies"
	// ClassInverseTable is the table name for the Class entity.
	// It exists in this package in order to avoid circular dependency with the "class" package.
	ClassInverseTable = "classes"
	// CharacterProficienciesTable is the table that holds the character_proficiencies relation/edge.
	CharacterProficienciesTable = "character_proficiencies"
	// CharacterProficienciesInverseTable is the table name for the CharacterProficiency entity.
	// It exists in this package in order to avoid circular dependency with the "characterproficiency" package.
	CharacterProficienciesInverseTable = "character_proficiencies"
	// CharacterProficienciesColumn is the table column denoting the character_proficiencies relation/edge.
	CharacterProficienciesColumn = "character_proficiency_proficiency"
)

Variables

View Source
var (
	// RacePrimaryKey and RaceColumn2 are the table columns denoting the
	// primary key for the race relation (M2M).
	RacePrimaryKey = []string{"race_id", "proficiency_id"}
	// OptionsPrimaryKey and OptionsColumn2 are the table columns denoting the
	// primary key for the options relation (M2M).
	OptionsPrimaryKey = []string{"proficiency_choice_id", "proficiency_id"}
	// ClassPrimaryKey and ClassColumn2 are the table columns denoting the
	// primary key for the class relation (M2M).
	ClassPrimaryKey = []string{"class_id", "proficiency_id"}
)
View Source
var (
	// IndxValidator is a validator for the "indx" field. It is called by the builders before save.
	IndxValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ReferenceValidator is a validator for the "reference" field. It is called by the builders before save.
	ReferenceValidator func(string) error
)

Columns holds all SQL columns for proficiency fields.

Functions

func And

func And(predicates ...predicate.Proficiency) predicate.Proficiency

And groups predicates with the AND operator between them.

func HasCharacterProficiencies

func HasCharacterProficiencies() predicate.Proficiency

HasCharacterProficiencies applies the HasEdge predicate on the "character_proficiencies" edge.

func HasCharacterProficienciesWith

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

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

func HasClass

func HasClass() predicate.Proficiency

HasClass applies the HasEdge predicate on the "class" edge.

func HasClassWith

func HasClassWith(preds ...predicate.Class) predicate.Proficiency

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

func HasOptions

func HasOptions() predicate.Proficiency

HasOptions applies the HasEdge predicate on the "options" edge.

func HasOptionsWith

func HasOptionsWith(preds ...predicate.ProficiencyChoice) predicate.Proficiency

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

func HasRace

func HasRace() predicate.Proficiency

HasRace applies the HasEdge predicate on the "race" edge.

func HasRaceWith

func HasRaceWith(preds ...predicate.Race) predicate.Proficiency

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

func ID

func ID(id int) predicate.Proficiency

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Proficiency

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Proficiency

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Proficiency

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Proficiency

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Proficiency

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Proficiency

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Proficiency

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Proficiency

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Proficiency

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Proficiency

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Proficiency

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Proficiency

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Proficiency

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Proficiency

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Proficiency

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Proficiency

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Proficiency

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Proficiency

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Proficiency

IndxNotIn applies the NotIn predicate on the "indx" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Proficiency

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Proficiency

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Proficiency

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Proficiency

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Proficiency

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Proficiency

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Proficiency

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Proficiency

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Proficiency

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Proficiency

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Proficiency

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Proficiency

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Proficiency

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Proficiency) predicate.Proficiency

Or groups predicates with the OR operator between them.

func Reference

func Reference(v string) predicate.Proficiency

Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.

func ReferenceContains

func ReferenceContains(v string) predicate.Proficiency

ReferenceContains applies the Contains predicate on the "reference" field.

func ReferenceContainsFold

func ReferenceContainsFold(v string) predicate.Proficiency

ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.

func ReferenceEQ

func ReferenceEQ(v string) predicate.Proficiency

ReferenceEQ applies the EQ predicate on the "reference" field.

func ReferenceEqualFold

func ReferenceEqualFold(v string) predicate.Proficiency

ReferenceEqualFold applies the EqualFold predicate on the "reference" field.

func ReferenceGT

func ReferenceGT(v string) predicate.Proficiency

ReferenceGT applies the GT predicate on the "reference" field.

func ReferenceGTE

func ReferenceGTE(v string) predicate.Proficiency

ReferenceGTE applies the GTE predicate on the "reference" field.

func ReferenceHasPrefix

func ReferenceHasPrefix(v string) predicate.Proficiency

ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.

func ReferenceHasSuffix

func ReferenceHasSuffix(v string) predicate.Proficiency

ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.

func ReferenceIn

func ReferenceIn(vs ...string) predicate.Proficiency

ReferenceIn applies the In predicate on the "reference" field.

func ReferenceLT

func ReferenceLT(v string) predicate.Proficiency

ReferenceLT applies the LT predicate on the "reference" field.

func ReferenceLTE

func ReferenceLTE(v string) predicate.Proficiency

ReferenceLTE applies the LTE predicate on the "reference" field.

func ReferenceNEQ

func ReferenceNEQ(v string) predicate.Proficiency

ReferenceNEQ applies the NEQ predicate on the "reference" field.

func ReferenceNotIn

func ReferenceNotIn(vs ...string) predicate.Proficiency

ReferenceNotIn applies the NotIn predicate on the "reference" 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 Proficiency queries.

func ByCharacterProficiencies

func ByCharacterProficiencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCharacterProficiencies orders the results by character_proficiencies terms.

func ByCharacterProficienciesCount

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

ByCharacterProficienciesCount orders the results by character_proficiencies count.

func ByClass

func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByClass orders the results by class terms.

func ByClassCount

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

ByClassCount orders the results by class count.

func ByID

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

ByID orders the results by the id field.

func ByIndx

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

ByIndx orders the results by the indx field.

func ByName

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

ByName orders the results by the name field.

func ByOptions

func ByOptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOptions orders the results by options terms.

func ByOptionsCount

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

ByOptionsCount orders the results by options count.

func ByRace

func ByRace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRace orders the results by race terms.

func ByRaceCount

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

ByRaceCount orders the results by race count.

func ByReference

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

ByReference orders the results by the reference field.

Jump to

Keyboard shortcuts

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