Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Status) predicate.Status
- func CreatedAt(v time.Time) predicate.Status
- func CreatedAtEQ(v time.Time) predicate.Status
- func CreatedAtGT(v time.Time) predicate.Status
- func CreatedAtGTE(v time.Time) predicate.Status
- func CreatedAtIn(vs ...time.Time) predicate.Status
- func CreatedAtLT(v time.Time) predicate.Status
- func CreatedAtLTE(v time.Time) predicate.Status
- func CreatedAtNEQ(v time.Time) predicate.Status
- func CreatedAtNotIn(vs ...time.Time) predicate.Status
- func HasMetadata() predicate.Status
- func HasMetadataWith(preds ...predicate.Metadata) predicate.Status
- func HasNamespace() predicate.Status
- func HasNamespaceWith(preds ...predicate.StatusNamespace) predicate.Status
- func ID(id gidx.PrefixedID) predicate.Status
- func IDEQ(id gidx.PrefixedID) predicate.Status
- func IDGT(id gidx.PrefixedID) predicate.Status
- func IDGTE(id gidx.PrefixedID) predicate.Status
- func IDIn(ids ...gidx.PrefixedID) predicate.Status
- func IDLT(id gidx.PrefixedID) predicate.Status
- func IDLTE(id gidx.PrefixedID) predicate.Status
- func IDNEQ(id gidx.PrefixedID) predicate.Status
- func IDNotIn(ids ...gidx.PrefixedID) predicate.Status
- func MetadataID(v gidx.PrefixedID) predicate.Status
- func MetadataIDContains(v gidx.PrefixedID) predicate.Status
- func MetadataIDContainsFold(v gidx.PrefixedID) predicate.Status
- func MetadataIDEQ(v gidx.PrefixedID) predicate.Status
- func MetadataIDEqualFold(v gidx.PrefixedID) predicate.Status
- func MetadataIDGT(v gidx.PrefixedID) predicate.Status
- func MetadataIDGTE(v gidx.PrefixedID) predicate.Status
- func MetadataIDHasPrefix(v gidx.PrefixedID) predicate.Status
- func MetadataIDHasSuffix(v gidx.PrefixedID) predicate.Status
- func MetadataIDIn(vs ...gidx.PrefixedID) predicate.Status
- func MetadataIDLT(v gidx.PrefixedID) predicate.Status
- func MetadataIDLTE(v gidx.PrefixedID) predicate.Status
- func MetadataIDNEQ(v gidx.PrefixedID) predicate.Status
- func MetadataIDNotIn(vs ...gidx.PrefixedID) predicate.Status
- func Not(p predicate.Status) predicate.Status
- func Or(predicates ...predicate.Status) predicate.Status
- func Source(v string) predicate.Status
- func SourceContains(v string) predicate.Status
- func SourceContainsFold(v string) predicate.Status
- func SourceEQ(v string) predicate.Status
- func SourceEqualFold(v string) predicate.Status
- func SourceGT(v string) predicate.Status
- func SourceGTE(v string) predicate.Status
- func SourceHasPrefix(v string) predicate.Status
- func SourceHasSuffix(v string) predicate.Status
- func SourceIn(vs ...string) predicate.Status
- func SourceLT(v string) predicate.Status
- func SourceLTE(v string) predicate.Status
- func SourceNEQ(v string) predicate.Status
- func SourceNotIn(vs ...string) predicate.Status
- func StatusNamespaceID(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDContains(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDContainsFold(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDEQ(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDEqualFold(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDGT(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDGTE(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDHasPrefix(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDHasSuffix(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDIn(vs ...gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDLT(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDLTE(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDNEQ(v gidx.PrefixedID) predicate.Status
- func StatusNamespaceIDNotIn(vs ...gidx.PrefixedID) predicate.Status
- func UpdatedAt(v time.Time) predicate.Status
- func UpdatedAtEQ(v time.Time) predicate.Status
- func UpdatedAtGT(v time.Time) predicate.Status
- func UpdatedAtGTE(v time.Time) predicate.Status
- func UpdatedAtIn(vs ...time.Time) predicate.Status
- func UpdatedAtLT(v time.Time) predicate.Status
- func UpdatedAtLTE(v time.Time) predicate.Status
- func UpdatedAtNEQ(v time.Time) predicate.Status
- func UpdatedAtNotIn(vs ...time.Time) predicate.Status
- func ValidColumn(column string) bool
- type 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 BySource(opts ...sql.OrderTermOption) OrderOption
- func ByStatusNamespaceID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the status type in the database. Label = "status" // 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" // FieldStatusNamespaceID holds the string denoting the status_namespace_id field in the database. FieldStatusNamespaceID = "status_namespace_id" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // 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 status in the database. Table = "status" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "status" // NamespaceInverseTable is the table name for the StatusNamespace entity. // It exists in this package in order to avoid circular dependency with the "statusnamespace" package. NamespaceInverseTable = "status_namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "status_namespace_id" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "status" // 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 // MetadataIDValidator is a validator for the "metadata_id" field. It is called by the builders before save. MetadataIDValidator func(string) error // StatusNamespaceIDValidator is a validator for the "status_namespace_id" field. It is called by the builders before save. StatusNamespaceIDValidator func(string) error // SourceValidator is a validator for the "source" field. It is called by the builders before save. SourceValidator 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, FieldStatusNamespaceID, FieldSource, FieldData, }
Columns holds all SQL columns for status fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
func HasNamespaceWith(preds ...predicate.StatusNamespace) predicate.Status
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id gidx.PrefixedID) predicate.Status
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id gidx.PrefixedID) predicate.Status
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id gidx.PrefixedID) predicate.Status
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...gidx.PrefixedID) predicate.Status
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id gidx.PrefixedID) predicate.Status
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id gidx.PrefixedID) predicate.Status
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id gidx.PrefixedID) predicate.Status
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...gidx.PrefixedID) predicate.Status
IDNotIn applies the NotIn predicate on the ID field.
func MetadataID ¶
func MetadataID(v gidx.PrefixedID) predicate.Status
MetadataID applies equality check predicate on the "metadata_id" field. It's identical to MetadataIDEQ.
func MetadataIDContains ¶
func MetadataIDContains(v gidx.PrefixedID) predicate.Status
MetadataIDContains applies the Contains predicate on the "metadata_id" field.
func MetadataIDContainsFold ¶
func MetadataIDContainsFold(v gidx.PrefixedID) predicate.Status
MetadataIDContainsFold applies the ContainsFold predicate on the "metadata_id" field.
func MetadataIDEQ ¶
func MetadataIDEQ(v gidx.PrefixedID) predicate.Status
MetadataIDEQ applies the EQ predicate on the "metadata_id" field.
func MetadataIDEqualFold ¶
func MetadataIDEqualFold(v gidx.PrefixedID) predicate.Status
MetadataIDEqualFold applies the EqualFold predicate on the "metadata_id" field.
func MetadataIDGT ¶
func MetadataIDGT(v gidx.PrefixedID) predicate.Status
MetadataIDGT applies the GT predicate on the "metadata_id" field.
func MetadataIDGTE ¶
func MetadataIDGTE(v gidx.PrefixedID) predicate.Status
MetadataIDGTE applies the GTE predicate on the "metadata_id" field.
func MetadataIDHasPrefix ¶
func MetadataIDHasPrefix(v gidx.PrefixedID) predicate.Status
MetadataIDHasPrefix applies the HasPrefix predicate on the "metadata_id" field.
func MetadataIDHasSuffix ¶
func MetadataIDHasSuffix(v gidx.PrefixedID) predicate.Status
MetadataIDHasSuffix applies the HasSuffix predicate on the "metadata_id" field.
func MetadataIDIn ¶
func MetadataIDIn(vs ...gidx.PrefixedID) predicate.Status
MetadataIDIn applies the In predicate on the "metadata_id" field.
func MetadataIDLT ¶
func MetadataIDLT(v gidx.PrefixedID) predicate.Status
MetadataIDLT applies the LT predicate on the "metadata_id" field.
func MetadataIDLTE ¶
func MetadataIDLTE(v gidx.PrefixedID) predicate.Status
MetadataIDLTE applies the LTE predicate on the "metadata_id" field.
func MetadataIDNEQ ¶
func MetadataIDNEQ(v gidx.PrefixedID) predicate.Status
MetadataIDNEQ applies the NEQ predicate on the "metadata_id" field.
func MetadataIDNotIn ¶
func MetadataIDNotIn(vs ...gidx.PrefixedID) predicate.Status
MetadataIDNotIn applies the NotIn predicate on the "metadata_id" field.
func Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEqualFold ¶
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceHasPrefix ¶
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func StatusNamespaceID ¶
func StatusNamespaceID(v gidx.PrefixedID) predicate.Status
StatusNamespaceID applies equality check predicate on the "status_namespace_id" field. It's identical to StatusNamespaceIDEQ.
func StatusNamespaceIDContains ¶
func StatusNamespaceIDContains(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDContains applies the Contains predicate on the "status_namespace_id" field.
func StatusNamespaceIDContainsFold ¶
func StatusNamespaceIDContainsFold(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDContainsFold applies the ContainsFold predicate on the "status_namespace_id" field.
func StatusNamespaceIDEQ ¶
func StatusNamespaceIDEQ(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDEQ applies the EQ predicate on the "status_namespace_id" field.
func StatusNamespaceIDEqualFold ¶
func StatusNamespaceIDEqualFold(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDEqualFold applies the EqualFold predicate on the "status_namespace_id" field.
func StatusNamespaceIDGT ¶
func StatusNamespaceIDGT(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDGT applies the GT predicate on the "status_namespace_id" field.
func StatusNamespaceIDGTE ¶
func StatusNamespaceIDGTE(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDGTE applies the GTE predicate on the "status_namespace_id" field.
func StatusNamespaceIDHasPrefix ¶
func StatusNamespaceIDHasPrefix(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDHasPrefix applies the HasPrefix predicate on the "status_namespace_id" field.
func StatusNamespaceIDHasSuffix ¶
func StatusNamespaceIDHasSuffix(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDHasSuffix applies the HasSuffix predicate on the "status_namespace_id" field.
func StatusNamespaceIDIn ¶
func StatusNamespaceIDIn(vs ...gidx.PrefixedID) predicate.Status
StatusNamespaceIDIn applies the In predicate on the "status_namespace_id" field.
func StatusNamespaceIDLT ¶
func StatusNamespaceIDLT(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDLT applies the LT predicate on the "status_namespace_id" field.
func StatusNamespaceIDLTE ¶
func StatusNamespaceIDLTE(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDLTE applies the LTE predicate on the "status_namespace_id" field.
func StatusNamespaceIDNEQ ¶
func StatusNamespaceIDNEQ(v gidx.PrefixedID) predicate.Status
StatusNamespaceIDNEQ applies the NEQ predicate on the "status_namespace_id" field.
func StatusNamespaceIDNotIn ¶
func StatusNamespaceIDNotIn(vs ...gidx.PrefixedID) predicate.Status
StatusNamespaceIDNotIn applies the NotIn predicate on the "status_namespace_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 Status queries.
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 BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByStatusNamespaceID ¶
func ByStatusNamespaceID(opts ...sql.OrderTermOption) OrderOption
ByStatusNamespaceID orders the results by the status_namespace_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.