classequipment

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 classequipment type in the database.
	Label = "class_equipment"
	// FieldClassID holds the string denoting the class_id field in the database.
	FieldClassID = "class_id"
	// FieldEquipmentID holds the string denoting the equipment_id field in the database.
	FieldEquipmentID = "equipment_id"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// EdgeEquipment holds the string denoting the equipment edge name in mutations.
	EdgeEquipment = "equipment"
	// ClassFieldID holds the string denoting the ID field of the Class.
	ClassFieldID = "id"
	// EquipmentFieldID holds the string denoting the ID field of the Equipment.
	EquipmentFieldID = "id"
	// Table holds the table name of the classequipment in the database.
	Table = "class_equipments"
	// ClassTable is the table that holds the class relation/edge.
	ClassTable = "class_equipments"
	// 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"
	// ClassColumn is the table column denoting the class relation/edge.
	ClassColumn = "class_id"
	// EquipmentTable is the table that holds the equipment relation/edge.
	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"
	// EquipmentColumn is the table column denoting the equipment relation/edge.
	EquipmentColumn = "equipment_id"
)

Variables

Columns holds all SQL columns for classequipment fields.

Functions

func And

And groups predicates with the AND operator between them.

func ClassID

func ClassID(v int) predicate.ClassEquipment

ClassID applies equality check predicate on the "class_id" field. It's identical to ClassIDEQ.

func ClassIDEQ

func ClassIDEQ(v int) predicate.ClassEquipment

ClassIDEQ applies the EQ predicate on the "class_id" field.

func ClassIDIn

func ClassIDIn(vs ...int) predicate.ClassEquipment

ClassIDIn applies the In predicate on the "class_id" field.

func ClassIDNEQ

func ClassIDNEQ(v int) predicate.ClassEquipment

ClassIDNEQ applies the NEQ predicate on the "class_id" field.

func ClassIDNotIn

func ClassIDNotIn(vs ...int) predicate.ClassEquipment

ClassIDNotIn applies the NotIn predicate on the "class_id" field.

func EquipmentID

func EquipmentID(v int) predicate.ClassEquipment

EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.ClassEquipment

EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.

func EquipmentIDIn

func EquipmentIDIn(vs ...int) predicate.ClassEquipment

EquipmentIDIn applies the In predicate on the "equipment_id" field.

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.ClassEquipment

EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.

func EquipmentIDNotIn

func EquipmentIDNotIn(vs ...int) predicate.ClassEquipment

EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.

func HasClass

func HasClass() predicate.ClassEquipment

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

func HasClassWith

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

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

func HasEquipment

func HasEquipment() predicate.ClassEquipment

HasEquipment applies the HasEdge predicate on the "equipment" edge.

func HasEquipmentWith

func HasEquipmentWith(preds ...predicate.Equipment) predicate.ClassEquipment

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Quantity

func Quantity(v int) predicate.ClassEquipment

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityEQ

func QuantityEQ(v int) predicate.ClassEquipment

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v int) predicate.ClassEquipment

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v int) predicate.ClassEquipment

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...int) predicate.ClassEquipment

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v int) predicate.ClassEquipment

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v int) predicate.ClassEquipment

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v int) predicate.ClassEquipment

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...int) predicate.ClassEquipment

QuantityNotIn applies the NotIn predicate on the "quantity" 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 ClassEquipment queries.

func ByClassField

func ByClassField(field string, opts ...sql.OrderTermOption) OrderOption

ByClassField orders the results by class field.

func ByClassID

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

ByClassID orders the results by the class_id field.

func ByEquipmentField

func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption

ByEquipmentField orders the results by equipment field.

func ByEquipmentID

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

ByEquipmentID orders the results by the equipment_id field.

func ByQuantity

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

ByQuantity orders the results by the quantity field.

Jump to

Keyboard shortcuts

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