Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Class) predicate.Class
- func HasClassEquipment() predicate.Class
- func HasClassEquipmentWith(preds ...predicate.ClassEquipment) predicate.Class
- func HasEquipment() predicate.Class
- func HasEquipmentChoices() predicate.Class
- func HasEquipmentChoicesWith(preds ...predicate.EquipmentChoice) predicate.Class
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Class
- func HasProficiencies() predicate.Class
- func HasProficienciesWith(preds ...predicate.Proficiency) predicate.Class
- func HasProficiencyChoices() predicate.Class
- func HasProficiencyChoicesWith(preds ...predicate.ProficiencyChoice) predicate.Class
- func HitDie(v int) predicate.Class
- func HitDieEQ(v int) predicate.Class
- func HitDieGT(v int) predicate.Class
- func HitDieGTE(v int) predicate.Class
- func HitDieIn(vs ...int) predicate.Class
- func HitDieLT(v int) predicate.Class
- func HitDieLTE(v int) predicate.Class
- func HitDieNEQ(v int) predicate.Class
- func HitDieNotIn(vs ...int) predicate.Class
- func ID(id int) predicate.Class
- func IDEQ(id int) predicate.Class
- func IDGT(id int) predicate.Class
- func IDGTE(id int) predicate.Class
- func IDIn(ids ...int) predicate.Class
- func IDLT(id int) predicate.Class
- func IDLTE(id int) predicate.Class
- func IDNEQ(id int) predicate.Class
- func IDNotIn(ids ...int) predicate.Class
- func Indx(v string) predicate.Class
- func IndxContains(v string) predicate.Class
- func IndxContainsFold(v string) predicate.Class
- func IndxEQ(v string) predicate.Class
- func IndxEqualFold(v string) predicate.Class
- func IndxGT(v string) predicate.Class
- func IndxGTE(v string) predicate.Class
- func IndxHasPrefix(v string) predicate.Class
- func IndxHasSuffix(v string) predicate.Class
- func IndxIn(vs ...string) predicate.Class
- func IndxLT(v string) predicate.Class
- func IndxLTE(v string) predicate.Class
- func IndxNEQ(v string) predicate.Class
- func IndxNotIn(vs ...string) predicate.Class
- func Name(v string) predicate.Class
- func NameContains(v string) predicate.Class
- func NameContainsFold(v string) predicate.Class
- func NameEQ(v string) predicate.Class
- func NameEqualFold(v string) predicate.Class
- func NameGT(v string) predicate.Class
- func NameGTE(v string) predicate.Class
- func NameHasPrefix(v string) predicate.Class
- func NameHasSuffix(v string) predicate.Class
- func NameIn(vs ...string) predicate.Class
- func NameLT(v string) predicate.Class
- func NameLTE(v string) predicate.Class
- func NameNEQ(v string) predicate.Class
- func NameNotIn(vs ...string) predicate.Class
- func Not(p predicate.Class) predicate.Class
- func Or(predicates ...predicate.Class) predicate.Class
- func ValidColumn(column string) bool
- type OrderOption
- func ByClassEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByClassEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentChoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentChoicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByHitDie(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProficiencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProficienciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByProficiencyChoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProficiencyChoicesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the class type in the database. Label = "class" // 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" // FieldHitDie holds the string denoting the hit_die field in the database. FieldHitDie = "hit_die" // EdgeProficiencies holds the string denoting the proficiencies edge name in mutations. EdgeProficiencies = "proficiencies" // EdgeProficiencyChoices holds the string denoting the proficiency_choices edge name in mutations. EdgeProficiencyChoices = "proficiency_choices" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // EdgeEquipmentChoices holds the string denoting the equipment_choices edge name in mutations. EdgeEquipmentChoices = "equipment_choices" // EdgeClassEquipment holds the string denoting the class_equipment edge name in mutations. EdgeClassEquipment = "class_equipment" // Table holds the table name of the class in the database. Table = "classes" // ProficienciesTable is the table that holds the proficiencies relation/edge. The primary key declared below. ProficienciesTable = "class_proficiencies" // ProficienciesInverseTable is the table name for the Proficiency entity. // It exists in this package in order to avoid circular dependency with the "proficiency" package. ProficienciesInverseTable = "proficiencies" // ProficiencyChoicesTable is the table that holds the proficiency_choices relation/edge. The primary key declared below. ProficiencyChoicesTable = "class_proficiency_choices" // ProficiencyChoicesInverseTable is the table name for the ProficiencyChoice entity. // It exists in this package in order to avoid circular dependency with the "proficiencychoice" package. ProficiencyChoicesInverseTable = "proficiency_choices" // EquipmentTable is the table that holds the equipment relation/edge. The primary key declared below. EquipmentTable = "class_equipments" // EquipmentInverseTable is the table name for the Equipment entity. // It exists in this package in order to avoid circular dependency with the "equipment" package. EquipmentInverseTable = "equipment" // EquipmentChoicesTable is the table that holds the equipment_choices relation/edge. The primary key declared below. EquipmentChoicesTable = "class_equipment_choices" // EquipmentChoicesInverseTable is the table name for the EquipmentChoice entity. // It exists in this package in order to avoid circular dependency with the "equipmentchoice" package. EquipmentChoicesInverseTable = "equipment_choices" // ClassEquipmentTable is the table that holds the class_equipment relation/edge. ClassEquipmentTable = "class_equipments" // ClassEquipmentInverseTable is the table name for the ClassEquipment entity. // It exists in this package in order to avoid circular dependency with the "classequipment" package. ClassEquipmentInverseTable = "class_equipments" // ClassEquipmentColumn is the table column denoting the class_equipment relation/edge. ClassEquipmentColumn = "class_id" )
Variables ¶
var ( // ProficienciesPrimaryKey and ProficienciesColumn2 are the table columns denoting the // primary key for the proficiencies relation (M2M). ProficienciesPrimaryKey = []string{"class_id", "proficiency_id"} // ProficiencyChoicesPrimaryKey and ProficiencyChoicesColumn2 are the table columns denoting the // primary key for the proficiency_choices relation (M2M). ProficiencyChoicesPrimaryKey = []string{"class_id", "proficiency_choice_id"} // EquipmentPrimaryKey and EquipmentColumn2 are the table columns denoting the // primary key for the equipment relation (M2M). EquipmentPrimaryKey = []string{"class_id", "equipment_id"} // EquipmentChoicesPrimaryKey and EquipmentChoicesColumn2 are the table columns denoting the // primary key for the equipment_choices relation (M2M). EquipmentChoicesPrimaryKey = []string{"class_id", "equipment_choice_id"} )
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 )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldHitDie, }
Columns holds all SQL columns for class fields.
Functions ¶
func HasClassEquipment ¶
HasClassEquipment applies the HasEdge predicate on the "class_equipment" edge.
func HasClassEquipmentWith ¶
func HasClassEquipmentWith(preds ...predicate.ClassEquipment) predicate.Class
HasClassEquipmentWith applies the HasEdge predicate on the "class_equipment" edge with a given conditions (other predicates).
func HasEquipment ¶
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentChoices ¶
HasEquipmentChoices applies the HasEdge predicate on the "equipment_choices" edge.
func HasEquipmentChoicesWith ¶
func HasEquipmentChoicesWith(preds ...predicate.EquipmentChoice) predicate.Class
HasEquipmentChoicesWith applies the HasEdge predicate on the "equipment_choices" edge with a given conditions (other predicates).
func HasEquipmentWith ¶
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func HasProficiencies ¶
HasProficiencies applies the HasEdge predicate on the "proficiencies" edge.
func HasProficienciesWith ¶
func HasProficienciesWith(preds ...predicate.Proficiency) predicate.Class
HasProficienciesWith applies the HasEdge predicate on the "proficiencies" edge with a given conditions (other predicates).
func HasProficiencyChoices ¶
HasProficiencyChoices applies the HasEdge predicate on the "proficiency_choices" edge.
func HasProficiencyChoicesWith ¶
func HasProficiencyChoicesWith(preds ...predicate.ProficiencyChoice) predicate.Class
HasProficiencyChoicesWith applies the HasEdge predicate on the "proficiency_choices" edge with a given conditions (other predicates).
func HitDie ¶
HitDie applies equality check predicate on the "hit_die" field. It's identical to HitDieEQ.
func HitDieNotIn ¶
HitDieNotIn applies the NotIn predicate on the "hit_die" field.
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
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 Class queries.
func ByClassEquipment ¶
func ByClassEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByClassEquipment orders the results by class_equipment terms.
func ByClassEquipmentCount ¶
func ByClassEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByClassEquipmentCount orders the results by class_equipment count.
func ByEquipment ¶
func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipment orders the results by equipment terms.
func ByEquipmentChoices ¶
func ByEquipmentChoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipmentChoices orders the results by equipment_choices terms.
func ByEquipmentChoicesCount ¶
func ByEquipmentChoicesCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentChoicesCount orders the results by equipment_choices count.
func ByEquipmentCount ¶
func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentCount orders the results by equipment count.
func ByHitDie ¶
func ByHitDie(opts ...sql.OrderTermOption) OrderOption
ByHitDie orders the results by the hit_die field.
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 ByProficiencies ¶
func ByProficiencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProficiencies orders the results by proficiencies terms.
func ByProficienciesCount ¶
func ByProficienciesCount(opts ...sql.OrderTermOption) OrderOption
ByProficienciesCount orders the results by proficiencies count.
func ByProficiencyChoices ¶
func ByProficiencyChoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProficiencyChoices orders the results by proficiency_choices terms.
func ByProficiencyChoicesCount ¶
func ByProficiencyChoicesCount(opts ...sql.OrderTermOption) OrderOption
ByProficiencyChoicesCount orders the results by proficiency_choices count.