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 HasPackages() predicate.PkgEqual
- func HasPackagesWith(preds ...predicate.PackageVersion) predicate.PkgEqual
- func ID(id int) predicate.PkgEqual
- func IDEQ(id int) predicate.PkgEqual
- func IDGT(id int) predicate.PkgEqual
- func IDGTE(id int) predicate.PkgEqual
- func IDIn(ids ...int) predicate.PkgEqual
- func IDLT(id int) predicate.PkgEqual
- func IDLTE(id int) predicate.PkgEqual
- func IDNEQ(id int) predicate.PkgEqual
- func IDNotIn(ids ...int) 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 ValidColumn(column string) bool
- type OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJustification(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPackagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPackagesHash(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" // 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" // EdgePackages holds the string denoting the packages edge name in mutations. EdgePackages = "packages" // Table holds the table name of the pkgequal in the database. Table = "pkg_equals" // PackagesTable is the table that holds the packages relation/edge. The primary key declared below. PackagesTable = "pkg_equal_packages" // PackagesInverseTable is the table name for the PackageVersion entity. // It exists in this package in order to avoid circular dependency with the "packageversion" package. PackagesInverseTable = "package_versions" )
Variables ¶
var Columns = []string{ FieldID, FieldOrigin, FieldCollector, FieldJustification, FieldPackagesHash, }
Columns holds all SQL columns for pkgequal fields.
var ( // PackagesPrimaryKey and PackagesColumn2 are the table columns denoting the // primary key for the packages relation (M2M). PackagesPrimaryKey = []string{"pkg_equal_id", "package_version_id"} )
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 HasPackages ¶
HasPackages applies the HasEdge predicate on the "packages" edge.
func HasPackagesWith ¶
func HasPackagesWith(preds ...predicate.PackageVersion) predicate.PkgEqual
HasPackagesWith applies the HasEdge predicate on the "packages" 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 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 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 ByPackages ¶
func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPackages orders the results by packages terms.
func ByPackagesCount ¶
func ByPackagesCount(opts ...sql.OrderTermOption) OrderOption
ByPackagesCount orders the results by packages count.
func ByPackagesHash ¶
func ByPackagesHash(opts ...sql.OrderTermOption) OrderOption
ByPackagesHash orders the results by the packages_hash field.