Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
- func HasType() predicate.VulnerabilityID
- func HasTypeWith(preds ...predicate.VulnerabilityType) predicate.VulnerabilityID
- func HasVulnEquals() predicate.VulnerabilityID
- func HasVulnEqualsWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
- func ID(id int) predicate.VulnerabilityID
- func IDEQ(id int) predicate.VulnerabilityID
- func IDGT(id int) predicate.VulnerabilityID
- func IDGTE(id int) predicate.VulnerabilityID
- func IDIn(ids ...int) predicate.VulnerabilityID
- func IDLT(id int) predicate.VulnerabilityID
- func IDLTE(id int) predicate.VulnerabilityID
- func IDNEQ(id int) predicate.VulnerabilityID
- func IDNotIn(ids ...int) predicate.VulnerabilityID
- func Not(p predicate.VulnerabilityID) predicate.VulnerabilityID
- func Or(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
- func TypeID(v int) predicate.VulnerabilityID
- func TypeIDEQ(v int) predicate.VulnerabilityID
- func TypeIDIn(vs ...int) predicate.VulnerabilityID
- func TypeIDNEQ(v int) predicate.VulnerabilityID
- func TypeIDNotIn(vs ...int) predicate.VulnerabilityID
- func ValidColumn(column string) bool
- func VulnerabilityID(v string) predicate.VulnerabilityID
- func VulnerabilityIDContains(v string) predicate.VulnerabilityID
- func VulnerabilityIDContainsFold(v string) predicate.VulnerabilityID
- func VulnerabilityIDEQ(v string) predicate.VulnerabilityID
- func VulnerabilityIDEqualFold(v string) predicate.VulnerabilityID
- func VulnerabilityIDGT(v string) predicate.VulnerabilityID
- func VulnerabilityIDGTE(v string) predicate.VulnerabilityID
- func VulnerabilityIDHasPrefix(v string) predicate.VulnerabilityID
- func VulnerabilityIDHasSuffix(v string) predicate.VulnerabilityID
- func VulnerabilityIDIn(vs ...string) predicate.VulnerabilityID
- func VulnerabilityIDLT(v string) predicate.VulnerabilityID
- func VulnerabilityIDLTE(v string) predicate.VulnerabilityID
- func VulnerabilityIDNEQ(v string) predicate.VulnerabilityID
- func VulnerabilityIDNotIn(vs ...string) predicate.VulnerabilityID
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTypeID(opts ...sql.OrderTermOption) OrderOption
- func ByVulnEquals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVulnEqualsCount(opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the vulnerabilityid type in the database. Label = "vulnerability_id" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVulnerabilityID holds the string denoting the vulnerability_id field in the database. FieldVulnerabilityID = "vulnerability_id" // FieldTypeID holds the string denoting the type_id field in the database. FieldTypeID = "type_id" // EdgeType holds the string denoting the type edge name in mutations. EdgeType = "type" // EdgeVulnEquals holds the string denoting the vuln_equals edge name in mutations. EdgeVulnEquals = "vuln_equals" // Table holds the table name of the vulnerabilityid in the database. Table = "vulnerability_ids" // TypeTable is the table that holds the type relation/edge. TypeTable = "vulnerability_ids" // TypeInverseTable is the table name for the VulnerabilityType entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilitytype" package. TypeInverseTable = "vulnerability_types" // TypeColumn is the table column denoting the type relation/edge. TypeColumn = "type_id" // VulnEqualsTable is the table that holds the vuln_equals relation/edge. The primary key declared below. VulnEqualsTable = "vuln_equal_vulnerability_ids" // VulnEqualsInverseTable is the table name for the VulnEqual entity. // It exists in this package in order to avoid circular dependency with the "vulnequal" package. VulnEqualsInverseTable = "vuln_equals" )
Variables ¶
var Columns = []string{ FieldID, FieldVulnerabilityID, FieldTypeID, }
Columns holds all SQL columns for vulnerabilityid fields.
var ( // VulnEqualsPrimaryKey and VulnEqualsColumn2 are the table columns denoting the // primary key for the vuln_equals relation (M2M). VulnEqualsPrimaryKey = []string{"vuln_equal_id", "vulnerability_id_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
And groups predicates with the AND operator between them.
func HasType ¶
func HasType() predicate.VulnerabilityID
HasType applies the HasEdge predicate on the "type" edge.
func HasTypeWith ¶
func HasTypeWith(preds ...predicate.VulnerabilityType) predicate.VulnerabilityID
HasTypeWith applies the HasEdge predicate on the "type" edge with a given conditions (other predicates).
func HasVulnEquals ¶
func HasVulnEquals() predicate.VulnerabilityID
HasVulnEquals applies the HasEdge predicate on the "vuln_equals" edge.
func HasVulnEqualsWith ¶
func HasVulnEqualsWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
HasVulnEqualsWith applies the HasEdge predicate on the "vuln_equals" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.VulnerabilityID
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.VulnerabilityID
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.VulnerabilityID
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.VulnerabilityID
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.VulnerabilityID
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.VulnerabilityID
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.VulnerabilityID
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.VulnerabilityID
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VulnerabilityID) predicate.VulnerabilityID
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
Or groups predicates with the OR operator between them.
func TypeID ¶
func TypeID(v int) predicate.VulnerabilityID
TypeID applies equality check predicate on the "type_id" field. It's identical to TypeIDEQ.
func TypeIDEQ ¶
func TypeIDEQ(v int) predicate.VulnerabilityID
TypeIDEQ applies the EQ predicate on the "type_id" field.
func TypeIDIn ¶
func TypeIDIn(vs ...int) predicate.VulnerabilityID
TypeIDIn applies the In predicate on the "type_id" field.
func TypeIDNEQ ¶
func TypeIDNEQ(v int) predicate.VulnerabilityID
TypeIDNEQ applies the NEQ predicate on the "type_id" field.
func TypeIDNotIn ¶
func TypeIDNotIn(vs ...int) predicate.VulnerabilityID
TypeIDNotIn applies the NotIn predicate on the "type_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VulnerabilityID ¶
func VulnerabilityID(v string) predicate.VulnerabilityID
VulnerabilityID applies equality check predicate on the "vulnerability_id" field. It's identical to VulnerabilityIDEQ.
func VulnerabilityIDContains ¶
func VulnerabilityIDContains(v string) predicate.VulnerabilityID
VulnerabilityIDContains applies the Contains predicate on the "vulnerability_id" field.
func VulnerabilityIDContainsFold ¶
func VulnerabilityIDContainsFold(v string) predicate.VulnerabilityID
VulnerabilityIDContainsFold applies the ContainsFold predicate on the "vulnerability_id" field.
func VulnerabilityIDEQ ¶
func VulnerabilityIDEQ(v string) predicate.VulnerabilityID
VulnerabilityIDEQ applies the EQ predicate on the "vulnerability_id" field.
func VulnerabilityIDEqualFold ¶
func VulnerabilityIDEqualFold(v string) predicate.VulnerabilityID
VulnerabilityIDEqualFold applies the EqualFold predicate on the "vulnerability_id" field.
func VulnerabilityIDGT ¶
func VulnerabilityIDGT(v string) predicate.VulnerabilityID
VulnerabilityIDGT applies the GT predicate on the "vulnerability_id" field.
func VulnerabilityIDGTE ¶
func VulnerabilityIDGTE(v string) predicate.VulnerabilityID
VulnerabilityIDGTE applies the GTE predicate on the "vulnerability_id" field.
func VulnerabilityIDHasPrefix ¶
func VulnerabilityIDHasPrefix(v string) predicate.VulnerabilityID
VulnerabilityIDHasPrefix applies the HasPrefix predicate on the "vulnerability_id" field.
func VulnerabilityIDHasSuffix ¶
func VulnerabilityIDHasSuffix(v string) predicate.VulnerabilityID
VulnerabilityIDHasSuffix applies the HasSuffix predicate on the "vulnerability_id" field.
func VulnerabilityIDIn ¶
func VulnerabilityIDIn(vs ...string) predicate.VulnerabilityID
VulnerabilityIDIn applies the In predicate on the "vulnerability_id" field.
func VulnerabilityIDLT ¶
func VulnerabilityIDLT(v string) predicate.VulnerabilityID
VulnerabilityIDLT applies the LT predicate on the "vulnerability_id" field.
func VulnerabilityIDLTE ¶
func VulnerabilityIDLTE(v string) predicate.VulnerabilityID
VulnerabilityIDLTE applies the LTE predicate on the "vulnerability_id" field.
func VulnerabilityIDNEQ ¶
func VulnerabilityIDNEQ(v string) predicate.VulnerabilityID
VulnerabilityIDNEQ applies the NEQ predicate on the "vulnerability_id" field.
func VulnerabilityIDNotIn ¶
func VulnerabilityIDNotIn(vs ...string) predicate.VulnerabilityID
VulnerabilityIDNotIn applies the NotIn predicate on the "vulnerability_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VulnerabilityID queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTypeField ¶
func ByTypeField(field string, opts ...sql.OrderTermOption) OrderOption
ByTypeField orders the results by type field.
func ByTypeID ¶
func ByTypeID(opts ...sql.OrderTermOption) OrderOption
ByTypeID orders the results by the type_id field.
func ByVulnEquals ¶
func ByVulnEquals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVulnEquals orders the results by vuln_equals terms.
func ByVulnEqualsCount ¶
func ByVulnEqualsCount(opts ...sql.OrderTermOption) OrderOption
ByVulnEqualsCount orders the results by vuln_equals count.
func ByVulnerabilityID ¶
func ByVulnerabilityID(opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityID orders the results by the vulnerability_id field.