Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IdentifiersEntry) predicate.IdentifiersEntry
- func HasNodes() predicate.IdentifiersEntry
- func HasNodesWith(preds ...predicate.Node) predicate.IdentifiersEntry
- func ID(id int) predicate.IdentifiersEntry
- func IDEQ(id int) predicate.IdentifiersEntry
- func IDGT(id int) predicate.IdentifiersEntry
- func IDGTE(id int) predicate.IdentifiersEntry
- func IDIn(ids ...int) predicate.IdentifiersEntry
- func IDLT(id int) predicate.IdentifiersEntry
- func IDLTE(id int) predicate.IdentifiersEntry
- func IDNEQ(id int) predicate.IdentifiersEntry
- func IDNotIn(ids ...int) predicate.IdentifiersEntry
- func Not(p predicate.IdentifiersEntry) predicate.IdentifiersEntry
- func Or(predicates ...predicate.IdentifiersEntry) predicate.IdentifiersEntry
- func SoftwareIdentifierTypeEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry
- func SoftwareIdentifierTypeIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry
- func SoftwareIdentifierTypeNEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry
- func SoftwareIdentifierTypeNotIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry
- func SoftwareIdentifierTypeValidator(sit SoftwareIdentifierType) error
- func SoftwareIdentifierValue(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueContains(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueContainsFold(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueEQ(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueEqualFold(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueGT(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueGTE(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueHasPrefix(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueHasSuffix(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueIn(vs ...string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueLT(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueLTE(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueNEQ(v string) predicate.IdentifiersEntry
- func SoftwareIdentifierValueNotIn(vs ...string) predicate.IdentifiersEntry
- func ValidColumn(column string) bool
- type OrderOption
- type SoftwareIdentifierType
Constants ¶
const ( // Label holds the string label denoting the identifiersentry type in the database. Label = "identifiers_entry" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSoftwareIdentifierType holds the string denoting the software_identifier_type field in the database. FieldSoftwareIdentifierType = "software_identifier_type" // FieldSoftwareIdentifierValue holds the string denoting the software_identifier_value field in the database. FieldSoftwareIdentifierValue = "software_identifier_value" // EdgeNodes holds the string denoting the nodes edge name in mutations. EdgeNodes = "nodes" // Table holds the table name of the identifiersentry in the database. Table = "identifiers_entries" // NodesTable is the table that holds the nodes relation/edge. NodesTable = "identifiers_entries" // NodesInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodesInverseTable = "nodes" // NodesColumn is the table column denoting the nodes relation/edge. NodesColumn = "node_identifiers" )
Variables ¶
var Columns = []string{ FieldID, FieldSoftwareIdentifierType, FieldSoftwareIdentifierValue, }
Columns holds all SQL columns for identifiersentry fields.
var ForeignKeys = []string{
"node_identifiers",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "identifiers_entries" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.IdentifiersEntry) predicate.IdentifiersEntry
And groups predicates with the AND operator between them.
func HasNodes ¶
func HasNodes() predicate.IdentifiersEntry
HasNodes applies the HasEdge predicate on the "nodes" edge.
func HasNodesWith ¶
func HasNodesWith(preds ...predicate.Node) predicate.IdentifiersEntry
HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.IdentifiersEntry
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.IdentifiersEntry
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.IdentifiersEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.IdentifiersEntry
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.IdentifiersEntry
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.IdentifiersEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.IdentifiersEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.IdentifiersEntry
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.IdentifiersEntry) predicate.IdentifiersEntry
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.IdentifiersEntry) predicate.IdentifiersEntry
Or groups predicates with the OR operator between them.
func SoftwareIdentifierTypeEQ ¶
func SoftwareIdentifierTypeEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry
SoftwareIdentifierTypeEQ applies the EQ predicate on the "software_identifier_type" field.
func SoftwareIdentifierTypeIn ¶
func SoftwareIdentifierTypeIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry
SoftwareIdentifierTypeIn applies the In predicate on the "software_identifier_type" field.
func SoftwareIdentifierTypeNEQ ¶
func SoftwareIdentifierTypeNEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry
SoftwareIdentifierTypeNEQ applies the NEQ predicate on the "software_identifier_type" field.
func SoftwareIdentifierTypeNotIn ¶
func SoftwareIdentifierTypeNotIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry
SoftwareIdentifierTypeNotIn applies the NotIn predicate on the "software_identifier_type" field.
func SoftwareIdentifierTypeValidator ¶
func SoftwareIdentifierTypeValidator(sit SoftwareIdentifierType) error
SoftwareIdentifierTypeValidator is a validator for the "software_identifier_type" field enum values. It is called by the builders before save.
func SoftwareIdentifierValue ¶
func SoftwareIdentifierValue(v string) predicate.IdentifiersEntry
SoftwareIdentifierValue applies equality check predicate on the "software_identifier_value" field. It's identical to SoftwareIdentifierValueEQ.
func SoftwareIdentifierValueContains ¶
func SoftwareIdentifierValueContains(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueContains applies the Contains predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueContainsFold ¶
func SoftwareIdentifierValueContainsFold(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueContainsFold applies the ContainsFold predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueEQ ¶
func SoftwareIdentifierValueEQ(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueEQ applies the EQ predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueEqualFold ¶
func SoftwareIdentifierValueEqualFold(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueEqualFold applies the EqualFold predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueGT ¶
func SoftwareIdentifierValueGT(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueGT applies the GT predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueGTE ¶
func SoftwareIdentifierValueGTE(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueGTE applies the GTE predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueHasPrefix ¶
func SoftwareIdentifierValueHasPrefix(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueHasPrefix applies the HasPrefix predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueHasSuffix ¶
func SoftwareIdentifierValueHasSuffix(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueHasSuffix applies the HasSuffix predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueIn ¶
func SoftwareIdentifierValueIn(vs ...string) predicate.IdentifiersEntry
SoftwareIdentifierValueIn applies the In predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueLT ¶
func SoftwareIdentifierValueLT(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueLT applies the LT predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueLTE ¶
func SoftwareIdentifierValueLTE(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueLTE applies the LTE predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueNEQ ¶
func SoftwareIdentifierValueNEQ(v string) predicate.IdentifiersEntry
SoftwareIdentifierValueNEQ applies the NEQ predicate on the "software_identifier_value" field.
func SoftwareIdentifierValueNotIn ¶
func SoftwareIdentifierValueNotIn(vs ...string) predicate.IdentifiersEntry
SoftwareIdentifierValueNotIn applies the NotIn predicate on the "software_identifier_value" 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 IdentifiersEntry queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNodesField ¶
func ByNodesField(field string, opts ...sql.OrderTermOption) OrderOption
ByNodesField orders the results by nodes field.
func BySoftwareIdentifierType ¶
func BySoftwareIdentifierType(opts ...sql.OrderTermOption) OrderOption
BySoftwareIdentifierType orders the results by the software_identifier_type field.
func BySoftwareIdentifierValue ¶
func BySoftwareIdentifierValue(opts ...sql.OrderTermOption) OrderOption
BySoftwareIdentifierValue orders the results by the software_identifier_value field.
type SoftwareIdentifierType ¶
type SoftwareIdentifierType string
SoftwareIdentifierType defines the type for the "software_identifier_type" enum field.
const ( SoftwareIdentifierTypeUNKNOWN_IDENTIFIER_TYPE SoftwareIdentifierType = "UNKNOWN_IDENTIFIER_TYPE" SoftwareIdentifierTypePURL SoftwareIdentifierType = "PURL" SoftwareIdentifierTypeCPE22 SoftwareIdentifierType = "CPE22" SoftwareIdentifierTypeCPE23 SoftwareIdentifierType = "CPE23" SoftwareIdentifierTypeGITOID SoftwareIdentifierType = "GITOID" )
SoftwareIdentifierType values.
func (SoftwareIdentifierType) String ¶
func (sit SoftwareIdentifierType) String() string