tool

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 tool type in the database.
	Label = "tool"
	// 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"
	// FieldToolCategory holds the string denoting the tool_category field in the database.
	FieldToolCategory = "tool_category"
	// 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 tool in the database.
	Table = "tools"
	// EquipmentTable is the table that holds the equipment relation/edge.
	EquipmentTable = "tools"
	// 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 tool fields.

Functions

func And

func And(predicates ...predicate.Tool) predicate.Tool

And groups predicates with the AND operator between them.

func EquipmentID

func EquipmentID(v int) predicate.Tool

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

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.Tool

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

func EquipmentIDIn

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

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

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.Tool

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

func EquipmentIDNotIn

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

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

func HasEquipment

func HasEquipment() predicate.Tool

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

func HasEquipmentWith

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

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

func ID

func ID(id int) predicate.Tool

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tool

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tool

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tool

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tool

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tool

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tool

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Tool

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

func IndxContains

func IndxContains(v string) predicate.Tool

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

func IndxContainsFold

func IndxContainsFold(v string) predicate.Tool

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

func IndxEQ

func IndxEQ(v string) predicate.Tool

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

func IndxEqualFold

func IndxEqualFold(v string) predicate.Tool

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

func IndxGT

func IndxGT(v string) predicate.Tool

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

func IndxGTE

func IndxGTE(v string) predicate.Tool

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

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Tool

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

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Tool

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

func IndxIn

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

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

func IndxLT

func IndxLT(v string) predicate.Tool

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

func IndxLTE

func IndxLTE(v string) predicate.Tool

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

func IndxNEQ

func IndxNEQ(v string) predicate.Tool

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

func IndxNotIn

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

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

func Name

func Name(v string) predicate.Tool

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

func NameContains

func NameContains(v string) predicate.Tool

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

func NameContainsFold

func NameContainsFold(v string) predicate.Tool

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

func NameEQ

func NameEQ(v string) predicate.Tool

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

func NameEqualFold

func NameEqualFold(v string) predicate.Tool

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

func NameGT

func NameGT(v string) predicate.Tool

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

func NameGTE

func NameGTE(v string) predicate.Tool

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tool

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tool

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Tool

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

func NameLTE

func NameLTE(v string) predicate.Tool

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

func NameNEQ

func NameNEQ(v string) predicate.Tool

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

func NameNotIn

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

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.Tool) predicate.Tool

Or groups predicates with the OR operator between them.

func ToolCategory

func ToolCategory(v string) predicate.Tool

ToolCategory applies equality check predicate on the "tool_category" field. It's identical to ToolCategoryEQ.

func ToolCategoryContains

func ToolCategoryContains(v string) predicate.Tool

ToolCategoryContains applies the Contains predicate on the "tool_category" field.

func ToolCategoryContainsFold

func ToolCategoryContainsFold(v string) predicate.Tool

ToolCategoryContainsFold applies the ContainsFold predicate on the "tool_category" field.

func ToolCategoryEQ

func ToolCategoryEQ(v string) predicate.Tool

ToolCategoryEQ applies the EQ predicate on the "tool_category" field.

func ToolCategoryEqualFold

func ToolCategoryEqualFold(v string) predicate.Tool

ToolCategoryEqualFold applies the EqualFold predicate on the "tool_category" field.

func ToolCategoryGT

func ToolCategoryGT(v string) predicate.Tool

ToolCategoryGT applies the GT predicate on the "tool_category" field.

func ToolCategoryGTE

func ToolCategoryGTE(v string) predicate.Tool

ToolCategoryGTE applies the GTE predicate on the "tool_category" field.

func ToolCategoryHasPrefix

func ToolCategoryHasPrefix(v string) predicate.Tool

ToolCategoryHasPrefix applies the HasPrefix predicate on the "tool_category" field.

func ToolCategoryHasSuffix

func ToolCategoryHasSuffix(v string) predicate.Tool

ToolCategoryHasSuffix applies the HasSuffix predicate on the "tool_category" field.

func ToolCategoryIn

func ToolCategoryIn(vs ...string) predicate.Tool

ToolCategoryIn applies the In predicate on the "tool_category" field.

func ToolCategoryLT

func ToolCategoryLT(v string) predicate.Tool

ToolCategoryLT applies the LT predicate on the "tool_category" field.

func ToolCategoryLTE

func ToolCategoryLTE(v string) predicate.Tool

ToolCategoryLTE applies the LTE predicate on the "tool_category" field.

func ToolCategoryNEQ

func ToolCategoryNEQ(v string) predicate.Tool

ToolCategoryNEQ applies the NEQ predicate on the "tool_category" field.

func ToolCategoryNotIn

func ToolCategoryNotIn(vs ...string) predicate.Tool

ToolCategoryNotIn applies the NotIn predicate on the "tool_category" 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 Tool 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 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 ByToolCategory

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

ByToolCategory orders the results by the tool_category field.

Jump to

Keyboard shortcuts

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