status

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for status fields.

Functions

func And

func And(predicates ...predicate.Status) predicate.Status

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Status

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Status

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Status

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Status

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Status

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Status

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Status

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Status

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Status

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasMetadata

func HasMetadata() predicate.Status

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.Status

HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).

func HasNamespace

func HasNamespace() predicate.Status

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

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

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 Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Status) predicate.Status

Or groups predicates with the OR operator between them.

func Source

func Source(v string) predicate.Status

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.Status

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.Status

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.Status

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.Status

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.Status

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.Status

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.Status

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.Status

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.Status

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.Status

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.Status

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.Status

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.Status

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

func UpdatedAt(v time.Time) predicate.Status

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Status

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Status

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Status

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Status

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Status

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Status

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Status

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Status

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL