backgroundtaskrunevent

package
v0.0.0-...-65c6c44 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the backgroundtaskrunevent type in the database.
	Label = "background_task_run_event"
	// 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"
	// FieldSeq holds the string denoting the seq field in the database.
	FieldSeq = "seq"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldEventJSON holds the string denoting the event_json field in the database.
	FieldEventJSON = "event_json"
	// FieldReceivedAt holds the string denoting the received_at field in the database.
	FieldReceivedAt = "received_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// EdgeRun holds the string denoting the run edge name in mutations.
	EdgeRun = "run"
	// Table holds the table name of the backgroundtaskrunevent in the database.
	Table = "background_task_run_events"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "background_task_run_events"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_background_task_run_events"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "background_task_run_events"
	// TaskInverseTable is the table name for the BackgroundTask entity.
	// It exists in this package in order to avoid circular dependency with the "backgroundtask" package.
	TaskInverseTable = "background_tasks"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "background_task_id"
	// RunTable is the table that holds the run relation/edge.
	RunTable = "background_task_run_events"
	// RunInverseTable is the table name for the BackgroundTaskRun entity.
	// It exists in this package in order to avoid circular dependency with the "backgroundtaskrun" package.
	RunInverseTable = "background_task_runs"
	// RunColumn is the table column denoting the run relation/edge.
	RunColumn = "background_task_run_id"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// 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
	// SeqValidator is a validator for the "seq" field. It is called by the builders before save.
	SeqValidator func(int) error
	// EventJSONValidator is a validator for the "event_json" field. It is called by the builders before save.
	EventJSONValidator func(string) error
	// DefaultReceivedAt holds the default value on creation for the "received_at" field.
	DefaultReceivedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"

Columns holds all SQL columns for backgroundtaskrunevent fields.

View Source
var ForeignKeys = []string{
	"background_task_id",
	"background_task_run_id",
	"user_background_task_run_events",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "background_task_run_events" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

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

func CreatedAtGTE(v time.Time) predicate.BackgroundTaskRunEvent

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

func CreatedAtIn

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

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

func CreatedAtLT

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BackgroundTaskRunEvent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BackgroundTaskRunEvent

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

func CreatedAtNotIn

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

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

func EventJSON

EventJSON applies equality check predicate on the "event_json" field. It's identical to EventJSONEQ.

func EventJSONContains

func EventJSONContains(v string) predicate.BackgroundTaskRunEvent

EventJSONContains applies the Contains predicate on the "event_json" field.

func EventJSONContainsFold

func EventJSONContainsFold(v string) predicate.BackgroundTaskRunEvent

EventJSONContainsFold applies the ContainsFold predicate on the "event_json" field.

func EventJSONEQ

EventJSONEQ applies the EQ predicate on the "event_json" field.

func EventJSONEqualFold

func EventJSONEqualFold(v string) predicate.BackgroundTaskRunEvent

EventJSONEqualFold applies the EqualFold predicate on the "event_json" field.

func EventJSONGT

EventJSONGT applies the GT predicate on the "event_json" field.

func EventJSONGTE

func EventJSONGTE(v string) predicate.BackgroundTaskRunEvent

EventJSONGTE applies the GTE predicate on the "event_json" field.

func EventJSONHasPrefix

func EventJSONHasPrefix(v string) predicate.BackgroundTaskRunEvent

EventJSONHasPrefix applies the HasPrefix predicate on the "event_json" field.

func EventJSONHasSuffix

func EventJSONHasSuffix(v string) predicate.BackgroundTaskRunEvent

EventJSONHasSuffix applies the HasSuffix predicate on the "event_json" field.

func EventJSONIn

func EventJSONIn(vs ...string) predicate.BackgroundTaskRunEvent

EventJSONIn applies the In predicate on the "event_json" field.

func EventJSONLT

EventJSONLT applies the LT predicate on the "event_json" field.

func EventJSONLTE

func EventJSONLTE(v string) predicate.BackgroundTaskRunEvent

EventJSONLTE applies the LTE predicate on the "event_json" field.

func EventJSONNEQ

func EventJSONNEQ(v string) predicate.BackgroundTaskRunEvent

EventJSONNEQ applies the NEQ predicate on the "event_json" field.

func EventJSONNotIn

func EventJSONNotIn(vs ...string) predicate.BackgroundTaskRunEvent

EventJSONNotIn applies the NotIn predicate on the "event_json" field.

func EventType

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.BackgroundTaskRunEvent

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.BackgroundTaskRunEvent

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.BackgroundTaskRunEvent

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.BackgroundTaskRunEvent

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.BackgroundTaskRunEvent

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.BackgroundTaskRunEvent

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.BackgroundTaskRunEvent

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeIsNil

func EventTypeIsNil() predicate.BackgroundTaskRunEvent

EventTypeIsNil applies the IsNil predicate on the "event_type" field.

func EventTypeLT

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.BackgroundTaskRunEvent

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.BackgroundTaskRunEvent

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.BackgroundTaskRunEvent

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func EventTypeNotNil

func EventTypeNotNil() predicate.BackgroundTaskRunEvent

EventTypeNotNil applies the NotNil predicate on the "event_type" field.

func HasRun

HasRun applies the HasEdge predicate on the "run" edge.

func HasRunWith

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

func HasTask

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

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

func HasUser

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.BackgroundTaskRunEvent

HasUserWith applies the HasEdge predicate on the "user" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.BackgroundTaskRunEvent

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ReceivedAt

ReceivedAt applies equality check predicate on the "received_at" field. It's identical to ReceivedAtEQ.

func ReceivedAtEQ

func ReceivedAtEQ(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtEQ applies the EQ predicate on the "received_at" field.

func ReceivedAtGT

func ReceivedAtGT(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtGT applies the GT predicate on the "received_at" field.

func ReceivedAtGTE

func ReceivedAtGTE(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtGTE applies the GTE predicate on the "received_at" field.

func ReceivedAtIn

func ReceivedAtIn(vs ...time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtIn applies the In predicate on the "received_at" field.

func ReceivedAtLT

func ReceivedAtLT(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtLT applies the LT predicate on the "received_at" field.

func ReceivedAtLTE

func ReceivedAtLTE(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtLTE applies the LTE predicate on the "received_at" field.

func ReceivedAtNEQ

func ReceivedAtNEQ(v time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtNEQ applies the NEQ predicate on the "received_at" field.

func ReceivedAtNotIn

func ReceivedAtNotIn(vs ...time.Time) predicate.BackgroundTaskRunEvent

ReceivedAtNotIn applies the NotIn predicate on the "received_at" field.

func Seq

Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.

func SeqEQ

SeqEQ applies the EQ predicate on the "seq" field.

func SeqGT

SeqGT applies the GT predicate on the "seq" field.

func SeqGTE

SeqGTE applies the GTE predicate on the "seq" field.

func SeqIn

SeqIn applies the In predicate on the "seq" field.

func SeqLT

SeqLT applies the LT predicate on the "seq" field.

func SeqLTE

SeqLTE applies the LTE predicate on the "seq" field.

func SeqNEQ

SeqNEQ applies the NEQ predicate on the "seq" field.

func SeqNotIn

func SeqNotIn(vs ...int) predicate.BackgroundTaskRunEvent

SeqNotIn applies the NotIn predicate on the "seq" 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

func UpdatedAtGTE(v time.Time) predicate.BackgroundTaskRunEvent

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

func UpdatedAtIn

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

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

func UpdatedAtLT

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BackgroundTaskRunEvent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BackgroundTaskRunEvent

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

func UpdatedAtNotIn

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

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 BackgroundTaskRunEvent queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByEventJSON

func ByEventJSON(opts ...sql.OrderTermOption) OrderOption

ByEventJSON orders the results by the event_json field.

func ByEventType

func ByEventType(opts ...sql.OrderTermOption) OrderOption

ByEventType orders the results by the event_type field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByReceivedAt

func ByReceivedAt(opts ...sql.OrderTermOption) OrderOption

ByReceivedAt orders the results by the received_at field.

func ByRunField

func ByRunField(field string, opts ...sql.OrderTermOption) OrderOption

ByRunField orders the results by run field.

func BySeq

func BySeq(opts ...sql.OrderTermOption) OrderOption

BySeq orders the results by the seq field.

func ByTaskField

func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption

ByTaskField orders the results by task field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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