Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VulnerabilityType) predicate.VulnerabilityType
- func HasVulnerabilityIds() predicate.VulnerabilityType
- func HasVulnerabilityIdsWith(preds ...predicate.VulnerabilityID) predicate.VulnerabilityType
- func ID(id int) predicate.VulnerabilityType
- func IDEQ(id int) predicate.VulnerabilityType
- func IDGT(id int) predicate.VulnerabilityType
- func IDGTE(id int) predicate.VulnerabilityType
- func IDIn(ids ...int) predicate.VulnerabilityType
- func IDLT(id int) predicate.VulnerabilityType
- func IDLTE(id int) predicate.VulnerabilityType
- func IDNEQ(id int) predicate.VulnerabilityType
- func IDNotIn(ids ...int) predicate.VulnerabilityType
- func Not(p predicate.VulnerabilityType) predicate.VulnerabilityType
- func Or(predicates ...predicate.VulnerabilityType) predicate.VulnerabilityType
- func Type(v string) predicate.VulnerabilityType
- func TypeContains(v string) predicate.VulnerabilityType
- func TypeContainsFold(v string) predicate.VulnerabilityType
- func TypeEQ(v string) predicate.VulnerabilityType
- func TypeEqualFold(v string) predicate.VulnerabilityType
- func TypeGT(v string) predicate.VulnerabilityType
- func TypeGTE(v string) predicate.VulnerabilityType
- func TypeHasPrefix(v string) predicate.VulnerabilityType
- func TypeHasSuffix(v string) predicate.VulnerabilityType
- func TypeIn(vs ...string) predicate.VulnerabilityType
- func TypeLT(v string) predicate.VulnerabilityType
- func TypeLTE(v string) predicate.VulnerabilityType
- func TypeNEQ(v string) predicate.VulnerabilityType
- func TypeNotIn(vs ...string) predicate.VulnerabilityType
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the vulnerabilitytype type in the database. Label = "vulnerability_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeVulnerabilityIds holds the string denoting the vulnerability_ids edge name in mutations. EdgeVulnerabilityIds = "vulnerability_ids" // Table holds the table name of the vulnerabilitytype in the database. Table = "vulnerability_types" // VulnerabilityIdsTable is the table that holds the vulnerability_ids relation/edge. VulnerabilityIdsTable = "vulnerability_ids" // VulnerabilityIdsInverseTable is the table name for the VulnerabilityID entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package. VulnerabilityIdsInverseTable = "vulnerability_ids" // VulnerabilityIdsColumn is the table column denoting the vulnerability_ids relation/edge. VulnerabilityIdsColumn = "type_id" )
Variables ¶
var Columns = []string{ FieldID, FieldType, }
Columns holds all SQL columns for vulnerabilitytype fields.
var ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.VulnerabilityType) predicate.VulnerabilityType
And groups predicates with the AND operator between them.
func HasVulnerabilityIds ¶
func HasVulnerabilityIds() predicate.VulnerabilityType
HasVulnerabilityIds applies the HasEdge predicate on the "vulnerability_ids" edge.
func HasVulnerabilityIdsWith ¶
func HasVulnerabilityIdsWith(preds ...predicate.VulnerabilityID) predicate.VulnerabilityType
HasVulnerabilityIdsWith applies the HasEdge predicate on the "vulnerability_ids" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.VulnerabilityType
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.VulnerabilityType
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.VulnerabilityType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.VulnerabilityType
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.VulnerabilityType
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.VulnerabilityType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.VulnerabilityType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.VulnerabilityType
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VulnerabilityType) predicate.VulnerabilityType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VulnerabilityType) predicate.VulnerabilityType
Or groups predicates with the OR operator between them.
func Type ¶
func Type(v string) predicate.VulnerabilityType
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.VulnerabilityType
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.VulnerabilityType
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.VulnerabilityType
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.VulnerabilityType
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.VulnerabilityType
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.VulnerabilityType
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.VulnerabilityType
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.VulnerabilityType
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.VulnerabilityType
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.VulnerabilityType
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.VulnerabilityType
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.VulnerabilityType
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.VulnerabilityType
TypeNotIn applies the NotIn predicate on the "type" 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 VulnerabilityType queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByVulnerabilityIds ¶
func ByVulnerabilityIds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVulnerabilityIds orders the results by vulnerability_ids terms.
func ByVulnerabilityIdsCount ¶
func ByVulnerabilityIdsCount(opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityIdsCount orders the results by vulnerability_ids count.