Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HashesEntry) 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 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 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
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" // 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_hashes" // 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_hashes" )
Variables ¶
var Columns = []string{ FieldID, FieldHashAlgorithmType, FieldHashData, }
Columns holds all SQL columns for hashesentry fields.
var ForeignKeys = []string{
"external_reference_hashes",
"node_hashes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "hashes_entries" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.HashesEntry) predicate.HashesEntry
And groups predicates with the AND operator between them.
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 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 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.