occurrence

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the occurrence type in the database.
	Label = "occurrence"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldArtifactID holds the string denoting the artifact_id field in the database.
	FieldArtifactID = "artifact_id"
	// FieldJustification holds the string denoting the justification field in the database.
	FieldJustification = "justification"
	// 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"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// FieldPackageID holds the string denoting the package_id field in the database.
	FieldPackageID = "package_id"
	// EdgeArtifact holds the string denoting the artifact edge name in mutations.
	EdgeArtifact = "artifact"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// EdgeSource holds the string denoting the source edge name in mutations.
	EdgeSource = "source"
	// Table holds the table name of the occurrence in the database.
	Table = "occurrences"
	// ArtifactTable is the table that holds the artifact relation/edge.
	ArtifactTable = "occurrences"
	// ArtifactInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactInverseTable = "artifacts"
	// ArtifactColumn is the table column denoting the artifact relation/edge.
	ArtifactColumn = "artifact_id"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "occurrences"
	// PackageInverseTable is the table name for the PackageVersion entity.
	// It exists in this package in order to avoid circular dependency with the "packageversion" package.
	PackageInverseTable = "package_versions"
	// PackageColumn is the table column denoting the package relation/edge.
	PackageColumn = "package_id"
	// SourceTable is the table that holds the source relation/edge.
	SourceTable = "occurrences"
	// SourceInverseTable is the table name for the SourceName entity.
	// It exists in this package in order to avoid circular dependency with the "sourcename" package.
	SourceInverseTable = "source_names"
	// SourceColumn is the table column denoting the source relation/edge.
	SourceColumn = "source_id"
)

Variables

Columns holds all SQL columns for occurrence fields.

Functions

func And

func And(predicates ...predicate.Occurrence) predicate.Occurrence

And groups predicates with the AND operator between them.

func ArtifactID

func ArtifactID(v int) predicate.Occurrence

ArtifactID applies equality check predicate on the "artifact_id" field. It's identical to ArtifactIDEQ.

func ArtifactIDEQ

func ArtifactIDEQ(v int) predicate.Occurrence

ArtifactIDEQ applies the EQ predicate on the "artifact_id" field.

func ArtifactIDIn

func ArtifactIDIn(vs ...int) predicate.Occurrence

ArtifactIDIn applies the In predicate on the "artifact_id" field.

func ArtifactIDNEQ

func ArtifactIDNEQ(v int) predicate.Occurrence

ArtifactIDNEQ applies the NEQ predicate on the "artifact_id" field.

func ArtifactIDNotIn

func ArtifactIDNotIn(vs ...int) predicate.Occurrence

ArtifactIDNotIn applies the NotIn predicate on the "artifact_id" field.

func Collector

func Collector(v string) predicate.Occurrence

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

func CollectorContains

func CollectorContains(v string) predicate.Occurrence

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

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.Occurrence

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

func CollectorEQ

func CollectorEQ(v string) predicate.Occurrence

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

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.Occurrence

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

func CollectorGT

func CollectorGT(v string) predicate.Occurrence

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

func CollectorGTE

func CollectorGTE(v string) predicate.Occurrence

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

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.Occurrence

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

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.Occurrence

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

func CollectorIn

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

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

func CollectorLT

func CollectorLT(v string) predicate.Occurrence

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

func CollectorLTE

func CollectorLTE(v string) predicate.Occurrence

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

func CollectorNEQ

func CollectorNEQ(v string) predicate.Occurrence

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

func CollectorNotIn

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

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

func HasArtifact

func HasArtifact() predicate.Occurrence

HasArtifact applies the HasEdge predicate on the "artifact" edge.

func HasArtifactWith

func HasArtifactWith(preds ...predicate.Artifact) predicate.Occurrence

HasArtifactWith applies the HasEdge predicate on the "artifact" edge with a given conditions (other predicates).

func HasPackage

func HasPackage() predicate.Occurrence

HasPackage applies the HasEdge predicate on the "package" edge.

func HasPackageWith

func HasPackageWith(preds ...predicate.PackageVersion) predicate.Occurrence

HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).

func HasSource

func HasSource() predicate.Occurrence

HasSource applies the HasEdge predicate on the "source" edge.

func HasSourceWith

func HasSourceWith(preds ...predicate.SourceName) predicate.Occurrence

HasSourceWith applies the HasEdge predicate on the "source" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Occurrence

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Occurrence

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Occurrence

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Occurrence

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Occurrence

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Occurrence

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Occurrence

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Occurrence

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.Occurrence

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

func JustificationContains

func JustificationContains(v string) predicate.Occurrence

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

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.Occurrence

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

func JustificationEQ

func JustificationEQ(v string) predicate.Occurrence

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

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.Occurrence

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

func JustificationGT

func JustificationGT(v string) predicate.Occurrence

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

func JustificationGTE

func JustificationGTE(v string) predicate.Occurrence

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

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.Occurrence

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

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.Occurrence

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

func JustificationIn

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

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

func JustificationLT

func JustificationLT(v string) predicate.Occurrence

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

func JustificationLTE

func JustificationLTE(v string) predicate.Occurrence

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

func JustificationNEQ

func JustificationNEQ(v string) predicate.Occurrence

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

func JustificationNotIn

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

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.Occurrence) predicate.Occurrence

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.Occurrence

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

func OriginContains

func OriginContains(v string) predicate.Occurrence

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

func OriginContainsFold

func OriginContainsFold(v string) predicate.Occurrence

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

func OriginEQ

func OriginEQ(v string) predicate.Occurrence

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

func OriginEqualFold

func OriginEqualFold(v string) predicate.Occurrence

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

func OriginGT

func OriginGT(v string) predicate.Occurrence

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

func OriginGTE

func OriginGTE(v string) predicate.Occurrence

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

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.Occurrence

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

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.Occurrence

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

func OriginIn

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

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

func OriginLT

func OriginLT(v string) predicate.Occurrence

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

func OriginLTE

func OriginLTE(v string) predicate.Occurrence

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

func OriginNEQ

func OriginNEQ(v string) predicate.Occurrence

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

func OriginNotIn

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

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

func PackageID

func PackageID(v int) predicate.Occurrence

PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.

func PackageIDEQ

func PackageIDEQ(v int) predicate.Occurrence

PackageIDEQ applies the EQ predicate on the "package_id" field.

func PackageIDIn

func PackageIDIn(vs ...int) predicate.Occurrence

PackageIDIn applies the In predicate on the "package_id" field.

func PackageIDIsNil

func PackageIDIsNil() predicate.Occurrence

PackageIDIsNil applies the IsNil predicate on the "package_id" field.

func PackageIDNEQ

func PackageIDNEQ(v int) predicate.Occurrence

PackageIDNEQ applies the NEQ predicate on the "package_id" field.

func PackageIDNotIn

func PackageIDNotIn(vs ...int) predicate.Occurrence

PackageIDNotIn applies the NotIn predicate on the "package_id" field.

func PackageIDNotNil

func PackageIDNotNil() predicate.Occurrence

PackageIDNotNil applies the NotNil predicate on the "package_id" field.

func SourceID

func SourceID(v int) predicate.Occurrence

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDEQ

func SourceIDEQ(v int) predicate.Occurrence

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDIn

func SourceIDIn(vs ...int) predicate.Occurrence

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDIsNil

func SourceIDIsNil() predicate.Occurrence

SourceIDIsNil applies the IsNil predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v int) predicate.Occurrence

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

func SourceIDNotIn(vs ...int) predicate.Occurrence

SourceIDNotIn applies the NotIn predicate on the "source_id" field.

func SourceIDNotNil

func SourceIDNotNil() predicate.Occurrence

SourceIDNotNil applies the NotNil predicate on the "source_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 Occurrence queries.

func ByArtifactField

func ByArtifactField(field string, opts ...sql.OrderTermOption) OrderOption

ByArtifactField orders the results by artifact field.

func ByArtifactID

func ByArtifactID(opts ...sql.OrderTermOption) OrderOption

ByArtifactID orders the results by the artifact_id field.

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 ByPackageField

func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption

ByPackageField orders the results by package field.

func ByPackageID

func ByPackageID(opts ...sql.OrderTermOption) OrderOption

ByPackageID orders the results by the package_id field.

func BySourceField

func BySourceField(field string, opts ...sql.OrderTermOption) OrderOption

BySourceField orders the results by source field.

func BySourceID

func BySourceID(opts ...sql.OrderTermOption) OrderOption

BySourceID orders the results by the source_id field.

Jump to

Keyboard shortcuts

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