Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tool) predicate.Tool
- func DescIsNil() predicate.Tool
- func DescNotNil() 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 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
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" // 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 ¶
var Columns = []string{ FieldID, FieldToolCategory, FieldDesc, }
Columns holds all SQL columns for tool fields.
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 DescNotNil ¶
DescNotNil applies the NotNil predicate on the "desc" 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 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 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.