equipmententry

package
v0.0.0-...-67bf1eb Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the equipmententry type in the database.
	Label = "equipment_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "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"
	// Table holds the table name of the equipmententry in the database.
	Table = "equipment_entries"
	// ClassTable is the table that holds the class relation/edge. The primary key declared below.
	ClassTable = "class_starting_equipment"
	// 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"
	// EquipmentTable is the table that holds the equipment relation/edge.
	EquipmentTable = "equipment_entries"
	// 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_entry_equipment"
)

Variables

View Source
var (
	// ClassPrimaryKey and ClassColumn2 are the table columns denoting the
	// primary key for the class relation (M2M).
	ClassPrimaryKey = []string{"class_id", "equipment_entry_id"}
)
View Source
var Columns = []string{
	FieldID,
	FieldQuantity,
}

Columns holds all SQL columns for equipmententry fields.

View Source
var ForeignKeys = []string{
	"equipment_entry_equipment",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "equipment_entries" table and are not defined as standalone fields in the schema.

View Source
var (
	// QuantityValidator is a validator for the "quantity" field. It is called by the builders before save.
	QuantityValidator func(int) error
)

Functions

func And

And groups predicates with the AND operator between them.

func HasClass

func HasClass() predicate.EquipmentEntry

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

func HasClassWith

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

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

func HasEquipment

func HasEquipment() predicate.EquipmentEntry

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

func HasEquipmentWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.EquipmentEntry

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.EquipmentEntry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.EquipmentEntry

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.EquipmentEntry

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.EquipmentEntry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.EquipmentEntry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.EquipmentEntry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.EquipmentEntry

IDNotIn applies the NotIn predicate on the ID field.

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

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

func QuantityEQ

func QuantityEQ(v int) predicate.EquipmentEntry

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

func QuantityGT

func QuantityGT(v int) predicate.EquipmentEntry

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

func QuantityGTE

func QuantityGTE(v int) predicate.EquipmentEntry

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

func QuantityIn

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

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

func QuantityLT

func QuantityLT(v int) predicate.EquipmentEntry

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

func QuantityLTE

func QuantityLTE(v int) predicate.EquipmentEntry

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

func QuantityNEQ

func QuantityNEQ(v int) predicate.EquipmentEntry

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

func QuantityNotIn

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

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

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 ByEquipmentField

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

ByEquipmentField orders the results by equipment field.

func ByID

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

ByID orders the results by the 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