Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EquipmentCategory) predicate.EquipmentCategory
- func HasChildren() predicate.EquipmentCategory
- func HasChildrenWith(preds ...predicate.EquipmentCategory) predicate.EquipmentCategory
- func HasEquipment() predicate.EquipmentCategory
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentCategory
- func HasParent() predicate.EquipmentCategory
- func HasParentWith(preds ...predicate.EquipmentCategory) predicate.EquipmentCategory
- func ID(id int) predicate.EquipmentCategory
- func IDEQ(id int) predicate.EquipmentCategory
- func IDGT(id int) predicate.EquipmentCategory
- func IDGTE(id int) predicate.EquipmentCategory
- func IDIn(ids ...int) predicate.EquipmentCategory
- func IDLT(id int) predicate.EquipmentCategory
- func IDLTE(id int) predicate.EquipmentCategory
- func IDNEQ(id int) predicate.EquipmentCategory
- func IDNotIn(ids ...int) predicate.EquipmentCategory
- func Name(v string) predicate.EquipmentCategory
- func NameContains(v string) predicate.EquipmentCategory
- func NameContainsFold(v string) predicate.EquipmentCategory
- func NameEQ(v string) predicate.EquipmentCategory
- func NameEqualFold(v string) predicate.EquipmentCategory
- func NameGT(v string) predicate.EquipmentCategory
- func NameGTE(v string) predicate.EquipmentCategory
- func NameHasPrefix(v string) predicate.EquipmentCategory
- func NameHasSuffix(v string) predicate.EquipmentCategory
- func NameIn(vs ...string) predicate.EquipmentCategory
- func NameLT(v string) predicate.EquipmentCategory
- func NameLTE(v string) predicate.EquipmentCategory
- func NameNEQ(v string) predicate.EquipmentCategory
- func NameNotIn(vs ...string) predicate.EquipmentCategory
- func Not(p predicate.EquipmentCategory) predicate.EquipmentCategory
- func Or(predicates ...predicate.EquipmentCategory) predicate.EquipmentCategory
- func ParentCategoryID(v int) predicate.EquipmentCategory
- func ParentCategoryIDEQ(v int) predicate.EquipmentCategory
- func ParentCategoryIDIn(vs ...int) predicate.EquipmentCategory
- func ParentCategoryIDIsNil() predicate.EquipmentCategory
- func ParentCategoryIDNEQ(v int) predicate.EquipmentCategory
- func ParentCategoryIDNotIn(vs ...int) predicate.EquipmentCategory
- func ParentCategoryIDNotNil() predicate.EquipmentCategory
- func ValidColumn(column string) bool
- type OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParentCategoryID(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the equipmentcategory type in the database. Label = "equipment_category" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldParentCategoryID holds the string denoting the parent_category_id field in the database. FieldParentCategoryID = "parent_category_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // Table holds the table name of the equipmentcategory in the database. Table = "equipment_categories" // ParentTable is the table that holds the parent relation/edge. ParentTable = "equipment_categories" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_category_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "equipment_categories" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_category_id" // EquipmentTable is the table that holds the equipment relation/edge. The primary key declared below. EquipmentTable = "equipment_category_equipment" // 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" )
Variables ¶
var Columns = []string{ FieldID, FieldParentCategoryID, FieldName, }
Columns holds all SQL columns for equipmentcategory fields.
var ( // EquipmentPrimaryKey and EquipmentColumn2 are the table columns denoting the // primary key for the equipment relation (M2M). EquipmentPrimaryKey = []string{"equipment_category_id", "equipment_id"} )
var ForeignKeys = []string{
"proficiency_equipment_category",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "equipment_categories" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.EquipmentCategory) predicate.EquipmentCategory
And groups predicates with the AND operator between them.
func HasChildren ¶
func HasChildren() predicate.EquipmentCategory
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
func HasChildrenWith(preds ...predicate.EquipmentCategory) predicate.EquipmentCategory
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasEquipment ¶
func HasEquipment() predicate.EquipmentCategory
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
func HasEquipmentWith(preds ...predicate.Equipment) predicate.EquipmentCategory
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func HasParent ¶
func HasParent() predicate.EquipmentCategory
HasParent applies the HasEdge predicate on the "parent" edge.
func HasParentWith ¶
func HasParentWith(preds ...predicate.EquipmentCategory) predicate.EquipmentCategory
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.EquipmentCategory
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.EquipmentCategory
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.EquipmentCategory
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.EquipmentCategory
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.EquipmentCategory
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.EquipmentCategory
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.EquipmentCategory
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.EquipmentCategory
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.EquipmentCategory
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.EquipmentCategory
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.EquipmentCategory
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.EquipmentCategory
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.EquipmentCategory
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.EquipmentCategory
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.EquipmentCategory
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.EquipmentCategory
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.EquipmentCategory
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.EquipmentCategory
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.EquipmentCategory
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.EquipmentCategory
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.EquipmentCategory
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.EquipmentCategory
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.EquipmentCategory) predicate.EquipmentCategory
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EquipmentCategory) predicate.EquipmentCategory
Or groups predicates with the OR operator between them.
func ParentCategoryID ¶
func ParentCategoryID(v int) predicate.EquipmentCategory
ParentCategoryID applies equality check predicate on the "parent_category_id" field. It's identical to ParentCategoryIDEQ.
func ParentCategoryIDEQ ¶
func ParentCategoryIDEQ(v int) predicate.EquipmentCategory
ParentCategoryIDEQ applies the EQ predicate on the "parent_category_id" field.
func ParentCategoryIDIn ¶
func ParentCategoryIDIn(vs ...int) predicate.EquipmentCategory
ParentCategoryIDIn applies the In predicate on the "parent_category_id" field.
func ParentCategoryIDIsNil ¶
func ParentCategoryIDIsNil() predicate.EquipmentCategory
ParentCategoryIDIsNil applies the IsNil predicate on the "parent_category_id" field.
func ParentCategoryIDNEQ ¶
func ParentCategoryIDNEQ(v int) predicate.EquipmentCategory
ParentCategoryIDNEQ applies the NEQ predicate on the "parent_category_id" field.
func ParentCategoryIDNotIn ¶
func ParentCategoryIDNotIn(vs ...int) predicate.EquipmentCategory
ParentCategoryIDNotIn applies the NotIn predicate on the "parent_category_id" field.
func ParentCategoryIDNotNil ¶
func ParentCategoryIDNotNil() predicate.EquipmentCategory
ParentCategoryIDNotNil applies the NotNil predicate on the "parent_category_id" 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 EquipmentCategory queries.
func ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByEquipment ¶
func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipment orders the results by equipment terms.
func ByEquipmentCount ¶
func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentCount orders the results by equipment count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParentCategoryID ¶
func ByParentCategoryID(opts ...sql.OrderTermOption) OrderOption
ByParentCategoryID orders the results by the parent_category_id field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.