pkgequal

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for pkgequal fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.PkgEqual) predicate.PkgEqual

And groups predicates with the AND operator between them.

func Collector

func Collector(v string) predicate.PkgEqual

Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.

func CollectorContains

func CollectorContains(v string) predicate.PkgEqual

CollectorContains applies the Contains predicate on the "collector" field.

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.PkgEqual

CollectorContainsFold applies the ContainsFold predicate on the "collector" field.

func CollectorEQ

func CollectorEQ(v string) predicate.PkgEqual

CollectorEQ applies the EQ predicate on the "collector" field.

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.PkgEqual

CollectorEqualFold applies the EqualFold predicate on the "collector" field.

func CollectorGT

func CollectorGT(v string) predicate.PkgEqual

CollectorGT applies the GT predicate on the "collector" field.

func CollectorGTE

func CollectorGTE(v string) predicate.PkgEqual

CollectorGTE applies the GTE predicate on the "collector" field.

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.PkgEqual

CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.PkgEqual

CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.

func CollectorIn

func CollectorIn(vs ...string) predicate.PkgEqual

CollectorIn applies the In predicate on the "collector" field.

func CollectorLT

func CollectorLT(v string) predicate.PkgEqual

CollectorLT applies the LT predicate on the "collector" field.

func CollectorLTE

func CollectorLTE(v string) predicate.PkgEqual

CollectorLTE applies the LTE predicate on the "collector" field.

func CollectorNEQ

func CollectorNEQ(v string) predicate.PkgEqual

CollectorNEQ applies the NEQ predicate on the "collector" field.

func CollectorNotIn

func CollectorNotIn(vs ...string) predicate.PkgEqual

CollectorNotIn applies the NotIn predicate on the "collector" field.

func EqualPkgID added in v0.5.0

func EqualPkgID(v uuid.UUID) predicate.PkgEqual

EqualPkgID applies equality check predicate on the "equal_pkg_id" field. It's identical to EqualPkgIDEQ.

func EqualPkgIDEQ added in v0.5.0

func EqualPkgIDEQ(v uuid.UUID) predicate.PkgEqual

EqualPkgIDEQ applies the EQ predicate on the "equal_pkg_id" field.

func EqualPkgIDIn added in v0.5.0

func EqualPkgIDIn(vs ...uuid.UUID) predicate.PkgEqual

EqualPkgIDIn applies the In predicate on the "equal_pkg_id" field.

func EqualPkgIDNEQ added in v0.5.0

func EqualPkgIDNEQ(v uuid.UUID) predicate.PkgEqual

EqualPkgIDNEQ applies the NEQ predicate on the "equal_pkg_id" field.

func EqualPkgIDNotIn added in v0.5.0

func EqualPkgIDNotIn(vs ...uuid.UUID) predicate.PkgEqual

EqualPkgIDNotIn applies the NotIn predicate on the "equal_pkg_id" field.

func HasPackageA added in v0.5.0

func HasPackageA() predicate.PkgEqual

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

func HasPackageB() predicate.PkgEqual

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 ID

func ID(id uuid.UUID) predicate.PkgEqual

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.PkgEqual

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.PkgEqual

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.PkgEqual

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.PkgEqual

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.PkgEqual

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.PkgEqual

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.PkgEqual

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.PkgEqual

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.PkgEqual

Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.

func JustificationContains

func JustificationContains(v string) predicate.PkgEqual

JustificationContains applies the Contains predicate on the "justification" field.

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.PkgEqual

JustificationContainsFold applies the ContainsFold predicate on the "justification" field.

func JustificationEQ

func JustificationEQ(v string) predicate.PkgEqual

JustificationEQ applies the EQ predicate on the "justification" field.

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.PkgEqual

JustificationEqualFold applies the EqualFold predicate on the "justification" field.

func JustificationGT

func JustificationGT(v string) predicate.PkgEqual

JustificationGT applies the GT predicate on the "justification" field.

func JustificationGTE

func JustificationGTE(v string) predicate.PkgEqual

JustificationGTE applies the GTE predicate on the "justification" field.

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.PkgEqual

JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.PkgEqual

JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.

func JustificationIn

func JustificationIn(vs ...string) predicate.PkgEqual

JustificationIn applies the In predicate on the "justification" field.

func JustificationLT

func JustificationLT(v string) predicate.PkgEqual

JustificationLT applies the LT predicate on the "justification" field.

func JustificationLTE

func JustificationLTE(v string) predicate.PkgEqual

JustificationLTE applies the LTE predicate on the "justification" field.

func JustificationNEQ

func JustificationNEQ(v string) predicate.PkgEqual

JustificationNEQ applies the NEQ predicate on the "justification" field.

func JustificationNotIn

func JustificationNotIn(vs ...string) predicate.PkgEqual

JustificationNotIn applies the NotIn predicate on the "justification" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.PkgEqual) predicate.PkgEqual

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.PkgEqual

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.PkgEqual

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.PkgEqual

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.PkgEqual

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.PkgEqual

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.PkgEqual

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.PkgEqual

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.PkgEqual

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.PkgEqual

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.PkgEqual

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.PkgEqual

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.PkgEqual

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.PkgEqual

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.PkgEqual

OriginNotIn applies the NotIn predicate on the "origin" field.

func PackagesHash

func PackagesHash(v string) predicate.PkgEqual

PackagesHash applies equality check predicate on the "packages_hash" field. It's identical to PackagesHashEQ.

func PackagesHashContains

func PackagesHashContains(v string) predicate.PkgEqual

PackagesHashContains applies the Contains predicate on the "packages_hash" field.

func PackagesHashContainsFold

func PackagesHashContainsFold(v string) predicate.PkgEqual

PackagesHashContainsFold applies the ContainsFold predicate on the "packages_hash" field.

func PackagesHashEQ

func PackagesHashEQ(v string) predicate.PkgEqual

PackagesHashEQ applies the EQ predicate on the "packages_hash" field.

func PackagesHashEqualFold

func PackagesHashEqualFold(v string) predicate.PkgEqual

PackagesHashEqualFold applies the EqualFold predicate on the "packages_hash" field.

func PackagesHashGT

func PackagesHashGT(v string) predicate.PkgEqual

PackagesHashGT applies the GT predicate on the "packages_hash" field.

func PackagesHashGTE

func PackagesHashGTE(v string) predicate.PkgEqual

PackagesHashGTE applies the GTE predicate on the "packages_hash" field.

func PackagesHashHasPrefix

func PackagesHashHasPrefix(v string) predicate.PkgEqual

PackagesHashHasPrefix applies the HasPrefix predicate on the "packages_hash" field.

func PackagesHashHasSuffix

func PackagesHashHasSuffix(v string) predicate.PkgEqual

PackagesHashHasSuffix applies the HasSuffix predicate on the "packages_hash" field.

func PackagesHashIn

func PackagesHashIn(vs ...string) predicate.PkgEqual

PackagesHashIn applies the In predicate on the "packages_hash" field.

func PackagesHashLT

func PackagesHashLT(v string) predicate.PkgEqual

PackagesHashLT applies the LT predicate on the "packages_hash" field.

func PackagesHashLTE

func PackagesHashLTE(v string) predicate.PkgEqual

PackagesHashLTE applies the LTE predicate on the "packages_hash" field.

func PackagesHashNEQ

func PackagesHashNEQ(v string) predicate.PkgEqual

PackagesHashNEQ applies the NEQ predicate on the "packages_hash" field.

func PackagesHashNotIn

func PackagesHashNotIn(vs ...string) predicate.PkgEqual

PackagesHashNotIn applies the NotIn predicate on the "packages_hash" field.

func PkgID added in v0.5.0

func PkgID(v uuid.UUID) predicate.PkgEqual

PkgID applies equality check predicate on the "pkg_id" field. It's identical to PkgIDEQ.

func PkgIDEQ added in v0.5.0

func PkgIDEQ(v uuid.UUID) predicate.PkgEqual

PkgIDEQ applies the EQ predicate on the "pkg_id" field.

func PkgIDIn added in v0.5.0

func PkgIDIn(vs ...uuid.UUID) predicate.PkgEqual

PkgIDIn applies the In predicate on the "pkg_id" field.

func PkgIDNEQ added in v0.5.0

func PkgIDNEQ(v uuid.UUID) predicate.PkgEqual

PkgIDNEQ applies the NEQ predicate on the "pkg_id" field.

func PkgIDNotIn added in v0.5.0

func PkgIDNotIn(vs ...uuid.UUID) predicate.PkgEqual

PkgIDNotIn applies the NotIn predicate on the "pkg_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL