hashequal

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hashequal type in the database.
	Label = "hash_equal"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldArtID holds the string denoting the art_id field in the database.
	FieldArtID = "art_id"
	// FieldEqualArtID holds the string denoting the equal_art_id field in the database.
	FieldEqualArtID = "equal_art_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"
	// FieldDocumentRef holds the string denoting the document_ref field in the database.
	FieldDocumentRef = "document_ref"
	// FieldArtifactsHash holds the string denoting the artifacts_hash field in the database.
	FieldArtifactsHash = "artifacts_hash"
	// EdgeArtifactA holds the string denoting the artifact_a edge name in mutations.
	EdgeArtifactA = "artifact_a"
	// EdgeArtifactB holds the string denoting the artifact_b edge name in mutations.
	EdgeArtifactB = "artifact_b"
	// Table holds the table name of the hashequal in the database.
	Table = "hash_equals"
	// ArtifactATable is the table that holds the artifact_a relation/edge.
	ArtifactATable = "hash_equals"
	// ArtifactAInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactAInverseTable = "artifacts"
	// ArtifactAColumn is the table column denoting the artifact_a relation/edge.
	ArtifactAColumn = "art_id"
	// ArtifactBTable is the table that holds the artifact_b relation/edge.
	ArtifactBTable = "hash_equals"
	// ArtifactBInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactBInverseTable = "artifacts"
	// ArtifactBColumn is the table column denoting the artifact_b relation/edge.
	ArtifactBColumn = "equal_art_id"
)

Variables

Columns holds all SQL columns for hashequal 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.HashEqual) predicate.HashEqual

And groups predicates with the AND operator between them.

func ArtID added in v0.5.0

func ArtID(v uuid.UUID) predicate.HashEqual

ArtID applies equality check predicate on the "art_id" field. It's identical to ArtIDEQ.

func ArtIDEQ added in v0.5.0

func ArtIDEQ(v uuid.UUID) predicate.HashEqual

ArtIDEQ applies the EQ predicate on the "art_id" field.

func ArtIDIn added in v0.5.0

func ArtIDIn(vs ...uuid.UUID) predicate.HashEqual

ArtIDIn applies the In predicate on the "art_id" field.

func ArtIDNEQ added in v0.5.0

func ArtIDNEQ(v uuid.UUID) predicate.HashEqual

ArtIDNEQ applies the NEQ predicate on the "art_id" field.

func ArtIDNotIn added in v0.5.0

func ArtIDNotIn(vs ...uuid.UUID) predicate.HashEqual

ArtIDNotIn applies the NotIn predicate on the "art_id" field.

func ArtifactsHash added in v0.5.0

func ArtifactsHash(v string) predicate.HashEqual

ArtifactsHash applies equality check predicate on the "artifacts_hash" field. It's identical to ArtifactsHashEQ.

func ArtifactsHashContains added in v0.5.0

func ArtifactsHashContains(v string) predicate.HashEqual

ArtifactsHashContains applies the Contains predicate on the "artifacts_hash" field.

func ArtifactsHashContainsFold added in v0.5.0

func ArtifactsHashContainsFold(v string) predicate.HashEqual

ArtifactsHashContainsFold applies the ContainsFold predicate on the "artifacts_hash" field.

func ArtifactsHashEQ added in v0.5.0

func ArtifactsHashEQ(v string) predicate.HashEqual

ArtifactsHashEQ applies the EQ predicate on the "artifacts_hash" field.

func ArtifactsHashEqualFold added in v0.5.0

func ArtifactsHashEqualFold(v string) predicate.HashEqual

ArtifactsHashEqualFold applies the EqualFold predicate on the "artifacts_hash" field.

func ArtifactsHashGT added in v0.5.0

func ArtifactsHashGT(v string) predicate.HashEqual

ArtifactsHashGT applies the GT predicate on the "artifacts_hash" field.

func ArtifactsHashGTE added in v0.5.0

func ArtifactsHashGTE(v string) predicate.HashEqual

ArtifactsHashGTE applies the GTE predicate on the "artifacts_hash" field.

func ArtifactsHashHasPrefix added in v0.5.0

func ArtifactsHashHasPrefix(v string) predicate.HashEqual

ArtifactsHashHasPrefix applies the HasPrefix predicate on the "artifacts_hash" field.

func ArtifactsHashHasSuffix added in v0.5.0

func ArtifactsHashHasSuffix(v string) predicate.HashEqual

ArtifactsHashHasSuffix applies the HasSuffix predicate on the "artifacts_hash" field.

func ArtifactsHashIn added in v0.5.0

func ArtifactsHashIn(vs ...string) predicate.HashEqual

ArtifactsHashIn applies the In predicate on the "artifacts_hash" field.

func ArtifactsHashLT added in v0.5.0

func ArtifactsHashLT(v string) predicate.HashEqual

ArtifactsHashLT applies the LT predicate on the "artifacts_hash" field.

func ArtifactsHashLTE added in v0.5.0

func ArtifactsHashLTE(v string) predicate.HashEqual

ArtifactsHashLTE applies the LTE predicate on the "artifacts_hash" field.

func ArtifactsHashNEQ added in v0.5.0

func ArtifactsHashNEQ(v string) predicate.HashEqual

ArtifactsHashNEQ applies the NEQ predicate on the "artifacts_hash" field.

func ArtifactsHashNotIn added in v0.5.0

func ArtifactsHashNotIn(vs ...string) predicate.HashEqual

ArtifactsHashNotIn applies the NotIn predicate on the "artifacts_hash" field.

func Collector

func Collector(v string) predicate.HashEqual

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

func CollectorContains

func CollectorContains(v string) predicate.HashEqual

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

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.HashEqual

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

func CollectorEQ

func CollectorEQ(v string) predicate.HashEqual

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

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.HashEqual

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

func CollectorGT

func CollectorGT(v string) predicate.HashEqual

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

func CollectorGTE

func CollectorGTE(v string) predicate.HashEqual

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

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.HashEqual

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

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.HashEqual

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

func CollectorIn

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

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

func CollectorLT

func CollectorLT(v string) predicate.HashEqual

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

func CollectorLTE

func CollectorLTE(v string) predicate.HashEqual

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

func CollectorNEQ

func CollectorNEQ(v string) predicate.HashEqual

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

func CollectorNotIn

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

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

func DocumentRef added in v0.6.0

func DocumentRef(v string) predicate.HashEqual

DocumentRef applies equality check predicate on the "document_ref" field. It's identical to DocumentRefEQ.

func DocumentRefContains added in v0.6.0

func DocumentRefContains(v string) predicate.HashEqual

DocumentRefContains applies the Contains predicate on the "document_ref" field.

func DocumentRefContainsFold added in v0.6.0

func DocumentRefContainsFold(v string) predicate.HashEqual

DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.

func DocumentRefEQ added in v0.6.0

func DocumentRefEQ(v string) predicate.HashEqual

DocumentRefEQ applies the EQ predicate on the "document_ref" field.

func DocumentRefEqualFold added in v0.6.0

func DocumentRefEqualFold(v string) predicate.HashEqual

DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.

func DocumentRefGT added in v0.6.0

func DocumentRefGT(v string) predicate.HashEqual

DocumentRefGT applies the GT predicate on the "document_ref" field.

func DocumentRefGTE added in v0.6.0

func DocumentRefGTE(v string) predicate.HashEqual

DocumentRefGTE applies the GTE predicate on the "document_ref" field.

func DocumentRefHasPrefix added in v0.6.0

func DocumentRefHasPrefix(v string) predicate.HashEqual

DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.

func DocumentRefHasSuffix added in v0.6.0

func DocumentRefHasSuffix(v string) predicate.HashEqual

DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.

func DocumentRefIn added in v0.6.0

func DocumentRefIn(vs ...string) predicate.HashEqual

DocumentRefIn applies the In predicate on the "document_ref" field.

func DocumentRefLT added in v0.6.0

func DocumentRefLT(v string) predicate.HashEqual

DocumentRefLT applies the LT predicate on the "document_ref" field.

func DocumentRefLTE added in v0.6.0

func DocumentRefLTE(v string) predicate.HashEqual

DocumentRefLTE applies the LTE predicate on the "document_ref" field.

func DocumentRefNEQ added in v0.6.0

func DocumentRefNEQ(v string) predicate.HashEqual

DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.

func DocumentRefNotIn added in v0.6.0

func DocumentRefNotIn(vs ...string) predicate.HashEqual

DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.

func EqualArtID added in v0.5.0

func EqualArtID(v uuid.UUID) predicate.HashEqual

EqualArtID applies equality check predicate on the "equal_art_id" field. It's identical to EqualArtIDEQ.

func EqualArtIDEQ added in v0.5.0

func EqualArtIDEQ(v uuid.UUID) predicate.HashEqual

EqualArtIDEQ applies the EQ predicate on the "equal_art_id" field.

func EqualArtIDIn added in v0.5.0

func EqualArtIDIn(vs ...uuid.UUID) predicate.HashEqual

EqualArtIDIn applies the In predicate on the "equal_art_id" field.

func EqualArtIDNEQ added in v0.5.0

func EqualArtIDNEQ(v uuid.UUID) predicate.HashEqual

EqualArtIDNEQ applies the NEQ predicate on the "equal_art_id" field.

func EqualArtIDNotIn added in v0.5.0

func EqualArtIDNotIn(vs ...uuid.UUID) predicate.HashEqual

EqualArtIDNotIn applies the NotIn predicate on the "equal_art_id" field.

func HasArtifactA added in v0.5.0

func HasArtifactA() predicate.HashEqual

HasArtifactA applies the HasEdge predicate on the "artifact_a" edge.

func HasArtifactAWith added in v0.5.0

func HasArtifactAWith(preds ...predicate.Artifact) predicate.HashEqual

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

func HasArtifactB added in v0.5.0

func HasArtifactB() predicate.HashEqual

HasArtifactB applies the HasEdge predicate on the "artifact_b" edge.

func HasArtifactBWith added in v0.5.0

func HasArtifactBWith(preds ...predicate.Artifact) predicate.HashEqual

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.HashEqual

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.HashEqual

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.HashEqual

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.HashEqual

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.HashEqual

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.HashEqual

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.HashEqual

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

func JustificationContains

func JustificationContains(v string) predicate.HashEqual

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

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.HashEqual

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

func JustificationEQ

func JustificationEQ(v string) predicate.HashEqual

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

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.HashEqual

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

func JustificationGT

func JustificationGT(v string) predicate.HashEqual

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

func JustificationGTE

func JustificationGTE(v string) predicate.HashEqual

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

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.HashEqual

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

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.HashEqual

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

func JustificationIn

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

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

func JustificationLT

func JustificationLT(v string) predicate.HashEqual

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

func JustificationLTE

func JustificationLTE(v string) predicate.HashEqual

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

func JustificationNEQ

func JustificationNEQ(v string) predicate.HashEqual

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

func JustificationNotIn

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

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

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.HashEqual

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

func OriginContains

func OriginContains(v string) predicate.HashEqual

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

func OriginContainsFold

func OriginContainsFold(v string) predicate.HashEqual

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

func OriginEQ

func OriginEQ(v string) predicate.HashEqual

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

func OriginEqualFold

func OriginEqualFold(v string) predicate.HashEqual

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

func OriginGT

func OriginGT(v string) predicate.HashEqual

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

func OriginGTE

func OriginGTE(v string) predicate.HashEqual

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

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.HashEqual

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

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.HashEqual

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

func OriginIn

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

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

func OriginLT

func OriginLT(v string) predicate.HashEqual

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

func OriginLTE

func OriginLTE(v string) predicate.HashEqual

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

func OriginNEQ

func OriginNEQ(v string) predicate.HashEqual

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

func OriginNotIn

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

OriginNotIn applies the NotIn predicate on the "origin" 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 HashEqual queries.

func ByArtID added in v0.5.0

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

ByArtID orders the results by the art_id field.

func ByArtifactAField added in v0.5.0

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

ByArtifactAField orders the results by artifact_a field.

func ByArtifactBField added in v0.5.0

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

ByArtifactBField orders the results by artifact_b field.

func ByArtifactsHash added in v0.5.0

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

ByArtifactsHash orders the results by the artifacts_hash field.

func ByCollector

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

ByCollector orders the results by the collector field.

func ByDocumentRef added in v0.6.0

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

ByDocumentRef orders the results by the document_ref field.

func ByEqualArtID added in v0.5.0

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

ByEqualArtID orders the results by the equal_art_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.

Jump to

Keyboard shortcuts

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