Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Attestation) predicate.Attestation
- func HasAttestationCollection() predicate.Attestation
- func HasAttestationCollectionWith(preds ...predicate.AttestationCollection) predicate.Attestation
- func ID(id uuid.UUID) predicate.Attestation
- func IDEQ(id uuid.UUID) predicate.Attestation
- func IDGT(id uuid.UUID) predicate.Attestation
- func IDGTE(id uuid.UUID) predicate.Attestation
- func IDIn(ids ...uuid.UUID) predicate.Attestation
- func IDLT(id uuid.UUID) predicate.Attestation
- func IDLTE(id uuid.UUID) predicate.Attestation
- func IDNEQ(id uuid.UUID) predicate.Attestation
- func IDNotIn(ids ...uuid.UUID) predicate.Attestation
- func Not(p predicate.Attestation) predicate.Attestation
- func Or(predicates ...predicate.Attestation) predicate.Attestation
- func Type(v string) predicate.Attestation
- func TypeContains(v string) predicate.Attestation
- func TypeContainsFold(v string) predicate.Attestation
- func TypeEQ(v string) predicate.Attestation
- func TypeEqualFold(v string) predicate.Attestation
- func TypeGT(v string) predicate.Attestation
- func TypeGTE(v string) predicate.Attestation
- func TypeHasPrefix(v string) predicate.Attestation
- func TypeHasSuffix(v string) predicate.Attestation
- func TypeIn(vs ...string) predicate.Attestation
- func TypeLT(v string) predicate.Attestation
- func TypeLTE(v string) predicate.Attestation
- func TypeNEQ(v string) predicate.Attestation
- func TypeNotIn(vs ...string) predicate.Attestation
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the attestation type in the database. Label = "attestation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeAttestationCollection holds the string denoting the attestation_collection edge name in mutations. EdgeAttestationCollection = "attestation_collection" // Table holds the table name of the attestation in the database. Table = "attestations" // AttestationCollectionTable is the table that holds the attestation_collection relation/edge. AttestationCollectionTable = "attestations" // AttestationCollectionInverseTable is the table name for the AttestationCollection entity. // It exists in this package in order to avoid circular dependency with the "attestationcollection" package. AttestationCollectionInverseTable = "attestation_collections" // AttestationCollectionColumn is the table column denoting the attestation_collection relation/edge. AttestationCollectionColumn = "attestation_collection_attestations" )
Variables ¶
var ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldType, }
Columns holds all SQL columns for attestation fields.
var ForeignKeys = []string{
"attestation_collection_attestations",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "attestations" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Attestation) predicate.Attestation
And groups predicates with the AND operator between them.
func HasAttestationCollection ¶
func HasAttestationCollection() predicate.Attestation
HasAttestationCollection applies the HasEdge predicate on the "attestation_collection" edge.
func HasAttestationCollectionWith ¶
func HasAttestationCollectionWith(preds ...predicate.AttestationCollection) predicate.Attestation
HasAttestationCollectionWith applies the HasEdge predicate on the "attestation_collection" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Attestation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Attestation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Attestation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Attestation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Attestation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Attestation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Attestation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Attestation
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Attestation) predicate.Attestation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Attestation) predicate.Attestation
Or groups predicates with the OR operator between them.
func Type ¶
func Type(v string) predicate.Attestation
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.Attestation
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.Attestation
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.Attestation
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.Attestation
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.Attestation
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.Attestation
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.Attestation
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.Attestation
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.Attestation
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.Attestation
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.Attestation
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.Attestation
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.Attestation
TypeNotIn applies the NotIn predicate on the "type" 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 Attestation queries.
func ByAttestationCollectionField ¶
func ByAttestationCollectionField(field string, opts ...sql.OrderTermOption) OrderOption
ByAttestationCollectionField orders the results by attestation_collection field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.