Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PackageVersion) predicate.PackageVersion
- func HasIncludedInSboms() predicate.PackageVersion
- func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.PackageVersion
- func HasName() predicate.PackageVersion
- func HasNameWith(preds ...predicate.PackageName) predicate.PackageVersion
- func HasOccurrences() predicate.PackageVersion
- func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.PackageVersion
- func HasPkgEqualPkgA() predicate.PackageVersion
- func HasPkgEqualPkgAWith(preds ...predicate.PkgEqual) predicate.PackageVersion
- func HasPkgEqualPkgB() predicate.PackageVersion
- func HasPkgEqualPkgBWith(preds ...predicate.PkgEqual) predicate.PackageVersion
- func HasSbom() predicate.PackageVersion
- func HasSbomWith(preds ...predicate.BillOfMaterials) predicate.PackageVersion
- func Hash(v string) predicate.PackageVersion
- func HashContains(v string) predicate.PackageVersion
- func HashContainsFold(v string) predicate.PackageVersion
- func HashEQ(v string) predicate.PackageVersion
- func HashEqualFold(v string) predicate.PackageVersion
- func HashGT(v string) predicate.PackageVersion
- func HashGTE(v string) predicate.PackageVersion
- func HashHasPrefix(v string) predicate.PackageVersion
- func HashHasSuffix(v string) predicate.PackageVersion
- func HashIn(vs ...string) predicate.PackageVersion
- func HashLT(v string) predicate.PackageVersion
- func HashLTE(v string) predicate.PackageVersion
- func HashNEQ(v string) predicate.PackageVersion
- func HashNotIn(vs ...string) predicate.PackageVersion
- func ID(id uuid.UUID) predicate.PackageVersion
- func IDEQ(id uuid.UUID) predicate.PackageVersion
- func IDGT(id uuid.UUID) predicate.PackageVersion
- func IDGTE(id uuid.UUID) predicate.PackageVersion
- func IDIn(ids ...uuid.UUID) predicate.PackageVersion
- func IDLT(id uuid.UUID) predicate.PackageVersion
- func IDLTE(id uuid.UUID) predicate.PackageVersion
- func IDNEQ(id uuid.UUID) predicate.PackageVersion
- func IDNotIn(ids ...uuid.UUID) predicate.PackageVersion
- func NameID(v uuid.UUID) predicate.PackageVersion
- func NameIDEQ(v uuid.UUID) predicate.PackageVersion
- func NameIDIn(vs ...uuid.UUID) predicate.PackageVersion
- func NameIDNEQ(v uuid.UUID) predicate.PackageVersion
- func NameIDNotIn(vs ...uuid.UUID) predicate.PackageVersion
- func Not(p predicate.PackageVersion) predicate.PackageVersion
- func Or(predicates ...predicate.PackageVersion) predicate.PackageVersion
- func QualifiersContains(key, value string) func(*sql.Selector)
- func QualifiersIsEmpty() func(*sql.Selector)
- func QualifiersIsNil() predicate.PackageVersion
- func QualifiersMatch(spec []*model.PackageQualifierSpec, matchOnlyEmptyQualifiers bool) func(*sql.Selector)
- func QualifiersNotNil() predicate.PackageVersion
- func QualifiersWithKeys(key string, keys ...string) func(*sql.Selector)
- func Subpath(v string) predicate.PackageVersion
- func SubpathContains(v string) predicate.PackageVersion
- func SubpathContainsFold(v string) predicate.PackageVersion
- func SubpathEQ(v string) predicate.PackageVersion
- func SubpathEqualFold(v string) predicate.PackageVersion
- func SubpathGT(v string) predicate.PackageVersion
- func SubpathGTE(v string) predicate.PackageVersion
- func SubpathHasPrefix(v string) predicate.PackageVersion
- func SubpathHasSuffix(v string) predicate.PackageVersion
- func SubpathIn(vs ...string) predicate.PackageVersion
- func SubpathLT(v string) predicate.PackageVersion
- func SubpathLTE(v string) predicate.PackageVersion
- func SubpathNEQ(v string) predicate.PackageVersion
- func SubpathNotIn(vs ...string) predicate.PackageVersion
- func ValidColumn(column string) bool
- func Version(v string) predicate.PackageVersion
- func VersionContains(v string) predicate.PackageVersion
- func VersionContainsFold(v string) predicate.PackageVersion
- func VersionEQ(v string) predicate.PackageVersion
- func VersionEqualFold(v string) predicate.PackageVersion
- func VersionGT(v string) predicate.PackageVersion
- func VersionGTE(v string) predicate.PackageVersion
- func VersionHasPrefix(v string) predicate.PackageVersion
- func VersionHasSuffix(v string) predicate.PackageVersion
- func VersionIn(vs ...string) predicate.PackageVersion
- func VersionLT(v string) predicate.PackageVersion
- func VersionLTE(v string) predicate.PackageVersion
- func VersionNEQ(v string) predicate.PackageVersion
- func VersionNotIn(vs ...string) predicate.PackageVersion
- type OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIncludedInSboms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIncludedInSbomsCount(opts ...sql.OrderTermOption) OrderOption
- func ByNameField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNameID(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPkgEqualPkgA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPkgEqualPkgACount(opts ...sql.OrderTermOption) OrderOption
- func ByPkgEqualPkgB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPkgEqualPkgBCount(opts ...sql.OrderTermOption) OrderOption
- func BySbom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySbomCount(opts ...sql.OrderTermOption) OrderOption
- func BySubpath(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the packageversion type in the database. Label = "package_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNameID holds the string denoting the name_id field in the database. FieldNameID = "name_id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldSubpath holds the string denoting the subpath field in the database. FieldSubpath = "subpath" // FieldQualifiers holds the string denoting the qualifiers field in the database. FieldQualifiers = "qualifiers" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // EdgeName holds the string denoting the name edge name in mutations. EdgeName = "name" // EdgeOccurrences holds the string denoting the occurrences edge name in mutations. EdgeOccurrences = "occurrences" // EdgeSbom holds the string denoting the sbom edge name in mutations. EdgeSbom = "sbom" // EdgeIncludedInSboms holds the string denoting the included_in_sboms edge name in mutations. EdgeIncludedInSboms = "included_in_sboms" // EdgePkgEqualPkgA holds the string denoting the pkg_equal_pkg_a edge name in mutations. EdgePkgEqualPkgA = "pkg_equal_pkg_a" // EdgePkgEqualPkgB holds the string denoting the pkg_equal_pkg_b edge name in mutations. EdgePkgEqualPkgB = "pkg_equal_pkg_b" // Table holds the table name of the packageversion in the database. Table = "package_versions" // NameTable is the table that holds the name relation/edge. NameTable = "package_versions" // NameInverseTable is the table name for the PackageName entity. // It exists in this package in order to avoid circular dependency with the "packagename" package. NameInverseTable = "package_names" // NameColumn is the table column denoting the name relation/edge. NameColumn = "name_id" // OccurrencesTable is the table that holds the occurrences relation/edge. OccurrencesTable = "occurrences" // OccurrencesInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. OccurrencesInverseTable = "occurrences" // OccurrencesColumn is the table column denoting the occurrences relation/edge. OccurrencesColumn = "package_id" // SbomTable is the table that holds the sbom relation/edge. SbomTable = "bill_of_materials" // SbomInverseTable is the table name for the BillOfMaterials entity. // It exists in this package in order to avoid circular dependency with the "billofmaterials" package. SbomInverseTable = "bill_of_materials" // SbomColumn is the table column denoting the sbom relation/edge. SbomColumn = "package_id" // IncludedInSbomsTable is the table that holds the included_in_sboms relation/edge. The primary key declared below. IncludedInSbomsTable = "bill_of_materials_included_software_packages" // IncludedInSbomsInverseTable is the table name for the BillOfMaterials entity. // It exists in this package in order to avoid circular dependency with the "billofmaterials" package. IncludedInSbomsInverseTable = "bill_of_materials" // PkgEqualPkgATable is the table that holds the pkg_equal_pkg_a relation/edge. PkgEqualPkgATable = "pkg_equals" // PkgEqualPkgAInverseTable is the table name for the PkgEqual entity. // It exists in this package in order to avoid circular dependency with the "pkgequal" package. PkgEqualPkgAInverseTable = "pkg_equals" // PkgEqualPkgAColumn is the table column denoting the pkg_equal_pkg_a relation/edge. PkgEqualPkgAColumn = "pkg_id" // PkgEqualPkgBTable is the table that holds the pkg_equal_pkg_b relation/edge. PkgEqualPkgBTable = "pkg_equals" // PkgEqualPkgBInverseTable is the table name for the PkgEqual entity. // It exists in this package in order to avoid circular dependency with the "pkgequal" package. PkgEqualPkgBInverseTable = "pkg_equals" // PkgEqualPkgBColumn is the table column denoting the pkg_equal_pkg_b relation/edge. PkgEqualPkgBColumn = "equal_pkg_id" )
Variables ¶
var ( // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion string // DefaultSubpath holds the default value on creation for the "subpath" field. DefaultSubpath string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldNameID, FieldVersion, FieldSubpath, FieldQualifiers, FieldHash, }
Columns holds all SQL columns for packageversion fields.
var ( // IncludedInSbomsPrimaryKey and IncludedInSbomsColumn2 are the table columns denoting the // primary key for the included_in_sboms relation (M2M). IncludedInSbomsPrimaryKey = []string{"bill_of_materials_id", "package_version_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.PackageVersion) predicate.PackageVersion
And groups predicates with the AND operator between them.
func HasIncludedInSboms ¶ added in v0.4.0
func HasIncludedInSboms() predicate.PackageVersion
HasIncludedInSboms applies the HasEdge predicate on the "included_in_sboms" edge.
func HasIncludedInSbomsWith ¶ added in v0.4.0
func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.PackageVersion
HasIncludedInSbomsWith applies the HasEdge predicate on the "included_in_sboms" edge with a given conditions (other predicates).
func HasName ¶
func HasName() predicate.PackageVersion
HasName applies the HasEdge predicate on the "name" edge.
func HasNameWith ¶
func HasNameWith(preds ...predicate.PackageName) predicate.PackageVersion
HasNameWith applies the HasEdge predicate on the "name" edge with a given conditions (other predicates).
func HasOccurrences ¶
func HasOccurrences() predicate.PackageVersion
HasOccurrences applies the HasEdge predicate on the "occurrences" edge.
func HasOccurrencesWith ¶
func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.PackageVersion
HasOccurrencesWith applies the HasEdge predicate on the "occurrences" edge with a given conditions (other predicates).
func HasPkgEqualPkgA ¶ added in v0.5.0
func HasPkgEqualPkgA() predicate.PackageVersion
HasPkgEqualPkgA applies the HasEdge predicate on the "pkg_equal_pkg_a" edge.
func HasPkgEqualPkgAWith ¶ added in v0.5.0
func HasPkgEqualPkgAWith(preds ...predicate.PkgEqual) predicate.PackageVersion
HasPkgEqualPkgAWith applies the HasEdge predicate on the "pkg_equal_pkg_a" edge with a given conditions (other predicates).
func HasPkgEqualPkgB ¶ added in v0.5.0
func HasPkgEqualPkgB() predicate.PackageVersion
HasPkgEqualPkgB applies the HasEdge predicate on the "pkg_equal_pkg_b" edge.
func HasPkgEqualPkgBWith ¶ added in v0.5.0
func HasPkgEqualPkgBWith(preds ...predicate.PkgEqual) predicate.PackageVersion
HasPkgEqualPkgBWith applies the HasEdge predicate on the "pkg_equal_pkg_b" edge with a given conditions (other predicates).
func HasSbom ¶
func HasSbom() predicate.PackageVersion
HasSbom applies the HasEdge predicate on the "sbom" edge.
func HasSbomWith ¶
func HasSbomWith(preds ...predicate.BillOfMaterials) predicate.PackageVersion
HasSbomWith applies the HasEdge predicate on the "sbom" edge with a given conditions (other predicates).
func Hash ¶
func Hash(v string) predicate.PackageVersion
Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.
func HashContains ¶
func HashContains(v string) predicate.PackageVersion
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
func HashContainsFold(v string) predicate.PackageVersion
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEQ ¶
func HashEQ(v string) predicate.PackageVersion
HashEQ applies the EQ predicate on the "hash" field.
func HashEqualFold ¶
func HashEqualFold(v string) predicate.PackageVersion
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashGT ¶
func HashGT(v string) predicate.PackageVersion
HashGT applies the GT predicate on the "hash" field.
func HashGTE ¶
func HashGTE(v string) predicate.PackageVersion
HashGTE applies the GTE predicate on the "hash" field.
func HashHasPrefix ¶
func HashHasPrefix(v string) predicate.PackageVersion
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
func HashHasSuffix(v string) predicate.PackageVersion
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func HashIn ¶
func HashIn(vs ...string) predicate.PackageVersion
HashIn applies the In predicate on the "hash" field.
func HashLT ¶
func HashLT(v string) predicate.PackageVersion
HashLT applies the LT predicate on the "hash" field.
func HashLTE ¶
func HashLTE(v string) predicate.PackageVersion
HashLTE applies the LTE predicate on the "hash" field.
func HashNEQ ¶
func HashNEQ(v string) predicate.PackageVersion
HashNEQ applies the NEQ predicate on the "hash" field.
func HashNotIn ¶
func HashNotIn(vs ...string) predicate.PackageVersion
HashNotIn applies the NotIn predicate on the "hash" field.
func ID ¶
func ID(id uuid.UUID) predicate.PackageVersion
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.PackageVersion
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.PackageVersion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.PackageVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.PackageVersion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.PackageVersion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.PackageVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.PackageVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.PackageVersion
IDNotIn applies the NotIn predicate on the ID field.
func NameID ¶
func NameID(v uuid.UUID) predicate.PackageVersion
NameID applies equality check predicate on the "name_id" field. It's identical to NameIDEQ.
func NameIDEQ ¶
func NameIDEQ(v uuid.UUID) predicate.PackageVersion
NameIDEQ applies the EQ predicate on the "name_id" field.
func NameIDIn ¶
func NameIDIn(vs ...uuid.UUID) predicate.PackageVersion
NameIDIn applies the In predicate on the "name_id" field.
func NameIDNEQ ¶
func NameIDNEQ(v uuid.UUID) predicate.PackageVersion
NameIDNEQ applies the NEQ predicate on the "name_id" field.
func NameIDNotIn ¶
func NameIDNotIn(vs ...uuid.UUID) predicate.PackageVersion
NameIDNotIn applies the NotIn predicate on the "name_id" field.
func Not ¶
func Not(p predicate.PackageVersion) predicate.PackageVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PackageVersion) predicate.PackageVersion
Or groups predicates with the OR operator between them.
func QualifiersContains ¶
QualifiersContains filters out package versions that do not have the given qualifier key/value pair.
func QualifiersIsEmpty ¶
QualifiersIsEmpty filters out package versions that have no qualifiers. It accounts for null, empty array, and null literal json value.
func QualifiersIsNil ¶
func QualifiersIsNil() predicate.PackageVersion
QualifiersIsNil applies the IsNil predicate on the "qualifiers" field.
func QualifiersMatch ¶
func QualifiersMatch(spec []*model.PackageQualifierSpec, matchOnlyEmptyQualifiers bool) func(*sql.Selector)
QualifiersMatch constructs a JSON field query for the given qualifiers. If the value is nil, it will query for the key only. If the value is not nil, it will query for the key/value pair. Each additional spec will be ANDed together.
func QualifiersNotNil ¶
func QualifiersNotNil() predicate.PackageVersion
QualifiersNotNil applies the NotNil predicate on the "qualifiers" field.
func QualifiersWithKeys ¶
QualifiersWithKeys filters out package versions that do not have the given qualifier keys.
func Subpath ¶
func Subpath(v string) predicate.PackageVersion
Subpath applies equality check predicate on the "subpath" field. It's identical to SubpathEQ.
func SubpathContains ¶
func SubpathContains(v string) predicate.PackageVersion
SubpathContains applies the Contains predicate on the "subpath" field.
func SubpathContainsFold ¶
func SubpathContainsFold(v string) predicate.PackageVersion
SubpathContainsFold applies the ContainsFold predicate on the "subpath" field.
func SubpathEQ ¶
func SubpathEQ(v string) predicate.PackageVersion
SubpathEQ applies the EQ predicate on the "subpath" field.
func SubpathEqualFold ¶
func SubpathEqualFold(v string) predicate.PackageVersion
SubpathEqualFold applies the EqualFold predicate on the "subpath" field.
func SubpathGT ¶
func SubpathGT(v string) predicate.PackageVersion
SubpathGT applies the GT predicate on the "subpath" field.
func SubpathGTE ¶
func SubpathGTE(v string) predicate.PackageVersion
SubpathGTE applies the GTE predicate on the "subpath" field.
func SubpathHasPrefix ¶
func SubpathHasPrefix(v string) predicate.PackageVersion
SubpathHasPrefix applies the HasPrefix predicate on the "subpath" field.
func SubpathHasSuffix ¶
func SubpathHasSuffix(v string) predicate.PackageVersion
SubpathHasSuffix applies the HasSuffix predicate on the "subpath" field.
func SubpathIn ¶
func SubpathIn(vs ...string) predicate.PackageVersion
SubpathIn applies the In predicate on the "subpath" field.
func SubpathLT ¶
func SubpathLT(v string) predicate.PackageVersion
SubpathLT applies the LT predicate on the "subpath" field.
func SubpathLTE ¶
func SubpathLTE(v string) predicate.PackageVersion
SubpathLTE applies the LTE predicate on the "subpath" field.
func SubpathNEQ ¶
func SubpathNEQ(v string) predicate.PackageVersion
SubpathNEQ applies the NEQ predicate on the "subpath" field.
func SubpathNotIn ¶
func SubpathNotIn(vs ...string) predicate.PackageVersion
SubpathNotIn applies the NotIn predicate on the "subpath" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v string) predicate.PackageVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.PackageVersion
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.PackageVersion
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.PackageVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.PackageVersion
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.PackageVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.PackageVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.PackageVersion
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.PackageVersion
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.PackageVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.PackageVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.PackageVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.PackageVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.PackageVersion
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the PackageVersion queries.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIncludedInSboms ¶ added in v0.4.0
func ByIncludedInSboms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIncludedInSboms orders the results by included_in_sboms terms.
func ByIncludedInSbomsCount ¶ added in v0.4.0
func ByIncludedInSbomsCount(opts ...sql.OrderTermOption) OrderOption
ByIncludedInSbomsCount orders the results by included_in_sboms count.
func ByNameField ¶
func ByNameField(field string, opts ...sql.OrderTermOption) OrderOption
ByNameField orders the results by name field.
func ByNameID ¶
func ByNameID(opts ...sql.OrderTermOption) OrderOption
ByNameID orders the results by the name_id field.
func ByOccurrences ¶
func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOccurrences orders the results by occurrences terms.
func ByOccurrencesCount ¶
func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
ByOccurrencesCount orders the results by occurrences count.
func ByPkgEqualPkgA ¶ added in v0.5.0
func ByPkgEqualPkgA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPkgEqualPkgA orders the results by pkg_equal_pkg_a terms.
func ByPkgEqualPkgACount ¶ added in v0.5.0
func ByPkgEqualPkgACount(opts ...sql.OrderTermOption) OrderOption
ByPkgEqualPkgACount orders the results by pkg_equal_pkg_a count.
func ByPkgEqualPkgB ¶ added in v0.5.0
func ByPkgEqualPkgB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPkgEqualPkgB orders the results by pkg_equal_pkg_b terms.
func ByPkgEqualPkgBCount ¶ added in v0.5.0
func ByPkgEqualPkgBCount(opts ...sql.OrderTermOption) OrderOption
ByPkgEqualPkgBCount orders the results by pkg_equal_pkg_b count.
func BySbom ¶
func BySbom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySbom orders the results by sbom terms.
func BySbomCount ¶
func BySbomCount(opts ...sql.OrderTermOption) OrderOption
BySbomCount orders the results by sbom count.
func BySubpath ¶
func BySubpath(opts ...sql.OrderTermOption) OrderOption
BySubpath orders the results by the subpath field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.