pkgequal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 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"
	// 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

Columns holds all SQL columns for pkgequal fields.

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

func HasPackages() predicate.PkgEqual

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 ID

func ID(id int) predicate.PkgEqual

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.PkgEqual

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.PkgEqual

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.PkgEqual

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.PkgEqual

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.PkgEqual

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.PkgEqual

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.PkgEqual

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 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 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.

Jump to

Keyboard shortcuts

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