Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HashEqual) predicate.HashEqual
- func ArtID(v uuid.UUID) predicate.HashEqual
- func ArtIDEQ(v uuid.UUID) predicate.HashEqual
- func ArtIDIn(vs ...uuid.UUID) predicate.HashEqual
- func ArtIDNEQ(v uuid.UUID) predicate.HashEqual
- func ArtIDNotIn(vs ...uuid.UUID) predicate.HashEqual
- func ArtifactsHash(v string) predicate.HashEqual
- func ArtifactsHashContains(v string) predicate.HashEqual
- func ArtifactsHashContainsFold(v string) predicate.HashEqual
- func ArtifactsHashEQ(v string) predicate.HashEqual
- func ArtifactsHashEqualFold(v string) predicate.HashEqual
- func ArtifactsHashGT(v string) predicate.HashEqual
- func ArtifactsHashGTE(v string) predicate.HashEqual
- func ArtifactsHashHasPrefix(v string) predicate.HashEqual
- func ArtifactsHashHasSuffix(v string) predicate.HashEqual
- func ArtifactsHashIn(vs ...string) predicate.HashEqual
- func ArtifactsHashLT(v string) predicate.HashEqual
- func ArtifactsHashLTE(v string) predicate.HashEqual
- func ArtifactsHashNEQ(v string) predicate.HashEqual
- func ArtifactsHashNotIn(vs ...string) predicate.HashEqual
- func Collector(v string) predicate.HashEqual
- func CollectorContains(v string) predicate.HashEqual
- func CollectorContainsFold(v string) predicate.HashEqual
- func CollectorEQ(v string) predicate.HashEqual
- func CollectorEqualFold(v string) predicate.HashEqual
- func CollectorGT(v string) predicate.HashEqual
- func CollectorGTE(v string) predicate.HashEqual
- func CollectorHasPrefix(v string) predicate.HashEqual
- func CollectorHasSuffix(v string) predicate.HashEqual
- func CollectorIn(vs ...string) predicate.HashEqual
- func CollectorLT(v string) predicate.HashEqual
- func CollectorLTE(v string) predicate.HashEqual
- func CollectorNEQ(v string) predicate.HashEqual
- func CollectorNotIn(vs ...string) predicate.HashEqual
- func DocumentRef(v string) predicate.HashEqual
- func DocumentRefContains(v string) predicate.HashEqual
- func DocumentRefContainsFold(v string) predicate.HashEqual
- func DocumentRefEQ(v string) predicate.HashEqual
- func DocumentRefEqualFold(v string) predicate.HashEqual
- func DocumentRefGT(v string) predicate.HashEqual
- func DocumentRefGTE(v string) predicate.HashEqual
- func DocumentRefHasPrefix(v string) predicate.HashEqual
- func DocumentRefHasSuffix(v string) predicate.HashEqual
- func DocumentRefIn(vs ...string) predicate.HashEqual
- func DocumentRefLT(v string) predicate.HashEqual
- func DocumentRefLTE(v string) predicate.HashEqual
- func DocumentRefNEQ(v string) predicate.HashEqual
- func DocumentRefNotIn(vs ...string) predicate.HashEqual
- func EqualArtID(v uuid.UUID) predicate.HashEqual
- func EqualArtIDEQ(v uuid.UUID) predicate.HashEqual
- func EqualArtIDIn(vs ...uuid.UUID) predicate.HashEqual
- func EqualArtIDNEQ(v uuid.UUID) predicate.HashEqual
- func EqualArtIDNotIn(vs ...uuid.UUID) predicate.HashEqual
- func HasArtifactA() predicate.HashEqual
- func HasArtifactAWith(preds ...predicate.Artifact) predicate.HashEqual
- func HasArtifactB() predicate.HashEqual
- func HasArtifactBWith(preds ...predicate.Artifact) predicate.HashEqual
- func ID(id uuid.UUID) predicate.HashEqual
- func IDEQ(id uuid.UUID) predicate.HashEqual
- func IDGT(id uuid.UUID) predicate.HashEqual
- func IDGTE(id uuid.UUID) predicate.HashEqual
- func IDIn(ids ...uuid.UUID) predicate.HashEqual
- func IDLT(id uuid.UUID) predicate.HashEqual
- func IDLTE(id uuid.UUID) predicate.HashEqual
- func IDNEQ(id uuid.UUID) predicate.HashEqual
- func IDNotIn(ids ...uuid.UUID) predicate.HashEqual
- func Justification(v string) predicate.HashEqual
- func JustificationContains(v string) predicate.HashEqual
- func JustificationContainsFold(v string) predicate.HashEqual
- func JustificationEQ(v string) predicate.HashEqual
- func JustificationEqualFold(v string) predicate.HashEqual
- func JustificationGT(v string) predicate.HashEqual
- func JustificationGTE(v string) predicate.HashEqual
- func JustificationHasPrefix(v string) predicate.HashEqual
- func JustificationHasSuffix(v string) predicate.HashEqual
- func JustificationIn(vs ...string) predicate.HashEqual
- func JustificationLT(v string) predicate.HashEqual
- func JustificationLTE(v string) predicate.HashEqual
- func JustificationNEQ(v string) predicate.HashEqual
- func JustificationNotIn(vs ...string) predicate.HashEqual
- func Not(p predicate.HashEqual) predicate.HashEqual
- func Or(predicates ...predicate.HashEqual) predicate.HashEqual
- func Origin(v string) predicate.HashEqual
- func OriginContains(v string) predicate.HashEqual
- func OriginContainsFold(v string) predicate.HashEqual
- func OriginEQ(v string) predicate.HashEqual
- func OriginEqualFold(v string) predicate.HashEqual
- func OriginGT(v string) predicate.HashEqual
- func OriginGTE(v string) predicate.HashEqual
- func OriginHasPrefix(v string) predicate.HashEqual
- func OriginHasSuffix(v string) predicate.HashEqual
- func OriginIn(vs ...string) predicate.HashEqual
- func OriginLT(v string) predicate.HashEqual
- func OriginLTE(v string) predicate.HashEqual
- func OriginNEQ(v string) predicate.HashEqual
- func OriginNotIn(vs ...string) predicate.HashEqual
- func ValidColumn(column string) bool
- type OrderOption
- func ByArtID(opts ...sql.OrderTermOption) OrderOption
- func ByArtifactAField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByArtifactBField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByArtifactsHash(opts ...sql.OrderTermOption) OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByDocumentRef(opts ...sql.OrderTermOption) OrderOption
- func ByEqualArtID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJustification(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldArtID, FieldEqualArtID, FieldOrigin, FieldCollector, FieldJustification, FieldDocumentRef, FieldArtifactsHash, }
Columns holds all SQL columns for hashequal fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func ArtID ¶ added in v0.5.0
ArtID applies equality check predicate on the "art_id" field. It's identical to ArtIDEQ.
func ArtIDNotIn ¶ added in v0.5.0
ArtIDNotIn applies the NotIn predicate on the "art_id" field.
func ArtifactsHash ¶ added in v0.5.0
ArtifactsHash applies equality check predicate on the "artifacts_hash" field. It's identical to ArtifactsHashEQ.
func ArtifactsHashContains ¶ added in v0.5.0
ArtifactsHashContains applies the Contains predicate on the "artifacts_hash" field.
func ArtifactsHashContainsFold ¶ added in v0.5.0
ArtifactsHashContainsFold applies the ContainsFold predicate on the "artifacts_hash" field.
func ArtifactsHashEQ ¶ added in v0.5.0
ArtifactsHashEQ applies the EQ predicate on the "artifacts_hash" field.
func ArtifactsHashEqualFold ¶ added in v0.5.0
ArtifactsHashEqualFold applies the EqualFold predicate on the "artifacts_hash" field.
func ArtifactsHashGT ¶ added in v0.5.0
ArtifactsHashGT applies the GT predicate on the "artifacts_hash" field.
func ArtifactsHashGTE ¶ added in v0.5.0
ArtifactsHashGTE applies the GTE predicate on the "artifacts_hash" field.
func ArtifactsHashHasPrefix ¶ added in v0.5.0
ArtifactsHashHasPrefix applies the HasPrefix predicate on the "artifacts_hash" field.
func ArtifactsHashHasSuffix ¶ added in v0.5.0
ArtifactsHashHasSuffix applies the HasSuffix predicate on the "artifacts_hash" field.
func ArtifactsHashIn ¶ added in v0.5.0
ArtifactsHashIn applies the In predicate on the "artifacts_hash" field.
func ArtifactsHashLT ¶ added in v0.5.0
ArtifactsHashLT applies the LT predicate on the "artifacts_hash" field.
func ArtifactsHashLTE ¶ added in v0.5.0
ArtifactsHashLTE applies the LTE predicate on the "artifacts_hash" field.
func ArtifactsHashNEQ ¶ added in v0.5.0
ArtifactsHashNEQ applies the NEQ predicate on the "artifacts_hash" field.
func ArtifactsHashNotIn ¶ added in v0.5.0
ArtifactsHashNotIn applies the NotIn predicate on the "artifacts_hash" field.
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 DocumentRef ¶ added in v0.6.0
DocumentRef applies equality check predicate on the "document_ref" field. It's identical to DocumentRefEQ.
func DocumentRefContains ¶ added in v0.6.0
DocumentRefContains applies the Contains predicate on the "document_ref" field.
func DocumentRefContainsFold ¶ added in v0.6.0
DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.
func DocumentRefEQ ¶ added in v0.6.0
DocumentRefEQ applies the EQ predicate on the "document_ref" field.
func DocumentRefEqualFold ¶ added in v0.6.0
DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.
func DocumentRefGT ¶ added in v0.6.0
DocumentRefGT applies the GT predicate on the "document_ref" field.
func DocumentRefGTE ¶ added in v0.6.0
DocumentRefGTE applies the GTE predicate on the "document_ref" field.
func DocumentRefHasPrefix ¶ added in v0.6.0
DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.
func DocumentRefHasSuffix ¶ added in v0.6.0
DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.
func DocumentRefIn ¶ added in v0.6.0
DocumentRefIn applies the In predicate on the "document_ref" field.
func DocumentRefLT ¶ added in v0.6.0
DocumentRefLT applies the LT predicate on the "document_ref" field.
func DocumentRefLTE ¶ added in v0.6.0
DocumentRefLTE applies the LTE predicate on the "document_ref" field.
func DocumentRefNEQ ¶ added in v0.6.0
DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.
func DocumentRefNotIn ¶ added in v0.6.0
DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.
func EqualArtID ¶ added in v0.5.0
EqualArtID applies equality check predicate on the "equal_art_id" field. It's identical to EqualArtIDEQ.
func EqualArtIDEQ ¶ added in v0.5.0
EqualArtIDEQ applies the EQ predicate on the "equal_art_id" field.
func EqualArtIDIn ¶ added in v0.5.0
EqualArtIDIn applies the In predicate on the "equal_art_id" field.
func EqualArtIDNEQ ¶ added in v0.5.0
EqualArtIDNEQ applies the NEQ predicate on the "equal_art_id" field.
func EqualArtIDNotIn ¶ added in v0.5.0
EqualArtIDNotIn applies the NotIn predicate on the "equal_art_id" field.
func HasArtifactA ¶ added in v0.5.0
HasArtifactA applies the HasEdge predicate on the "artifact_a" edge.
func HasArtifactAWith ¶ added in v0.5.0
HasArtifactAWith applies the HasEdge predicate on the "artifact_a" edge with a given conditions (other predicates).
func HasArtifactB ¶ added in v0.5.0
HasArtifactB applies the HasEdge predicate on the "artifact_b" edge.
func HasArtifactBWith ¶ added in v0.5.0
HasArtifactBWith applies the HasEdge predicate on the "artifact_b" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.