Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
- func Choose(v int) predicate.ProficiencyChoice
- func ChooseEQ(v int) predicate.ProficiencyChoice
- func ChooseGT(v int) predicate.ProficiencyChoice
- func ChooseGTE(v int) predicate.ProficiencyChoice
- func ChooseIn(vs ...int) predicate.ProficiencyChoice
- func ChooseLT(v int) predicate.ProficiencyChoice
- func ChooseLTE(v int) predicate.ProficiencyChoice
- func ChooseNEQ(v int) predicate.ProficiencyChoice
- func ChooseNotIn(vs ...int) predicate.ProficiencyChoice
- func Desc(v string) predicate.ProficiencyChoice
- func DescContains(v string) predicate.ProficiencyChoice
- func DescContainsFold(v string) predicate.ProficiencyChoice
- func DescEQ(v string) predicate.ProficiencyChoice
- func DescEqualFold(v string) predicate.ProficiencyChoice
- func DescGT(v string) predicate.ProficiencyChoice
- func DescGTE(v string) predicate.ProficiencyChoice
- func DescHasPrefix(v string) predicate.ProficiencyChoice
- func DescHasSuffix(v string) predicate.ProficiencyChoice
- func DescIn(vs ...string) predicate.ProficiencyChoice
- func DescIsNil() predicate.ProficiencyChoice
- func DescLT(v string) predicate.ProficiencyChoice
- func DescLTE(v string) predicate.ProficiencyChoice
- func DescNEQ(v string) predicate.ProficiencyChoice
- func DescNotIn(vs ...string) predicate.ProficiencyChoice
- func DescNotNil() predicate.ProficiencyChoice
- func HasClass() predicate.ProficiencyChoice
- func HasClassWith(preds ...predicate.Class) predicate.ProficiencyChoice
- func HasParentChoice() predicate.ProficiencyChoice
- func HasParentChoiceWith(preds ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
- func HasProficiency() predicate.ProficiencyChoice
- func HasProficiencyWith(preds ...predicate.Proficiency) predicate.ProficiencyChoice
- func HasRace() predicate.ProficiencyChoice
- func HasRaceWith(preds ...predicate.Race) predicate.ProficiencyChoice
- func HasSubChoice() predicate.ProficiencyChoice
- func HasSubChoiceWith(preds ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
- func ID(id int) predicate.ProficiencyChoice
- func IDEQ(id int) predicate.ProficiencyChoice
- func IDGT(id int) predicate.ProficiencyChoice
- func IDGTE(id int) predicate.ProficiencyChoice
- func IDIn(ids ...int) predicate.ProficiencyChoice
- func IDLT(id int) predicate.ProficiencyChoice
- func IDLTE(id int) predicate.ProficiencyChoice
- func IDNEQ(id int) predicate.ProficiencyChoice
- func IDNotIn(ids ...int) predicate.ProficiencyChoice
- func Not(p predicate.ProficiencyChoice) predicate.ProficiencyChoice
- func Or(predicates ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
- func ValidColumn(column string) bool
- type OrderOption
- func ByChoose(opts ...sql.OrderTermOption) OrderOption
- func ByClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassCount(opts ...sql.OrderTermOption) OrderOption
- func ByDesc(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByParentChoiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProficiency(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProficiencyCount(opts ...sql.OrderTermOption) OrderOption
- func ByRace(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRaceCount(opts ...sql.OrderTermOption) OrderOption
- func BySubChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubChoiceCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proficiencychoice type in the database. Label = "proficiency_choice" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChoose holds the string denoting the choose field in the database. FieldChoose = "choose" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeProficiency holds the string denoting the proficiency edge name in mutations. EdgeProficiency = "proficiency" // EdgeParentChoice holds the string denoting the parent_choice edge name in mutations. EdgeParentChoice = "parent_choice" // EdgeSubChoice holds the string denoting the sub_choice edge name in mutations. EdgeSubChoice = "sub_choice" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // EdgeRace holds the string denoting the race edge name in mutations. EdgeRace = "race" // Table holds the table name of the proficiencychoice in the database. Table = "proficiency_choices" // ProficiencyTable is the table that holds the proficiency relation/edge. The primary key declared below. ProficiencyTable = "proficiency_choice" // 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" // ParentChoiceTable is the table that holds the parent_choice relation/edge. ParentChoiceTable = "proficiency_choices" // ParentChoiceColumn is the table column denoting the parent_choice relation/edge. ParentChoiceColumn = "proficiency_choice_sub_choice" // SubChoiceTable is the table that holds the sub_choice relation/edge. SubChoiceTable = "proficiency_choices" // SubChoiceColumn is the table column denoting the sub_choice relation/edge. SubChoiceColumn = "proficiency_choice_sub_choice" // ClassTable is the table that holds the class relation/edge. The primary key declared below. ClassTable = "class_proficiency_choices" // 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" // RaceTable is the table that holds the race relation/edge. The primary key declared below. RaceTable = "race_proficiency_choice" // 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" )
Variables ¶
var ( // ProficiencyPrimaryKey and ProficiencyColumn2 are the table columns denoting the // primary key for the proficiency relation (M2M). ProficiencyPrimaryKey = []string{"proficiency_id", "proficiency_choice_id"} // ClassPrimaryKey and ClassColumn2 are the table columns denoting the // primary key for the class relation (M2M). ClassPrimaryKey = []string{"class_id", "proficiency_choice_id"} // RacePrimaryKey and RaceColumn2 are the table columns denoting the // primary key for the race relation (M2M). RacePrimaryKey = []string{"race_id", "proficiency_choice_id"} )
var Columns = []string{ FieldID, FieldChoose, FieldDesc, }
Columns holds all SQL columns for proficiencychoice fields.
var ForeignKeys = []string{
"proficiency_choice_sub_choice",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "proficiency_choices" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
And groups predicates with the AND operator between them.
func Choose ¶
func Choose(v int) predicate.ProficiencyChoice
Choose applies equality check predicate on the "choose" field. It's identical to ChooseEQ.
func ChooseEQ ¶
func ChooseEQ(v int) predicate.ProficiencyChoice
ChooseEQ applies the EQ predicate on the "choose" field.
func ChooseGT ¶
func ChooseGT(v int) predicate.ProficiencyChoice
ChooseGT applies the GT predicate on the "choose" field.
func ChooseGTE ¶
func ChooseGTE(v int) predicate.ProficiencyChoice
ChooseGTE applies the GTE predicate on the "choose" field.
func ChooseIn ¶
func ChooseIn(vs ...int) predicate.ProficiencyChoice
ChooseIn applies the In predicate on the "choose" field.
func ChooseLT ¶
func ChooseLT(v int) predicate.ProficiencyChoice
ChooseLT applies the LT predicate on the "choose" field.
func ChooseLTE ¶
func ChooseLTE(v int) predicate.ProficiencyChoice
ChooseLTE applies the LTE predicate on the "choose" field.
func ChooseNEQ ¶
func ChooseNEQ(v int) predicate.ProficiencyChoice
ChooseNEQ applies the NEQ predicate on the "choose" field.
func ChooseNotIn ¶
func ChooseNotIn(vs ...int) predicate.ProficiencyChoice
ChooseNotIn applies the NotIn predicate on the "choose" field.
func Desc ¶
func Desc(v string) predicate.ProficiencyChoice
Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.
func DescContains ¶
func DescContains(v string) predicate.ProficiencyChoice
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
func DescContainsFold(v string) predicate.ProficiencyChoice
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEQ ¶
func DescEQ(v string) predicate.ProficiencyChoice
DescEQ applies the EQ predicate on the "desc" field.
func DescEqualFold ¶
func DescEqualFold(v string) predicate.ProficiencyChoice
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescGT ¶
func DescGT(v string) predicate.ProficiencyChoice
DescGT applies the GT predicate on the "desc" field.
func DescGTE ¶
func DescGTE(v string) predicate.ProficiencyChoice
DescGTE applies the GTE predicate on the "desc" field.
func DescHasPrefix ¶
func DescHasPrefix(v string) predicate.ProficiencyChoice
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
func DescHasSuffix(v string) predicate.ProficiencyChoice
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func DescIn ¶
func DescIn(vs ...string) predicate.ProficiencyChoice
DescIn applies the In predicate on the "desc" field.
func DescIsNil ¶
func DescIsNil() predicate.ProficiencyChoice
DescIsNil applies the IsNil predicate on the "desc" field.
func DescLT ¶
func DescLT(v string) predicate.ProficiencyChoice
DescLT applies the LT predicate on the "desc" field.
func DescLTE ¶
func DescLTE(v string) predicate.ProficiencyChoice
DescLTE applies the LTE predicate on the "desc" field.
func DescNEQ ¶
func DescNEQ(v string) predicate.ProficiencyChoice
DescNEQ applies the NEQ predicate on the "desc" field.
func DescNotIn ¶
func DescNotIn(vs ...string) predicate.ProficiencyChoice
DescNotIn applies the NotIn predicate on the "desc" field.
func DescNotNil ¶
func DescNotNil() predicate.ProficiencyChoice
DescNotNil applies the NotNil predicate on the "desc" field.
func HasClass ¶
func HasClass() predicate.ProficiencyChoice
HasClass applies the HasEdge predicate on the "class" edge.
func HasClassWith ¶
func HasClassWith(preds ...predicate.Class) predicate.ProficiencyChoice
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasParentChoice ¶
func HasParentChoice() predicate.ProficiencyChoice
HasParentChoice applies the HasEdge predicate on the "parent_choice" edge.
func HasParentChoiceWith ¶
func HasParentChoiceWith(preds ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
HasParentChoiceWith applies the HasEdge predicate on the "parent_choice" edge with a given conditions (other predicates).
func HasProficiency ¶
func HasProficiency() predicate.ProficiencyChoice
HasProficiency applies the HasEdge predicate on the "proficiency" edge.
func HasProficiencyWith ¶
func HasProficiencyWith(preds ...predicate.Proficiency) predicate.ProficiencyChoice
HasProficiencyWith applies the HasEdge predicate on the "proficiency" edge with a given conditions (other predicates).
func HasRace ¶
func HasRace() predicate.ProficiencyChoice
HasRace applies the HasEdge predicate on the "race" edge.
func HasRaceWith ¶
func HasRaceWith(preds ...predicate.Race) predicate.ProficiencyChoice
HasRaceWith applies the HasEdge predicate on the "race" edge with a given conditions (other predicates).
func HasSubChoice ¶
func HasSubChoice() predicate.ProficiencyChoice
HasSubChoice applies the HasEdge predicate on the "sub_choice" edge.
func HasSubChoiceWith ¶
func HasSubChoiceWith(preds ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
HasSubChoiceWith applies the HasEdge predicate on the "sub_choice" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ProficiencyChoice
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ProficiencyChoice
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ProficiencyChoice
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ProficiencyChoice
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ProficiencyChoice
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ProficiencyChoice
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ProficiencyChoice
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ProficiencyChoice
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProficiencyChoice) predicate.ProficiencyChoice
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProficiencyChoice) predicate.ProficiencyChoice
Or groups predicates with the OR operator between them.
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 ProficiencyChoice queries.
func ByChoose ¶
func ByChoose(opts ...sql.OrderTermOption) OrderOption
ByChoose orders the results by the choose field.
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 ByDesc ¶
func ByDesc(opts ...sql.OrderTermOption) OrderOption
ByDesc orders the results by the desc field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByParentChoiceField ¶
func ByParentChoiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentChoiceField orders the results by parent_choice field.
func ByProficiency ¶
func ByProficiency(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProficiency orders the results by proficiency terms.
func ByProficiencyCount ¶
func ByProficiencyCount(opts ...sql.OrderTermOption) OrderOption
ByProficiencyCount orders the results by proficiency 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 BySubChoice ¶
func BySubChoice(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubChoice orders the results by sub_choice terms.
func BySubChoiceCount ¶
func BySubChoiceCount(opts ...sql.OrderTermOption) OrderOption
BySubChoiceCount orders the results by sub_choice count.