Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HashEqual) 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 HasArtifacts() predicate.HashEqual
- func HasArtifactsWith(preds ...predicate.Artifact) predicate.HashEqual
- func ID(id int) predicate.HashEqual
- func IDEQ(id int) predicate.HashEqual
- func IDGT(id int) predicate.HashEqual
- func IDGTE(id int) predicate.HashEqual
- func IDIn(ids ...int) predicate.HashEqual
- func IDLT(id int) predicate.HashEqual
- func IDLTE(id int) predicate.HashEqual
- func IDNEQ(id int) predicate.HashEqual
- func IDNotIn(ids ...int) 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 ByArtifacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByArtifactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCollector(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" // 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" // EdgeArtifacts holds the string denoting the artifacts edge name in mutations. EdgeArtifacts = "artifacts" // Table holds the table name of the hashequal in the database. Table = "hash_equals" // ArtifactsTable is the table that holds the artifacts relation/edge. The primary key declared below. ArtifactsTable = "hash_equal_artifacts" // ArtifactsInverseTable is the table name for the Artifact entity. // It exists in this package in order to avoid circular dependency with the "artifact" package. ArtifactsInverseTable = "artifacts" )
Variables ¶
var ( // ArtifactsPrimaryKey and ArtifactsColumn2 are the table columns denoting the // primary key for the artifacts relation (M2M). ArtifactsPrimaryKey = []string{"hash_equal_id", "artifact_id"} )
var Columns = []string{ FieldID, FieldOrigin, FieldCollector, FieldJustification, }
Columns holds all SQL columns for hashequal fields.
Functions ¶
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 HasArtifacts ¶
HasArtifacts applies the HasEdge predicate on the "artifacts" edge.
func HasArtifactsWith ¶
HasArtifactsWith applies the HasEdge predicate on the "artifacts" 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 ByArtifacts ¶
func ByArtifacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByArtifacts orders the results by artifacts terms.
func ByArtifactsCount ¶
func ByArtifactsCount(opts ...sql.OrderTermOption) OrderOption
ByArtifactsCount orders the results by artifacts count.
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.