equipmentcategory

package
v0.0.0-...-c5055fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for equipmentcategory fields.

View Source
var (
	// EquipmentPrimaryKey and EquipmentColumn2 are the table columns denoting the
	// primary key for the equipment relation (M2M).
	EquipmentPrimaryKey = []string{"equipment_category_id", "equipment_id"}
)
View Source
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

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

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

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

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

func NameGTE

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

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

func NameLTE

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

func NameNEQ

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

Not applies the not operator on the given predicate.

func Or

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

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 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.

Jump to

Keyboard shortcuts

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