Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Annotation) predicate.Annotation
- func AnnotationNamespaceID(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDContains(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDContainsFold(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDEQ(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDEqualFold(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDGT(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDGTE(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDHasPrefix(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDHasSuffix(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDIn(vs ...gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDLT(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDLTE(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDNEQ(v gidx.PrefixedID) predicate.Annotation
- func AnnotationNamespaceIDNotIn(vs ...gidx.PrefixedID) predicate.Annotation
- func CreatedAt(v time.Time) predicate.Annotation
- func CreatedAtEQ(v time.Time) predicate.Annotation
- func CreatedAtGT(v time.Time) predicate.Annotation
- func CreatedAtGTE(v time.Time) predicate.Annotation
- func CreatedAtIn(vs ...time.Time) predicate.Annotation
- func CreatedAtLT(v time.Time) predicate.Annotation
- func CreatedAtLTE(v time.Time) predicate.Annotation
- func CreatedAtNEQ(v time.Time) predicate.Annotation
- func CreatedAtNotIn(vs ...time.Time) predicate.Annotation
- func HasMetadata() predicate.Annotation
- func HasMetadataWith(preds ...predicate.Metadata) predicate.Annotation
- func HasNamespace() predicate.Annotation
- func HasNamespaceWith(preds ...predicate.AnnotationNamespace) predicate.Annotation
- func ID(id gidx.PrefixedID) predicate.Annotation
- func IDEQ(id gidx.PrefixedID) predicate.Annotation
- func IDGT(id gidx.PrefixedID) predicate.Annotation
- func IDGTE(id gidx.PrefixedID) predicate.Annotation
- func IDIn(ids ...gidx.PrefixedID) predicate.Annotation
- func IDLT(id gidx.PrefixedID) predicate.Annotation
- func IDLTE(id gidx.PrefixedID) predicate.Annotation
- func IDNEQ(id gidx.PrefixedID) predicate.Annotation
- func IDNotIn(ids ...gidx.PrefixedID) predicate.Annotation
- func MetadataID(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDContains(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDContainsFold(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDEQ(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDEqualFold(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDGT(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDGTE(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDHasPrefix(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDHasSuffix(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDIn(vs ...gidx.PrefixedID) predicate.Annotation
- func MetadataIDLT(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDLTE(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDNEQ(v gidx.PrefixedID) predicate.Annotation
- func MetadataIDNotIn(vs ...gidx.PrefixedID) predicate.Annotation
- func Not(p predicate.Annotation) predicate.Annotation
- func Or(predicates ...predicate.Annotation) predicate.Annotation
- func UpdatedAt(v time.Time) predicate.Annotation
- func UpdatedAtEQ(v time.Time) predicate.Annotation
- func UpdatedAtGT(v time.Time) predicate.Annotation
- func UpdatedAtGTE(v time.Time) predicate.Annotation
- func UpdatedAtIn(vs ...time.Time) predicate.Annotation
- func UpdatedAtLT(v time.Time) predicate.Annotation
- func UpdatedAtLTE(v time.Time) predicate.Annotation
- func UpdatedAtNEQ(v time.Time) predicate.Annotation
- func UpdatedAtNotIn(vs ...time.Time) predicate.Annotation
- func ValidColumn(column string) bool
- type OrderOption
- func ByAnnotationNamespaceID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMetadataField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMetadataID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the annotation type in the database. Label = "annotation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldMetadataID holds the string denoting the metadata_id field in the database. FieldMetadataID = "metadata_id" // FieldAnnotationNamespaceID holds the string denoting the annotation_namespace_id field in the database. FieldAnnotationNamespaceID = "annotation_namespace_id" // FieldData holds the string denoting the data field in the database. FieldData = "json_data" // EdgeNamespace holds the string denoting the namespace edge name in mutations. EdgeNamespace = "namespace" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // Table holds the table name of the annotation in the database. Table = "annotations" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "annotations" // NamespaceInverseTable is the table name for the AnnotationNamespace entity. // It exists in this package in order to avoid circular dependency with the "annotationnamespace" package. NamespaceInverseTable = "annotation_namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "annotation_namespace_id" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "annotations" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "metadata_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // AnnotationNamespaceIDValidator is a validator for the "annotation_namespace_id" field. It is called by the builders before save. AnnotationNamespaceIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() gidx.PrefixedID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldMetadataID, FieldAnnotationNamespaceID, FieldData, }
Columns holds all SQL columns for annotation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Annotation) predicate.Annotation
And groups predicates with the AND operator between them.
func AnnotationNamespaceID ¶
func AnnotationNamespaceID(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceID applies equality check predicate on the "annotation_namespace_id" field. It's identical to AnnotationNamespaceIDEQ.
func AnnotationNamespaceIDContains ¶
func AnnotationNamespaceIDContains(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDContains applies the Contains predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDContainsFold ¶
func AnnotationNamespaceIDContainsFold(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDContainsFold applies the ContainsFold predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDEQ ¶
func AnnotationNamespaceIDEQ(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDEQ applies the EQ predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDEqualFold ¶
func AnnotationNamespaceIDEqualFold(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDEqualFold applies the EqualFold predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDGT ¶
func AnnotationNamespaceIDGT(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDGT applies the GT predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDGTE ¶
func AnnotationNamespaceIDGTE(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDGTE applies the GTE predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDHasPrefix ¶
func AnnotationNamespaceIDHasPrefix(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDHasPrefix applies the HasPrefix predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDHasSuffix ¶
func AnnotationNamespaceIDHasSuffix(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDHasSuffix applies the HasSuffix predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDIn ¶
func AnnotationNamespaceIDIn(vs ...gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDIn applies the In predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDLT ¶
func AnnotationNamespaceIDLT(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDLT applies the LT predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDLTE ¶
func AnnotationNamespaceIDLTE(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDLTE applies the LTE predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDNEQ ¶
func AnnotationNamespaceIDNEQ(v gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDNEQ applies the NEQ predicate on the "annotation_namespace_id" field.
func AnnotationNamespaceIDNotIn ¶
func AnnotationNamespaceIDNotIn(vs ...gidx.PrefixedID) predicate.Annotation
AnnotationNamespaceIDNotIn applies the NotIn predicate on the "annotation_namespace_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Annotation
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Annotation
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Annotation
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Annotation
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Annotation
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Annotation
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Annotation
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Annotation
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Annotation
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasMetadata ¶
func HasMetadata() predicate.Annotation
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
func HasMetadataWith(preds ...predicate.Metadata) predicate.Annotation
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasNamespace ¶
func HasNamespace() predicate.Annotation
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
func HasNamespaceWith(preds ...predicate.AnnotationNamespace) predicate.Annotation
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func ID ¶
func ID(id gidx.PrefixedID) predicate.Annotation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id gidx.PrefixedID) predicate.Annotation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id gidx.PrefixedID) predicate.Annotation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id gidx.PrefixedID) predicate.Annotation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...gidx.PrefixedID) predicate.Annotation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id gidx.PrefixedID) predicate.Annotation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id gidx.PrefixedID) predicate.Annotation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id gidx.PrefixedID) predicate.Annotation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...gidx.PrefixedID) predicate.Annotation
IDNotIn applies the NotIn predicate on the ID field.
func MetadataID ¶
func MetadataID(v gidx.PrefixedID) predicate.Annotation
MetadataID applies equality check predicate on the "metadata_id" field. It's identical to MetadataIDEQ.
func MetadataIDContains ¶
func MetadataIDContains(v gidx.PrefixedID) predicate.Annotation
MetadataIDContains applies the Contains predicate on the "metadata_id" field.
func MetadataIDContainsFold ¶
func MetadataIDContainsFold(v gidx.PrefixedID) predicate.Annotation
MetadataIDContainsFold applies the ContainsFold predicate on the "metadata_id" field.
func MetadataIDEQ ¶
func MetadataIDEQ(v gidx.PrefixedID) predicate.Annotation
MetadataIDEQ applies the EQ predicate on the "metadata_id" field.
func MetadataIDEqualFold ¶
func MetadataIDEqualFold(v gidx.PrefixedID) predicate.Annotation
MetadataIDEqualFold applies the EqualFold predicate on the "metadata_id" field.
func MetadataIDGT ¶
func MetadataIDGT(v gidx.PrefixedID) predicate.Annotation
MetadataIDGT applies the GT predicate on the "metadata_id" field.
func MetadataIDGTE ¶
func MetadataIDGTE(v gidx.PrefixedID) predicate.Annotation
MetadataIDGTE applies the GTE predicate on the "metadata_id" field.
func MetadataIDHasPrefix ¶
func MetadataIDHasPrefix(v gidx.PrefixedID) predicate.Annotation
MetadataIDHasPrefix applies the HasPrefix predicate on the "metadata_id" field.
func MetadataIDHasSuffix ¶
func MetadataIDHasSuffix(v gidx.PrefixedID) predicate.Annotation
MetadataIDHasSuffix applies the HasSuffix predicate on the "metadata_id" field.
func MetadataIDIn ¶
func MetadataIDIn(vs ...gidx.PrefixedID) predicate.Annotation
MetadataIDIn applies the In predicate on the "metadata_id" field.
func MetadataIDLT ¶
func MetadataIDLT(v gidx.PrefixedID) predicate.Annotation
MetadataIDLT applies the LT predicate on the "metadata_id" field.
func MetadataIDLTE ¶
func MetadataIDLTE(v gidx.PrefixedID) predicate.Annotation
MetadataIDLTE applies the LTE predicate on the "metadata_id" field.
func MetadataIDNEQ ¶
func MetadataIDNEQ(v gidx.PrefixedID) predicate.Annotation
MetadataIDNEQ applies the NEQ predicate on the "metadata_id" field.
func MetadataIDNotIn ¶
func MetadataIDNotIn(vs ...gidx.PrefixedID) predicate.Annotation
MetadataIDNotIn applies the NotIn predicate on the "metadata_id" field.
func Not ¶
func Not(p predicate.Annotation) predicate.Annotation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Annotation) predicate.Annotation
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Annotation
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Annotation
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Annotation
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Annotation
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Annotation
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Annotation
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Annotation
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Annotation
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Annotation
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Annotation queries.
func ByAnnotationNamespaceID ¶
func ByAnnotationNamespaceID(opts ...sql.OrderTermOption) OrderOption
ByAnnotationNamespaceID orders the results by the annotation_namespace_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMetadataField ¶
func ByMetadataField(field string, opts ...sql.OrderTermOption) OrderOption
ByMetadataField orders the results by metadata field.
func ByMetadataID ¶
func ByMetadataID(opts ...sql.OrderTermOption) OrderOption
ByMetadataID orders the results by the metadata_id field.
func ByNamespaceField ¶
func ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByNamespaceField orders the results by namespace field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.