Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Purpose) predicate.Purpose
- func HasNode() predicate.Purpose
- func HasNodeWith(preds ...predicate.Node) predicate.Purpose
- func ID(id int) predicate.Purpose
- func IDEQ(id int) predicate.Purpose
- func IDGT(id int) predicate.Purpose
- func IDGTE(id int) predicate.Purpose
- func IDIn(ids ...int) predicate.Purpose
- func IDLT(id int) predicate.Purpose
- func IDLTE(id int) predicate.Purpose
- func IDNEQ(id int) predicate.Purpose
- func IDNotIn(ids ...int) predicate.Purpose
- func Not(p predicate.Purpose) predicate.Purpose
- func Or(predicates ...predicate.Purpose) predicate.Purpose
- func PrimaryPurposeEQ(v PrimaryPurpose) predicate.Purpose
- func PrimaryPurposeIn(vs ...PrimaryPurpose) predicate.Purpose
- func PrimaryPurposeNEQ(v PrimaryPurpose) predicate.Purpose
- func PrimaryPurposeNotIn(vs ...PrimaryPurpose) predicate.Purpose
- func PrimaryPurposeValidator(pp PrimaryPurpose) error
- func ValidColumn(column string) bool
- type OrderOption
- type PrimaryPurpose
Constants ¶
const ( // Label holds the string label denoting the purpose type in the database. Label = "purpose" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPrimaryPurpose holds the string denoting the primary_purpose field in the database. FieldPrimaryPurpose = "primary_purpose" // EdgeNode holds the string denoting the node edge name in mutations. EdgeNode = "node" // Table holds the table name of the purpose in the database. Table = "purposes" // NodeTable is the table that holds the node relation/edge. The primary key declared below. NodeTable = "node_primary_purpose" // NodeInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodeInverseTable = "nodes" )
Variables ¶
var Columns = []string{ FieldID, FieldPrimaryPurpose, }
Columns holds all SQL columns for purpose fields.
var ( // NodePrimaryKey and NodeColumn2 are the table columns denoting the // primary key for the node relation (M2M). NodePrimaryKey = []string{"node_id", "purpose_id"} )
Functions ¶
func HasNodeWith ¶
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func PrimaryPurposeEQ ¶
func PrimaryPurposeEQ(v PrimaryPurpose) predicate.Purpose
PrimaryPurposeEQ applies the EQ predicate on the "primary_purpose" field.
func PrimaryPurposeIn ¶
func PrimaryPurposeIn(vs ...PrimaryPurpose) predicate.Purpose
PrimaryPurposeIn applies the In predicate on the "primary_purpose" field.
func PrimaryPurposeNEQ ¶
func PrimaryPurposeNEQ(v PrimaryPurpose) predicate.Purpose
PrimaryPurposeNEQ applies the NEQ predicate on the "primary_purpose" field.
func PrimaryPurposeNotIn ¶
func PrimaryPurposeNotIn(vs ...PrimaryPurpose) predicate.Purpose
PrimaryPurposeNotIn applies the NotIn predicate on the "primary_purpose" field.
func PrimaryPurposeValidator ¶
func PrimaryPurposeValidator(pp PrimaryPurpose) error
PrimaryPurposeValidator is a validator for the "primary_purpose" field enum values. It is called by the builders before save.
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 Purpose queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNode ¶
func ByNode(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNode orders the results by node terms.
func ByNodeCount ¶
func ByNodeCount(opts ...sql.OrderTermOption) OrderOption
ByNodeCount orders the results by node count.
func ByPrimaryPurpose ¶
func ByPrimaryPurpose(opts ...sql.OrderTermOption) OrderOption
ByPrimaryPurpose orders the results by the primary_purpose field.
type PrimaryPurpose ¶
type PrimaryPurpose string
PrimaryPurpose defines the type for the "primary_purpose" enum field.
const ( PrimaryPurposeUNKNOWN_PURPOSE PrimaryPurpose = "UNKNOWN_PURPOSE" PrimaryPurposeAPPLICATION PrimaryPurpose = "APPLICATION" PrimaryPurposeARCHIVE PrimaryPurpose = "ARCHIVE" PrimaryPurposeBOM PrimaryPurpose = "BOM" PrimaryPurposeCONFIGURATION PrimaryPurpose = "CONFIGURATION" PrimaryPurposeCONTAINER PrimaryPurpose = "CONTAINER" PrimaryPurposeDATA PrimaryPurpose = "DATA" PrimaryPurposeDEVICE PrimaryPurpose = "DEVICE" PrimaryPurposeDEVICE_DRIVER PrimaryPurpose = "DEVICE_DRIVER" PrimaryPurposeDOCUMENTATION PrimaryPurpose = "DOCUMENTATION" PrimaryPurposeEVIDENCE PrimaryPurpose = "EVIDENCE" PrimaryPurposeEXECUTABLE PrimaryPurpose = "EXECUTABLE" PrimaryPurposeFILE PrimaryPurpose = "FILE" PrimaryPurposeFIRMWARE PrimaryPurpose = "FIRMWARE" PrimaryPurposeFRAMEWORK PrimaryPurpose = "FRAMEWORK" PrimaryPurposeINSTALL PrimaryPurpose = "INSTALL" PrimaryPurposeLIBRARY PrimaryPurpose = "LIBRARY" PrimaryPurposeMACHINE_LEARNING_MODEL PrimaryPurpose = "MACHINE_LEARNING_MODEL" PrimaryPurposeMANIFEST PrimaryPurpose = "MANIFEST" PrimaryPurposeMODEL PrimaryPurpose = "MODEL" PrimaryPurposeMODULE PrimaryPurpose = "MODULE" PrimaryPurposeOPERATING_SYSTEM PrimaryPurpose = "OPERATING_SYSTEM" PrimaryPurposeOTHER PrimaryPurpose = "OTHER" PrimaryPurposePATCH PrimaryPurpose = "PATCH" PrimaryPurposePLATFORM PrimaryPurpose = "PLATFORM" PrimaryPurposeREQUIREMENT PrimaryPurpose = "REQUIREMENT" PrimaryPurposeSOURCE PrimaryPurpose = "SOURCE" PrimaryPurposeSPECIFICATION PrimaryPurpose = "SPECIFICATION" PrimaryPurposeTEST PrimaryPurpose = "TEST" )
PrimaryPurpose values.
func (PrimaryPurpose) String ¶
func (pp PrimaryPurpose) String() string