gear

package
v0.0.0-...-9126392 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 3 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"
)

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 GearCategory

func GearCategory(v string) predicate.Gear

GearCategory applies equality check predicate on the "gear_category" field. It's identical to GearCategoryEQ.

func GearCategoryContains

func GearCategoryContains(v string) predicate.Gear

GearCategoryContains applies the Contains predicate on the "gear_category" field.

func GearCategoryContainsFold

func GearCategoryContainsFold(v string) predicate.Gear

GearCategoryContainsFold applies the ContainsFold predicate on the "gear_category" field.

func GearCategoryEQ

func GearCategoryEQ(v string) predicate.Gear

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

func GearCategoryEqualFold

func GearCategoryEqualFold(v string) predicate.Gear

GearCategoryEqualFold applies the EqualFold predicate on the "gear_category" field.

func GearCategoryGT

func GearCategoryGT(v string) predicate.Gear

GearCategoryGT applies the GT predicate on the "gear_category" field.

func GearCategoryGTE

func GearCategoryGTE(v string) predicate.Gear

GearCategoryGTE applies the GTE predicate on the "gear_category" field.

func GearCategoryHasPrefix

func GearCategoryHasPrefix(v string) predicate.Gear

GearCategoryHasPrefix applies the HasPrefix predicate on the "gear_category" field.

func GearCategoryHasSuffix

func GearCategoryHasSuffix(v string) predicate.Gear

GearCategoryHasSuffix applies the HasSuffix predicate on the "gear_category" field.

func GearCategoryIn

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

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

func GearCategoryLT

func GearCategoryLT(v string) predicate.Gear

GearCategoryLT applies the LT predicate on the "gear_category" field.

func GearCategoryLTE

func GearCategoryLTE(v string) predicate.Gear

GearCategoryLTE applies the LTE predicate on the "gear_category" field.

func GearCategoryNEQ

func GearCategoryNEQ(v string) predicate.Gear

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

func GearCategoryNotIn

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

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

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