Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HashesEntry) predicate.HashesEntry
- func ExternalReferenceID(v int) predicate.HashesEntry
- func ExternalReferenceIDEQ(v int) predicate.HashesEntry
- func ExternalReferenceIDIn(vs ...int) predicate.HashesEntry
- func ExternalReferenceIDIsNil() predicate.HashesEntry
- func ExternalReferenceIDNEQ(v int) predicate.HashesEntry
- func ExternalReferenceIDNotIn(vs ...int) predicate.HashesEntry
- func ExternalReferenceIDNotNil() predicate.HashesEntry
- func HasExternalReference() predicate.HashesEntry
- func HasExternalReferenceWith(preds ...predicate.ExternalReference) predicate.HashesEntry
- func HasNode() predicate.HashesEntry
- func HasNodeWith(preds ...predicate.Node) predicate.HashesEntry
- func HashAlgorithmTypeEQ(v HashAlgorithmType) predicate.HashesEntry
- func HashAlgorithmTypeIn(vs ...HashAlgorithmType) predicate.HashesEntry
- func HashAlgorithmTypeNEQ(v HashAlgorithmType) predicate.HashesEntry
- func HashAlgorithmTypeNotIn(vs ...HashAlgorithmType) predicate.HashesEntry
- func HashAlgorithmTypeValidator(hat HashAlgorithmType) error
- func HashData(v string) predicate.HashesEntry
- func HashDataContains(v string) predicate.HashesEntry
- func HashDataContainsFold(v string) predicate.HashesEntry
- func HashDataEQ(v string) predicate.HashesEntry
- func HashDataEqualFold(v string) predicate.HashesEntry
- func HashDataGT(v string) predicate.HashesEntry
- func HashDataGTE(v string) predicate.HashesEntry
- func HashDataHasPrefix(v string) predicate.HashesEntry
- func HashDataHasSuffix(v string) predicate.HashesEntry
- func HashDataIn(vs ...string) predicate.HashesEntry
- func HashDataLT(v string) predicate.HashesEntry
- func HashDataLTE(v string) predicate.HashesEntry
- func HashDataNEQ(v string) predicate.HashesEntry
- func HashDataNotIn(vs ...string) predicate.HashesEntry
- func ID(id int) predicate.HashesEntry
- func IDEQ(id int) predicate.HashesEntry
- func IDGT(id int) predicate.HashesEntry
- func IDGTE(id int) predicate.HashesEntry
- func IDIn(ids ...int) predicate.HashesEntry
- func IDLT(id int) predicate.HashesEntry
- func IDLTE(id int) predicate.HashesEntry
- func IDNEQ(id int) predicate.HashesEntry
- func IDNotIn(ids ...int) predicate.HashesEntry
- func NodeID(v string) predicate.HashesEntry
- func NodeIDContains(v string) predicate.HashesEntry
- func NodeIDContainsFold(v string) predicate.HashesEntry
- func NodeIDEQ(v string) predicate.HashesEntry
- func NodeIDEqualFold(v string) predicate.HashesEntry
- func NodeIDGT(v string) predicate.HashesEntry
- func NodeIDGTE(v string) predicate.HashesEntry
- func NodeIDHasPrefix(v string) predicate.HashesEntry
- func NodeIDHasSuffix(v string) predicate.HashesEntry
- func NodeIDIn(vs ...string) predicate.HashesEntry
- func NodeIDIsNil() predicate.HashesEntry
- func NodeIDLT(v string) predicate.HashesEntry
- func NodeIDLTE(v string) predicate.HashesEntry
- func NodeIDNEQ(v string) predicate.HashesEntry
- func NodeIDNotIn(vs ...string) predicate.HashesEntry
- func NodeIDNotNil() predicate.HashesEntry
- func Not(p predicate.HashesEntry) predicate.HashesEntry
- func Or(predicates ...predicate.HashesEntry) predicate.HashesEntry
- func ValidColumn(column string) bool
- type HashAlgorithmType
- type OrderOption
- func ByExternalReferenceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByExternalReferenceID(opts ...sql.OrderTermOption) OrderOption
- func ByHashAlgorithmType(opts ...sql.OrderTermOption) OrderOption
- func ByHashData(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNodeID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the hashesentry type in the database. Label = "hashes_entry" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldExternalReferenceID holds the string denoting the external_reference_id field in the database. FieldExternalReferenceID = "external_reference_id" // FieldNodeID holds the string denoting the node_id field in the database. FieldNodeID = "node_id" // FieldHashAlgorithmType holds the string denoting the hash_algorithm_type field in the database. FieldHashAlgorithmType = "hash_algorithm_type" // FieldHashData holds the string denoting the hash_data field in the database. FieldHashData = "hash_data" // EdgeExternalReference holds the string denoting the external_reference edge name in mutations. EdgeExternalReference = "external_reference" // EdgeNode holds the string denoting the node edge name in mutations. EdgeNode = "node" // Table holds the table name of the hashesentry in the database. Table = "hashes_entries" // ExternalReferenceTable is the table that holds the external_reference relation/edge. ExternalReferenceTable = "hashes_entries" // ExternalReferenceInverseTable is the table name for the ExternalReference entity. // It exists in this package in order to avoid circular dependency with the "externalreference" package. ExternalReferenceInverseTable = "external_references" // ExternalReferenceColumn is the table column denoting the external_reference relation/edge. ExternalReferenceColumn = "external_reference_id" // NodeTable is the table that holds the node relation/edge. NodeTable = "hashes_entries" // NodeInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodeInverseTable = "nodes" // NodeColumn is the table column denoting the node relation/edge. NodeColumn = "node_id" )
Variables ¶
var Columns = []string{ FieldID, FieldExternalReferenceID, FieldNodeID, FieldHashAlgorithmType, FieldHashData, }
Columns holds all SQL columns for hashesentry fields.
Functions ¶
func And ¶
func And(predicates ...predicate.HashesEntry) predicate.HashesEntry
And groups predicates with the AND operator between them.
func ExternalReferenceID ¶ added in v0.1.1
func ExternalReferenceID(v int) predicate.HashesEntry
ExternalReferenceID applies equality check predicate on the "external_reference_id" field. It's identical to ExternalReferenceIDEQ.
func ExternalReferenceIDEQ ¶ added in v0.1.1
func ExternalReferenceIDEQ(v int) predicate.HashesEntry
ExternalReferenceIDEQ applies the EQ predicate on the "external_reference_id" field.
func ExternalReferenceIDIn ¶ added in v0.1.1
func ExternalReferenceIDIn(vs ...int) predicate.HashesEntry
ExternalReferenceIDIn applies the In predicate on the "external_reference_id" field.
func ExternalReferenceIDIsNil ¶ added in v0.1.1
func ExternalReferenceIDIsNil() predicate.HashesEntry
ExternalReferenceIDIsNil applies the IsNil predicate on the "external_reference_id" field.
func ExternalReferenceIDNEQ ¶ added in v0.1.1
func ExternalReferenceIDNEQ(v int) predicate.HashesEntry
ExternalReferenceIDNEQ applies the NEQ predicate on the "external_reference_id" field.
func ExternalReferenceIDNotIn ¶ added in v0.1.1
func ExternalReferenceIDNotIn(vs ...int) predicate.HashesEntry
ExternalReferenceIDNotIn applies the NotIn predicate on the "external_reference_id" field.
func ExternalReferenceIDNotNil ¶ added in v0.1.1
func ExternalReferenceIDNotNil() predicate.HashesEntry
ExternalReferenceIDNotNil applies the NotNil predicate on the "external_reference_id" field.
func HasExternalReference ¶
func HasExternalReference() predicate.HashesEntry
HasExternalReference applies the HasEdge predicate on the "external_reference" edge.
func HasExternalReferenceWith ¶
func HasExternalReferenceWith(preds ...predicate.ExternalReference) predicate.HashesEntry
HasExternalReferenceWith applies the HasEdge predicate on the "external_reference" edge with a given conditions (other predicates).
func HasNode ¶
func HasNode() predicate.HashesEntry
HasNode applies the HasEdge predicate on the "node" edge.
func HasNodeWith ¶
func HasNodeWith(preds ...predicate.Node) predicate.HashesEntry
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func HashAlgorithmTypeEQ ¶
func HashAlgorithmTypeEQ(v HashAlgorithmType) predicate.HashesEntry
HashAlgorithmTypeEQ applies the EQ predicate on the "hash_algorithm_type" field.
func HashAlgorithmTypeIn ¶
func HashAlgorithmTypeIn(vs ...HashAlgorithmType) predicate.HashesEntry
HashAlgorithmTypeIn applies the In predicate on the "hash_algorithm_type" field.
func HashAlgorithmTypeNEQ ¶
func HashAlgorithmTypeNEQ(v HashAlgorithmType) predicate.HashesEntry
HashAlgorithmTypeNEQ applies the NEQ predicate on the "hash_algorithm_type" field.
func HashAlgorithmTypeNotIn ¶
func HashAlgorithmTypeNotIn(vs ...HashAlgorithmType) predicate.HashesEntry
HashAlgorithmTypeNotIn applies the NotIn predicate on the "hash_algorithm_type" field.
func HashAlgorithmTypeValidator ¶
func HashAlgorithmTypeValidator(hat HashAlgorithmType) error
HashAlgorithmTypeValidator is a validator for the "hash_algorithm_type" field enum values. It is called by the builders before save.
func HashData ¶
func HashData(v string) predicate.HashesEntry
HashData applies equality check predicate on the "hash_data" field. It's identical to HashDataEQ.
func HashDataContains ¶
func HashDataContains(v string) predicate.HashesEntry
HashDataContains applies the Contains predicate on the "hash_data" field.
func HashDataContainsFold ¶
func HashDataContainsFold(v string) predicate.HashesEntry
HashDataContainsFold applies the ContainsFold predicate on the "hash_data" field.
func HashDataEQ ¶
func HashDataEQ(v string) predicate.HashesEntry
HashDataEQ applies the EQ predicate on the "hash_data" field.
func HashDataEqualFold ¶
func HashDataEqualFold(v string) predicate.HashesEntry
HashDataEqualFold applies the EqualFold predicate on the "hash_data" field.
func HashDataGT ¶
func HashDataGT(v string) predicate.HashesEntry
HashDataGT applies the GT predicate on the "hash_data" field.
func HashDataGTE ¶
func HashDataGTE(v string) predicate.HashesEntry
HashDataGTE applies the GTE predicate on the "hash_data" field.
func HashDataHasPrefix ¶
func HashDataHasPrefix(v string) predicate.HashesEntry
HashDataHasPrefix applies the HasPrefix predicate on the "hash_data" field.
func HashDataHasSuffix ¶
func HashDataHasSuffix(v string) predicate.HashesEntry
HashDataHasSuffix applies the HasSuffix predicate on the "hash_data" field.
func HashDataIn ¶
func HashDataIn(vs ...string) predicate.HashesEntry
HashDataIn applies the In predicate on the "hash_data" field.
func HashDataLT ¶
func HashDataLT(v string) predicate.HashesEntry
HashDataLT applies the LT predicate on the "hash_data" field.
func HashDataLTE ¶
func HashDataLTE(v string) predicate.HashesEntry
HashDataLTE applies the LTE predicate on the "hash_data" field.
func HashDataNEQ ¶
func HashDataNEQ(v string) predicate.HashesEntry
HashDataNEQ applies the NEQ predicate on the "hash_data" field.
func HashDataNotIn ¶
func HashDataNotIn(vs ...string) predicate.HashesEntry
HashDataNotIn applies the NotIn predicate on the "hash_data" field.
func IDGTE ¶
func IDGTE(id int) predicate.HashesEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.HashesEntry
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.HashesEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.HashesEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.HashesEntry
IDNotIn applies the NotIn predicate on the ID field.
func NodeID ¶ added in v0.1.1
func NodeID(v string) predicate.HashesEntry
NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.
func NodeIDContains ¶ added in v0.1.1
func NodeIDContains(v string) predicate.HashesEntry
NodeIDContains applies the Contains predicate on the "node_id" field.
func NodeIDContainsFold ¶ added in v0.1.1
func NodeIDContainsFold(v string) predicate.HashesEntry
NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.
func NodeIDEQ ¶ added in v0.1.1
func NodeIDEQ(v string) predicate.HashesEntry
NodeIDEQ applies the EQ predicate on the "node_id" field.
func NodeIDEqualFold ¶ added in v0.1.1
func NodeIDEqualFold(v string) predicate.HashesEntry
NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.
func NodeIDGT ¶ added in v0.1.1
func NodeIDGT(v string) predicate.HashesEntry
NodeIDGT applies the GT predicate on the "node_id" field.
func NodeIDGTE ¶ added in v0.1.1
func NodeIDGTE(v string) predicate.HashesEntry
NodeIDGTE applies the GTE predicate on the "node_id" field.
func NodeIDHasPrefix ¶ added in v0.1.1
func NodeIDHasPrefix(v string) predicate.HashesEntry
NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.
func NodeIDHasSuffix ¶ added in v0.1.1
func NodeIDHasSuffix(v string) predicate.HashesEntry
NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.
func NodeIDIn ¶ added in v0.1.1
func NodeIDIn(vs ...string) predicate.HashesEntry
NodeIDIn applies the In predicate on the "node_id" field.
func NodeIDIsNil ¶ added in v0.1.1
func NodeIDIsNil() predicate.HashesEntry
NodeIDIsNil applies the IsNil predicate on the "node_id" field.
func NodeIDLT ¶ added in v0.1.1
func NodeIDLT(v string) predicate.HashesEntry
NodeIDLT applies the LT predicate on the "node_id" field.
func NodeIDLTE ¶ added in v0.1.1
func NodeIDLTE(v string) predicate.HashesEntry
NodeIDLTE applies the LTE predicate on the "node_id" field.
func NodeIDNEQ ¶ added in v0.1.1
func NodeIDNEQ(v string) predicate.HashesEntry
NodeIDNEQ applies the NEQ predicate on the "node_id" field.
func NodeIDNotIn ¶ added in v0.1.1
func NodeIDNotIn(vs ...string) predicate.HashesEntry
NodeIDNotIn applies the NotIn predicate on the "node_id" field.
func NodeIDNotNil ¶ added in v0.1.1
func NodeIDNotNil() predicate.HashesEntry
NodeIDNotNil applies the NotNil predicate on the "node_id" field.
func Not ¶
func Not(p predicate.HashesEntry) predicate.HashesEntry
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.HashesEntry) predicate.HashesEntry
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type HashAlgorithmType ¶
type HashAlgorithmType string
HashAlgorithmType defines the type for the "hash_algorithm_type" enum field.
const ( HashAlgorithmTypeUNKNOWN HashAlgorithmType = "UNKNOWN" HashAlgorithmTypeMD5 HashAlgorithmType = "MD5" HashAlgorithmTypeSHA1 HashAlgorithmType = "SHA1" HashAlgorithmTypeSHA256 HashAlgorithmType = "SHA256" HashAlgorithmTypeSHA384 HashAlgorithmType = "SHA384" HashAlgorithmTypeSHA512 HashAlgorithmType = "SHA512" HashAlgorithmTypeSHA3_256 HashAlgorithmType = "SHA3_256" HashAlgorithmTypeSHA3_384 HashAlgorithmType = "SHA3_384" HashAlgorithmTypeSHA3_512 HashAlgorithmType = "SHA3_512" HashAlgorithmTypeBLAKE2B_256 HashAlgorithmType = "BLAKE2B_256" HashAlgorithmTypeBLAKE2B_384 HashAlgorithmType = "BLAKE2B_384" HashAlgorithmTypeBLAKE2B_512 HashAlgorithmType = "BLAKE2B_512" HashAlgorithmTypeBLAKE3 HashAlgorithmType = "BLAKE3" HashAlgorithmTypeMD2 HashAlgorithmType = "MD2" HashAlgorithmTypeADLER32 HashAlgorithmType = "ADLER32" HashAlgorithmTypeMD4 HashAlgorithmType = "MD4" HashAlgorithmTypeMD6 HashAlgorithmType = "MD6" HashAlgorithmTypeSHA224 HashAlgorithmType = "SHA224" )
HashAlgorithmType values.
func (HashAlgorithmType) String ¶
func (hat HashAlgorithmType) String() string
type OrderOption ¶
OrderOption defines the ordering options for the HashesEntry queries.
func ByExternalReferenceField ¶
func ByExternalReferenceField(field string, opts ...sql.OrderTermOption) OrderOption
ByExternalReferenceField orders the results by external_reference field.
func ByExternalReferenceID ¶ added in v0.1.1
func ByExternalReferenceID(opts ...sql.OrderTermOption) OrderOption
ByExternalReferenceID orders the results by the external_reference_id field.
func ByHashAlgorithmType ¶
func ByHashAlgorithmType(opts ...sql.OrderTermOption) OrderOption
ByHashAlgorithmType orders the results by the hash_algorithm_type field.
func ByHashData ¶
func ByHashData(opts ...sql.OrderTermOption) OrderOption
ByHashData orders the results by the hash_data field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNodeField ¶
func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
ByNodeField orders the results by node field.
func ByNodeID ¶ added in v0.1.1
func ByNodeID(opts ...sql.OrderTermOption) OrderOption
ByNodeID orders the results by the node_id field.