gear

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 gear type in the database.
	Label = "gear"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldGearCategory holds the string denoting the gear_category field in the database.
	FieldGearCategory = "gear_category"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// 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_gear"
)

Variables

Columns holds all SQL columns for gear fields.

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

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

Functions

func And

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

And groups predicates with the AND operator between them.

func DescIsNil

func DescIsNil() predicate.Gear

DescIsNil applies the IsNil predicate on the "desc" field.

func DescNotNil

func DescNotNil() predicate.Gear

DescNotNil applies the NotNil predicate on the "desc" 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 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 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 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.

Jump to

Keyboard shortcuts

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