gear

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the gear type in the database.
	Label = "gear"
	// 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"
	// FieldGearCategory holds the string denoting the gear_category field in the database.
	FieldGearCategory = "gear_category"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// FieldEquipmentID holds the string denoting the equipment_id field in the database.
	FieldEquipmentID = "equipment_id"
	// EdgeEquipment holds the string denoting the equipment edge name in mutations.
	EdgeEquipment = "equipment"
	// Table holds the table name of the gear in the database.
	Table = "gears"
	// EquipmentTable is the table that holds the equipment relation/edge.
	EquipmentTable = "gears"
	// 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"
)
View Source
const DefaultGearCategory = GearCategoryOther

GearCategoryOther is the default value of the GearCategory enum.

Variables

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

Columns holds all SQL columns for gear fields.

Functions

func And

func And(predicates ...predicate.Gear) predicate.Gear

And groups predicates with the AND operator between them.

func EquipmentID

func EquipmentID(v int) predicate.Gear

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

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.Gear

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

func EquipmentIDIn

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

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

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.Gear

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

func EquipmentIDNotIn

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

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

func GearCategoryEQ

func GearCategoryEQ(v GearCategory) predicate.Gear

GearCategoryEQ applies the EQ predicate on the "gear_category" field.

func GearCategoryIn

func GearCategoryIn(vs ...GearCategory) predicate.Gear

GearCategoryIn applies the In predicate on the "gear_category" field.

func GearCategoryNEQ

func GearCategoryNEQ(v GearCategory) predicate.Gear

GearCategoryNEQ applies the NEQ predicate on the "gear_category" field.

func GearCategoryNotIn

func GearCategoryNotIn(vs ...GearCategory) predicate.Gear

GearCategoryNotIn applies the NotIn predicate on the "gear_category" field.

func GearCategoryValidator

func GearCategoryValidator(gc GearCategory) error

GearCategoryValidator is a validator for the "gear_category" field enum values. It is called by the builders before save.

func HasEquipment

func HasEquipment() predicate.Gear

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

func HasEquipmentWith

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

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

func ID

func ID(id int) predicate.Gear

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Gear

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Gear

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Gear

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Gear

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Gear

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Gear

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Gear

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Gear

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Gear

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Gear

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Gear

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Gear

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Gear

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Gear

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Gear

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Gear

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Gear

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Gear

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Gear

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Gear

IndxNotIn applies the NotIn predicate on the "indx" field.

func Name

func Name(v string) predicate.Gear

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Gear

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Gear

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Gear

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Gear

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Gear

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

func NameGTE

func NameGTE(v string) predicate.Gear

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Gear

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Gear

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Gear

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Gear

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

func NameLTE

func NameLTE(v string) predicate.Gear

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

func NameNEQ

func NameNEQ(v string) predicate.Gear

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Gear

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Gear) predicate.Gear

Or groups predicates with the OR operator between them.

func Quantity

func Quantity(v int) predicate.Gear

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

func QuantityEQ

func QuantityEQ(v int) predicate.Gear

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

func QuantityGT

func QuantityGT(v int) predicate.Gear

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

func QuantityGTE

func QuantityGTE(v int) predicate.Gear

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

func QuantityIn

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

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

func QuantityIsNil

func QuantityIsNil() predicate.Gear

QuantityIsNil applies the IsNil predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v int) predicate.Gear

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

func QuantityLTE

func QuantityLTE(v int) predicate.Gear

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

func QuantityNEQ

func QuantityNEQ(v int) predicate.Gear

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

func QuantityNotIn

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

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func QuantityNotNil

func QuantityNotNil() predicate.Gear

QuantityNotNil applies the NotNil 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 GearCategory

type GearCategory string

GearCategory defines the type for the "gear_category" enum field.

const (
	GearCategoryAmmunition     GearCategory = "ammunition"
	GearCategoryStandardGear   GearCategory = "standard_gear"
	GearCategoryKits           GearCategory = "kits"
	GearCategoryEquipmentPacks GearCategory = "equipment_packs"
	GearCategoryArcaneFoci     GearCategory = "arcane_foci"
	GearCategoryDruidicFoci    GearCategory = "druidic_foci"
	GearCategoryHolySymbols    GearCategory = "holy_symbols"
	GearCategoryOther          GearCategory = "other"
)

GearCategory values.

func (GearCategory) MarshalGQL

func (e GearCategory) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (GearCategory) String

func (gc GearCategory) String() string

func (*GearCategory) UnmarshalGQL

func (e *GearCategory) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Gear queries.

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 ByGearCategory

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

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