Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tool) predicate.Tool
- func EquipmentID(v int) predicate.Tool
- func EquipmentIDEQ(v int) predicate.Tool
- func EquipmentIDIn(vs ...int) predicate.Tool
- func EquipmentIDNEQ(v int) predicate.Tool
- func EquipmentIDNotIn(vs ...int) predicate.Tool
- func HasEquipment() predicate.Tool
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Tool
- func ID(id int) predicate.Tool
- func IDEQ(id int) predicate.Tool
- func IDGT(id int) predicate.Tool
- func IDGTE(id int) predicate.Tool
- func IDIn(ids ...int) predicate.Tool
- func IDLT(id int) predicate.Tool
- func IDLTE(id int) predicate.Tool
- func IDNEQ(id int) predicate.Tool
- func IDNotIn(ids ...int) predicate.Tool
- func Indx(v string) predicate.Tool
- func IndxContains(v string) predicate.Tool
- func IndxContainsFold(v string) predicate.Tool
- func IndxEQ(v string) predicate.Tool
- func IndxEqualFold(v string) predicate.Tool
- func IndxGT(v string) predicate.Tool
- func IndxGTE(v string) predicate.Tool
- func IndxHasPrefix(v string) predicate.Tool
- func IndxHasSuffix(v string) predicate.Tool
- func IndxIn(vs ...string) predicate.Tool
- func IndxLT(v string) predicate.Tool
- func IndxLTE(v string) predicate.Tool
- func IndxNEQ(v string) predicate.Tool
- func IndxNotIn(vs ...string) predicate.Tool
- func Name(v string) predicate.Tool
- func NameContains(v string) predicate.Tool
- func NameContainsFold(v string) predicate.Tool
- func NameEQ(v string) predicate.Tool
- func NameEqualFold(v string) predicate.Tool
- func NameGT(v string) predicate.Tool
- func NameGTE(v string) predicate.Tool
- func NameHasPrefix(v string) predicate.Tool
- func NameHasSuffix(v string) predicate.Tool
- func NameIn(vs ...string) predicate.Tool
- func NameLT(v string) predicate.Tool
- func NameLTE(v string) predicate.Tool
- func NameNEQ(v string) predicate.Tool
- func NameNotIn(vs ...string) predicate.Tool
- func Not(p predicate.Tool) predicate.Tool
- func Or(predicates ...predicate.Tool) predicate.Tool
- func ToolCategory(v string) predicate.Tool
- func ToolCategoryContains(v string) predicate.Tool
- func ToolCategoryContainsFold(v string) predicate.Tool
- func ToolCategoryEQ(v string) predicate.Tool
- func ToolCategoryEqualFold(v string) predicate.Tool
- func ToolCategoryGT(v string) predicate.Tool
- func ToolCategoryGTE(v string) predicate.Tool
- func ToolCategoryHasPrefix(v string) predicate.Tool
- func ToolCategoryHasSuffix(v string) predicate.Tool
- func ToolCategoryIn(vs ...string) predicate.Tool
- func ToolCategoryLT(v string) predicate.Tool
- func ToolCategoryLTE(v string) predicate.Tool
- func ToolCategoryNEQ(v string) predicate.Tool
- func ToolCategoryNotIn(vs ...string) predicate.Tool
- func ValidColumn(column string) bool
- type OrderOption
- func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByToolCategory(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldToolCategory, FieldEquipmentID, }
Columns holds all SQL columns for tool fields.
Functions ¶
func EquipmentID ¶
EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.
func EquipmentIDEQ ¶
EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.
func EquipmentIDIn ¶
EquipmentIDIn applies the In predicate on the "equipment_id" field.
func EquipmentIDNEQ ¶
EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.
func EquipmentIDNotIn ¶
EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.
func HasEquipment ¶
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ToolCategory ¶
ToolCategory applies equality check predicate on the "tool_category" field. It's identical to ToolCategoryEQ.
func ToolCategoryContains ¶
ToolCategoryContains applies the Contains predicate on the "tool_category" field.
func ToolCategoryContainsFold ¶
ToolCategoryContainsFold applies the ContainsFold predicate on the "tool_category" field.
func ToolCategoryEQ ¶
ToolCategoryEQ applies the EQ predicate on the "tool_category" field.
func ToolCategoryEqualFold ¶
ToolCategoryEqualFold applies the EqualFold predicate on the "tool_category" field.
func ToolCategoryGT ¶
ToolCategoryGT applies the GT predicate on the "tool_category" field.
func ToolCategoryGTE ¶
ToolCategoryGTE applies the GTE predicate on the "tool_category" field.
func ToolCategoryHasPrefix ¶
ToolCategoryHasPrefix applies the HasPrefix predicate on the "tool_category" field.
func ToolCategoryHasSuffix ¶
ToolCategoryHasSuffix applies the HasSuffix predicate on the "tool_category" field.
func ToolCategoryIn ¶
ToolCategoryIn applies the In predicate on the "tool_category" field.
func ToolCategoryLT ¶
ToolCategoryLT applies the LT predicate on the "tool_category" field.
func ToolCategoryLTE ¶
ToolCategoryLTE applies the LTE predicate on the "tool_category" field.
func ToolCategoryNEQ ¶
ToolCategoryNEQ applies the NEQ predicate on the "tool_category" field.
func ToolCategoryNotIn ¶
ToolCategoryNotIn applies the NotIn predicate on the "tool_category" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.