equipmentcost

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 equipmentcost type in the database.
	Label = "equipment_cost"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEquipmentID holds the string denoting the equipment_id field in the database.
	FieldEquipmentID = "equipment_id"
	// FieldCoinID holds the string denoting the coin_id field in the database.
	FieldCoinID = "coin_id"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// FieldGpValue holds the string denoting the gp_value field in the database.
	FieldGpValue = "gp_value"
	// EdgeEquipment holds the string denoting the equipment edge name in mutations.
	EdgeEquipment = "equipment"
	// EdgeCoin holds the string denoting the coin edge name in mutations.
	EdgeCoin = "coin"
	// Table holds the table name of the equipmentcost in the database.
	Table = "equipment_costs"
	// EquipmentTable is the table that holds the equipment relation/edge.
	EquipmentTable = "equipment_costs"
	// 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"
	// CoinTable is the table that holds the coin relation/edge.
	CoinTable = "equipment_costs"
	// CoinInverseTable is the table name for the Coin entity.
	// It exists in this package in order to avoid circular dependency with the "coin" package.
	CoinInverseTable = "coins"
	// CoinColumn is the table column denoting the coin relation/edge.
	CoinColumn = "coin_id"
)

Variables

Columns holds all SQL columns for equipmentcost fields.

Functions

func And

And groups predicates with the AND operator between them.

func CoinID

func CoinID(v int) predicate.EquipmentCost

CoinID applies equality check predicate on the "coin_id" field. It's identical to CoinIDEQ.

func CoinIDEQ

func CoinIDEQ(v int) predicate.EquipmentCost

CoinIDEQ applies the EQ predicate on the "coin_id" field.

func CoinIDIn

func CoinIDIn(vs ...int) predicate.EquipmentCost

CoinIDIn applies the In predicate on the "coin_id" field.

func CoinIDNEQ

func CoinIDNEQ(v int) predicate.EquipmentCost

CoinIDNEQ applies the NEQ predicate on the "coin_id" field.

func CoinIDNotIn

func CoinIDNotIn(vs ...int) predicate.EquipmentCost

CoinIDNotIn applies the NotIn predicate on the "coin_id" field.

func EquipmentID

func EquipmentID(v int) predicate.EquipmentCost

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

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.EquipmentCost

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

func EquipmentIDIn

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

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

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.EquipmentCost

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

func EquipmentIDNotIn

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

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

func GpValue

func GpValue(v float64) predicate.EquipmentCost

GpValue applies equality check predicate on the "gp_value" field. It's identical to GpValueEQ.

func GpValueEQ

func GpValueEQ(v float64) predicate.EquipmentCost

GpValueEQ applies the EQ predicate on the "gp_value" field.

func GpValueGT

func GpValueGT(v float64) predicate.EquipmentCost

GpValueGT applies the GT predicate on the "gp_value" field.

func GpValueGTE

func GpValueGTE(v float64) predicate.EquipmentCost

GpValueGTE applies the GTE predicate on the "gp_value" field.

func GpValueIn

func GpValueIn(vs ...float64) predicate.EquipmentCost

GpValueIn applies the In predicate on the "gp_value" field.

func GpValueLT

func GpValueLT(v float64) predicate.EquipmentCost

GpValueLT applies the LT predicate on the "gp_value" field.

func GpValueLTE

func GpValueLTE(v float64) predicate.EquipmentCost

GpValueLTE applies the LTE predicate on the "gp_value" field.

func GpValueNEQ

func GpValueNEQ(v float64) predicate.EquipmentCost

GpValueNEQ applies the NEQ predicate on the "gp_value" field.

func GpValueNotIn

func GpValueNotIn(vs ...float64) predicate.EquipmentCost

GpValueNotIn applies the NotIn predicate on the "gp_value" field.

func HasCoin

func HasCoin() predicate.EquipmentCost

HasCoin applies the HasEdge predicate on the "coin" edge.

func HasCoinWith

func HasCoinWith(preds ...predicate.Coin) predicate.EquipmentCost

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

func HasEquipment

func HasEquipment() predicate.EquipmentCost

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

func HasEquipmentWith

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

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

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.EquipmentCost

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.EquipmentCost

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.EquipmentCost

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.EquipmentCost

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.EquipmentCost

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

func QuantityEQ

func QuantityEQ(v int) predicate.EquipmentCost

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

func QuantityGT

func QuantityGT(v int) predicate.EquipmentCost

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

func QuantityGTE

func QuantityGTE(v int) predicate.EquipmentCost

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

func QuantityIn

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

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

func QuantityLT

func QuantityLT(v int) predicate.EquipmentCost

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

func QuantityLTE

func QuantityLTE(v int) predicate.EquipmentCost

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

func QuantityNEQ

func QuantityNEQ(v int) predicate.EquipmentCost

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

func QuantityNotIn

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

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

func ByCoinField

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

ByCoinField orders the results by coin field.

func ByCoinID

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

ByCoinID orders the results by the coin_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 ByGpValue

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

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