tool

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 tool type in the database.
	Label = "tool"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldToolCategory holds the string denoting the tool_category field in the database.
	FieldToolCategory = "tool_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 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_tool"
)

Variables

Columns holds all SQL columns for tool fields.

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

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

Functions

func And

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

And groups predicates with the AND operator between them.

func DescIsNil

func DescIsNil() predicate.Tool

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

func DescNotNil

func DescNotNil() predicate.Tool

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

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

ByID orders the results by the id 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