Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PkgEqual) predicate.PkgEqual
- func Collector(v string) predicate.PkgEqual
- func CollectorContains(v string) predicate.PkgEqual
- func CollectorContainsFold(v string) predicate.PkgEqual
- func CollectorEQ(v string) predicate.PkgEqual
- func CollectorEqualFold(v string) predicate.PkgEqual
- func CollectorGT(v string) predicate.PkgEqual
- func CollectorGTE(v string) predicate.PkgEqual
- func CollectorHasPrefix(v string) predicate.PkgEqual
- func CollectorHasSuffix(v string) predicate.PkgEqual
- func CollectorIn(vs ...string) predicate.PkgEqual
- func CollectorLT(v string) predicate.PkgEqual
- func CollectorLTE(v string) predicate.PkgEqual
- func CollectorNEQ(v string) predicate.PkgEqual
- func CollectorNotIn(vs ...string) predicate.PkgEqual
- func EqualPkgID(v uuid.UUID) predicate.PkgEqual
- func EqualPkgIDEQ(v uuid.UUID) predicate.PkgEqual
- func EqualPkgIDIn(vs ...uuid.UUID) predicate.PkgEqual
- func EqualPkgIDNEQ(v uuid.UUID) predicate.PkgEqual
- func EqualPkgIDNotIn(vs ...uuid.UUID) predicate.PkgEqual
- func HasPackageA() predicate.PkgEqual
- func HasPackageAWith(preds ...predicate.PackageVersion) predicate.PkgEqual
- func HasPackageB() predicate.PkgEqual
- func HasPackageBWith(preds ...predicate.PackageVersion) predicate.PkgEqual
- func ID(id uuid.UUID) predicate.PkgEqual
- func IDEQ(id uuid.UUID) predicate.PkgEqual
- func IDGT(id uuid.UUID) predicate.PkgEqual
- func IDGTE(id uuid.UUID) predicate.PkgEqual
- func IDIn(ids ...uuid.UUID) predicate.PkgEqual
- func IDLT(id uuid.UUID) predicate.PkgEqual
- func IDLTE(id uuid.UUID) predicate.PkgEqual
- func IDNEQ(id uuid.UUID) predicate.PkgEqual
- func IDNotIn(ids ...uuid.UUID) predicate.PkgEqual
- func Justification(v string) predicate.PkgEqual
- func JustificationContains(v string) predicate.PkgEqual
- func JustificationContainsFold(v string) predicate.PkgEqual
- func JustificationEQ(v string) predicate.PkgEqual
- func JustificationEqualFold(v string) predicate.PkgEqual
- func JustificationGT(v string) predicate.PkgEqual
- func JustificationGTE(v string) predicate.PkgEqual
- func JustificationHasPrefix(v string) predicate.PkgEqual
- func JustificationHasSuffix(v string) predicate.PkgEqual
- func JustificationIn(vs ...string) predicate.PkgEqual
- func JustificationLT(v string) predicate.PkgEqual
- func JustificationLTE(v string) predicate.PkgEqual
- func JustificationNEQ(v string) predicate.PkgEqual
- func JustificationNotIn(vs ...string) predicate.PkgEqual
- func Not(p predicate.PkgEqual) predicate.PkgEqual
- func Or(predicates ...predicate.PkgEqual) predicate.PkgEqual
- func Origin(v string) predicate.PkgEqual
- func OriginContains(v string) predicate.PkgEqual
- func OriginContainsFold(v string) predicate.PkgEqual
- func OriginEQ(v string) predicate.PkgEqual
- func OriginEqualFold(v string) predicate.PkgEqual
- func OriginGT(v string) predicate.PkgEqual
- func OriginGTE(v string) predicate.PkgEqual
- func OriginHasPrefix(v string) predicate.PkgEqual
- func OriginHasSuffix(v string) predicate.PkgEqual
- func OriginIn(vs ...string) predicate.PkgEqual
- func OriginLT(v string) predicate.PkgEqual
- func OriginLTE(v string) predicate.PkgEqual
- func OriginNEQ(v string) predicate.PkgEqual
- func OriginNotIn(vs ...string) predicate.PkgEqual
- func PackagesHash(v string) predicate.PkgEqual
- func PackagesHashContains(v string) predicate.PkgEqual
- func PackagesHashContainsFold(v string) predicate.PkgEqual
- func PackagesHashEQ(v string) predicate.PkgEqual
- func PackagesHashEqualFold(v string) predicate.PkgEqual
- func PackagesHashGT(v string) predicate.PkgEqual
- func PackagesHashGTE(v string) predicate.PkgEqual
- func PackagesHashHasPrefix(v string) predicate.PkgEqual
- func PackagesHashHasSuffix(v string) predicate.PkgEqual
- func PackagesHashIn(vs ...string) predicate.PkgEqual
- func PackagesHashLT(v string) predicate.PkgEqual
- func PackagesHashLTE(v string) predicate.PkgEqual
- func PackagesHashNEQ(v string) predicate.PkgEqual
- func PackagesHashNotIn(vs ...string) predicate.PkgEqual
- func PkgID(v uuid.UUID) predicate.PkgEqual
- func PkgIDEQ(v uuid.UUID) predicate.PkgEqual
- func PkgIDIn(vs ...uuid.UUID) predicate.PkgEqual
- func PkgIDNEQ(v uuid.UUID) predicate.PkgEqual
- func PkgIDNotIn(vs ...uuid.UUID) predicate.PkgEqual
- func ValidColumn(column string) bool
- type OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByEqualPkgID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJustification(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByPackageAField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageBField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackagesHash(opts ...sql.OrderTermOption) OrderOption
- func ByPkgID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the pkgequal type in the database. Label = "pkg_equal" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPkgID holds the string denoting the pkg_id field in the database. FieldPkgID = "pkg_id" // FieldEqualPkgID holds the string denoting the equal_pkg_id field in the database. FieldEqualPkgID = "equal_pkg_id" // FieldOrigin holds the string denoting the origin field in the database. FieldOrigin = "origin" // FieldCollector holds the string denoting the collector field in the database. FieldCollector = "collector" // FieldJustification holds the string denoting the justification field in the database. FieldJustification = "justification" // FieldPackagesHash holds the string denoting the packages_hash field in the database. FieldPackagesHash = "packages_hash" // EdgePackageA holds the string denoting the package_a edge name in mutations. EdgePackageA = "package_a" // EdgePackageB holds the string denoting the package_b edge name in mutations. EdgePackageB = "package_b" // Table holds the table name of the pkgequal in the database. Table = "pkg_equals" // PackageATable is the table that holds the package_a relation/edge. PackageATable = "pkg_equals" // PackageAInverseTable is the table name for the PackageVersion entity. // It exists in this package in order to avoid circular dependency with the "packageversion" package. PackageAInverseTable = "package_versions" // PackageAColumn is the table column denoting the package_a relation/edge. PackageAColumn = "pkg_id" // PackageBTable is the table that holds the package_b relation/edge. PackageBTable = "pkg_equals" // PackageBInverseTable is the table name for the PackageVersion entity. // It exists in this package in order to avoid circular dependency with the "packageversion" package. PackageBInverseTable = "package_versions" // PackageBColumn is the table column denoting the package_b relation/edge. PackageBColumn = "equal_pkg_id" )
Variables ¶
var Columns = []string{ FieldID, FieldPkgID, FieldEqualPkgID, FieldOrigin, FieldCollector, FieldJustification, FieldPackagesHash, }
Columns holds all SQL columns for pkgequal fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func Collector ¶
Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.
func CollectorContains ¶
CollectorContains applies the Contains predicate on the "collector" field.
func CollectorContainsFold ¶
CollectorContainsFold applies the ContainsFold predicate on the "collector" field.
func CollectorEQ ¶
CollectorEQ applies the EQ predicate on the "collector" field.
func CollectorEqualFold ¶
CollectorEqualFold applies the EqualFold predicate on the "collector" field.
func CollectorGT ¶
CollectorGT applies the GT predicate on the "collector" field.
func CollectorGTE ¶
CollectorGTE applies the GTE predicate on the "collector" field.
func CollectorHasPrefix ¶
CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.
func CollectorHasSuffix ¶
CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.
func CollectorIn ¶
CollectorIn applies the In predicate on the "collector" field.
func CollectorLT ¶
CollectorLT applies the LT predicate on the "collector" field.
func CollectorLTE ¶
CollectorLTE applies the LTE predicate on the "collector" field.
func CollectorNEQ ¶
CollectorNEQ applies the NEQ predicate on the "collector" field.
func CollectorNotIn ¶
CollectorNotIn applies the NotIn predicate on the "collector" field.
func EqualPkgID ¶ added in v0.5.0
EqualPkgID applies equality check predicate on the "equal_pkg_id" field. It's identical to EqualPkgIDEQ.
func EqualPkgIDEQ ¶ added in v0.5.0
EqualPkgIDEQ applies the EQ predicate on the "equal_pkg_id" field.
func EqualPkgIDIn ¶ added in v0.5.0
EqualPkgIDIn applies the In predicate on the "equal_pkg_id" field.
func EqualPkgIDNEQ ¶ added in v0.5.0
EqualPkgIDNEQ applies the NEQ predicate on the "equal_pkg_id" field.
func EqualPkgIDNotIn ¶ added in v0.5.0
EqualPkgIDNotIn applies the NotIn predicate on the "equal_pkg_id" field.
func HasPackageA ¶ added in v0.5.0
HasPackageA applies the HasEdge predicate on the "package_a" edge.
func HasPackageAWith ¶ added in v0.5.0
func HasPackageAWith(preds ...predicate.PackageVersion) predicate.PkgEqual
HasPackageAWith applies the HasEdge predicate on the "package_a" edge with a given conditions (other predicates).
func HasPackageB ¶ added in v0.5.0
HasPackageB applies the HasEdge predicate on the "package_b" edge.
func HasPackageBWith ¶ added in v0.5.0
func HasPackageBWith(preds ...predicate.PackageVersion) predicate.PkgEqual
HasPackageBWith applies the HasEdge predicate on the "package_b" edge with a given conditions (other predicates).
func Justification ¶
Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.
func JustificationContains ¶
JustificationContains applies the Contains predicate on the "justification" field.
func JustificationContainsFold ¶
JustificationContainsFold applies the ContainsFold predicate on the "justification" field.
func JustificationEQ ¶
JustificationEQ applies the EQ predicate on the "justification" field.
func JustificationEqualFold ¶
JustificationEqualFold applies the EqualFold predicate on the "justification" field.
func JustificationGT ¶
JustificationGT applies the GT predicate on the "justification" field.
func JustificationGTE ¶
JustificationGTE applies the GTE predicate on the "justification" field.
func JustificationHasPrefix ¶
JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.
func JustificationHasSuffix ¶
JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.
func JustificationIn ¶
JustificationIn applies the In predicate on the "justification" field.
func JustificationLT ¶
JustificationLT applies the LT predicate on the "justification" field.
func JustificationLTE ¶
JustificationLTE applies the LTE predicate on the "justification" field.
func JustificationNEQ ¶
JustificationNEQ applies the NEQ predicate on the "justification" field.
func JustificationNotIn ¶
JustificationNotIn applies the NotIn predicate on the "justification" field.
func Origin ¶
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEqualFold ¶
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginHasPrefix ¶
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginNotIn ¶
OriginNotIn applies the NotIn predicate on the "origin" field.
func PackagesHash ¶
PackagesHash applies equality check predicate on the "packages_hash" field. It's identical to PackagesHashEQ.
func PackagesHashContains ¶
PackagesHashContains applies the Contains predicate on the "packages_hash" field.
func PackagesHashContainsFold ¶
PackagesHashContainsFold applies the ContainsFold predicate on the "packages_hash" field.
func PackagesHashEQ ¶
PackagesHashEQ applies the EQ predicate on the "packages_hash" field.
func PackagesHashEqualFold ¶
PackagesHashEqualFold applies the EqualFold predicate on the "packages_hash" field.
func PackagesHashGT ¶
PackagesHashGT applies the GT predicate on the "packages_hash" field.
func PackagesHashGTE ¶
PackagesHashGTE applies the GTE predicate on the "packages_hash" field.
func PackagesHashHasPrefix ¶
PackagesHashHasPrefix applies the HasPrefix predicate on the "packages_hash" field.
func PackagesHashHasSuffix ¶
PackagesHashHasSuffix applies the HasSuffix predicate on the "packages_hash" field.
func PackagesHashIn ¶
PackagesHashIn applies the In predicate on the "packages_hash" field.
func PackagesHashLT ¶
PackagesHashLT applies the LT predicate on the "packages_hash" field.
func PackagesHashLTE ¶
PackagesHashLTE applies the LTE predicate on the "packages_hash" field.
func PackagesHashNEQ ¶
PackagesHashNEQ applies the NEQ predicate on the "packages_hash" field.
func PackagesHashNotIn ¶
PackagesHashNotIn applies the NotIn predicate on the "packages_hash" field.
func PkgID ¶ added in v0.5.0
PkgID applies equality check predicate on the "pkg_id" field. It's identical to PkgIDEQ.
func PkgIDNotIn ¶ added in v0.5.0
PkgIDNotIn applies the NotIn predicate on the "pkg_id" 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 PkgEqual queries.
func ByCollector ¶
func ByCollector(opts ...sql.OrderTermOption) OrderOption
ByCollector orders the results by the collector field.
func ByEqualPkgID ¶ added in v0.5.0
func ByEqualPkgID(opts ...sql.OrderTermOption) OrderOption
ByEqualPkgID orders the results by the equal_pkg_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJustification ¶
func ByJustification(opts ...sql.OrderTermOption) OrderOption
ByJustification orders the results by the justification field.
func ByOrigin ¶
func ByOrigin(opts ...sql.OrderTermOption) OrderOption
ByOrigin orders the results by the origin field.
func ByPackageAField ¶ added in v0.5.0
func ByPackageAField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageAField orders the results by package_a field.
func ByPackageBField ¶ added in v0.5.0
func ByPackageBField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageBField orders the results by package_b field.
func ByPackagesHash ¶
func ByPackagesHash(opts ...sql.OrderTermOption) OrderOption
ByPackagesHash orders the results by the packages_hash field.
func ByPkgID ¶ added in v0.5.0
func ByPkgID(opts ...sql.OrderTermOption) OrderOption
ByPkgID orders the results by the pkg_id field.