backgroundtaskartifact

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 backgroundtaskartifact type in the database.
	Label = "background_task_artifact"
	// 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"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldRevision holds the string denoting the revision field in the database.
	FieldRevision = "revision"
	// FieldUpdatedByRunID holds the string denoting the updated_by_run_id field in the database.
	FieldUpdatedByRunID = "updated_by_run_id"
	// FieldContentType holds the string denoting the content_type field in the database.
	FieldContentType = "content_type"
	// 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"
	// Table holds the table name of the backgroundtaskartifact in the database.
	Table = "background_task_artifacts"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "background_task_artifacts"
	// 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_artifacts"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "background_task_artifacts"
	// 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"
)

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
	// DefaultBody holds the default value on creation for the "body" field.
	DefaultBody string
	// DefaultRevision holds the default value on creation for the "revision" field.
	DefaultRevision int
	// RevisionValidator is a validator for the "revision" field. It is called by the builders before save.
	RevisionValidator func(int) error
	// DefaultContentType holds the default value on creation for the "content_type" field.
	DefaultContentType string
	// 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 backgroundtaskartifact fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func Body

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.BackgroundTaskArtifact

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.BackgroundTaskArtifact

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.BackgroundTaskArtifact

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.BackgroundTaskArtifact

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.BackgroundTaskArtifact

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

BodyIn applies the In predicate on the "body" field.

func BodyLT

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.BackgroundTaskArtifact

BodyNotIn applies the NotIn predicate on the "body" field.

func ContentType

ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.

func ContentTypeContains

func ContentTypeContains(v string) predicate.BackgroundTaskArtifact

ContentTypeContains applies the Contains predicate on the "content_type" field.

func ContentTypeContainsFold

func ContentTypeContainsFold(v string) predicate.BackgroundTaskArtifact

ContentTypeContainsFold applies the ContainsFold predicate on the "content_type" field.

func ContentTypeEQ

func ContentTypeEQ(v string) predicate.BackgroundTaskArtifact

ContentTypeEQ applies the EQ predicate on the "content_type" field.

func ContentTypeEqualFold

func ContentTypeEqualFold(v string) predicate.BackgroundTaskArtifact

ContentTypeEqualFold applies the EqualFold predicate on the "content_type" field.

func ContentTypeGT

func ContentTypeGT(v string) predicate.BackgroundTaskArtifact

ContentTypeGT applies the GT predicate on the "content_type" field.

func ContentTypeGTE

func ContentTypeGTE(v string) predicate.BackgroundTaskArtifact

ContentTypeGTE applies the GTE predicate on the "content_type" field.

func ContentTypeHasPrefix

func ContentTypeHasPrefix(v string) predicate.BackgroundTaskArtifact

ContentTypeHasPrefix applies the HasPrefix predicate on the "content_type" field.

func ContentTypeHasSuffix

func ContentTypeHasSuffix(v string) predicate.BackgroundTaskArtifact

ContentTypeHasSuffix applies the HasSuffix predicate on the "content_type" field.

func ContentTypeIn

func ContentTypeIn(vs ...string) predicate.BackgroundTaskArtifact

ContentTypeIn applies the In predicate on the "content_type" field.

func ContentTypeLT

func ContentTypeLT(v string) predicate.BackgroundTaskArtifact

ContentTypeLT applies the LT predicate on the "content_type" field.

func ContentTypeLTE

func ContentTypeLTE(v string) predicate.BackgroundTaskArtifact

ContentTypeLTE applies the LTE predicate on the "content_type" field.

func ContentTypeNEQ

func ContentTypeNEQ(v string) predicate.BackgroundTaskArtifact

ContentTypeNEQ applies the NEQ predicate on the "content_type" field.

func ContentTypeNotIn

func ContentTypeNotIn(vs ...string) predicate.BackgroundTaskArtifact

ContentTypeNotIn applies the NotIn predicate on the "content_type" field.

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.BackgroundTaskArtifact

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

func CreatedAtIn

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

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.BackgroundTaskArtifact

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BackgroundTaskArtifact

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

func CreatedAtNotIn

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

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

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.BackgroundTaskArtifact

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.BackgroundTaskArtifact

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 Revision

Revision applies equality check predicate on the "revision" field. It's identical to RevisionEQ.

func RevisionEQ

func RevisionEQ(v int) predicate.BackgroundTaskArtifact

RevisionEQ applies the EQ predicate on the "revision" field.

func RevisionGT

func RevisionGT(v int) predicate.BackgroundTaskArtifact

RevisionGT applies the GT predicate on the "revision" field.

func RevisionGTE

func RevisionGTE(v int) predicate.BackgroundTaskArtifact

RevisionGTE applies the GTE predicate on the "revision" field.

func RevisionIn

func RevisionIn(vs ...int) predicate.BackgroundTaskArtifact

RevisionIn applies the In predicate on the "revision" field.

func RevisionLT

func RevisionLT(v int) predicate.BackgroundTaskArtifact

RevisionLT applies the LT predicate on the "revision" field.

func RevisionLTE

func RevisionLTE(v int) predicate.BackgroundTaskArtifact

RevisionLTE applies the LTE predicate on the "revision" field.

func RevisionNEQ

func RevisionNEQ(v int) predicate.BackgroundTaskArtifact

RevisionNEQ applies the NEQ predicate on the "revision" field.

func RevisionNotIn

func RevisionNotIn(vs ...int) predicate.BackgroundTaskArtifact

RevisionNotIn applies the NotIn predicate on the "revision" 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.BackgroundTaskArtifact

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

func UpdatedAtIn

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

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.BackgroundTaskArtifact

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BackgroundTaskArtifact

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

func UpdatedAtNotIn

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

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

func UpdatedByRunID

func UpdatedByRunID(v string) predicate.BackgroundTaskArtifact

UpdatedByRunID applies equality check predicate on the "updated_by_run_id" field. It's identical to UpdatedByRunIDEQ.

func UpdatedByRunIDContains

func UpdatedByRunIDContains(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDContains applies the Contains predicate on the "updated_by_run_id" field.

func UpdatedByRunIDContainsFold

func UpdatedByRunIDContainsFold(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDContainsFold applies the ContainsFold predicate on the "updated_by_run_id" field.

func UpdatedByRunIDEQ

func UpdatedByRunIDEQ(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDEQ applies the EQ predicate on the "updated_by_run_id" field.

func UpdatedByRunIDEqualFold

func UpdatedByRunIDEqualFold(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDEqualFold applies the EqualFold predicate on the "updated_by_run_id" field.

func UpdatedByRunIDGT

func UpdatedByRunIDGT(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDGT applies the GT predicate on the "updated_by_run_id" field.

func UpdatedByRunIDGTE

func UpdatedByRunIDGTE(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDGTE applies the GTE predicate on the "updated_by_run_id" field.

func UpdatedByRunIDHasPrefix

func UpdatedByRunIDHasPrefix(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDHasPrefix applies the HasPrefix predicate on the "updated_by_run_id" field.

func UpdatedByRunIDHasSuffix

func UpdatedByRunIDHasSuffix(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDHasSuffix applies the HasSuffix predicate on the "updated_by_run_id" field.

func UpdatedByRunIDIn

func UpdatedByRunIDIn(vs ...string) predicate.BackgroundTaskArtifact

UpdatedByRunIDIn applies the In predicate on the "updated_by_run_id" field.

func UpdatedByRunIDIsNil

func UpdatedByRunIDIsNil() predicate.BackgroundTaskArtifact

UpdatedByRunIDIsNil applies the IsNil predicate on the "updated_by_run_id" field.

func UpdatedByRunIDLT

func UpdatedByRunIDLT(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDLT applies the LT predicate on the "updated_by_run_id" field.

func UpdatedByRunIDLTE

func UpdatedByRunIDLTE(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDLTE applies the LTE predicate on the "updated_by_run_id" field.

func UpdatedByRunIDNEQ

func UpdatedByRunIDNEQ(v string) predicate.BackgroundTaskArtifact

UpdatedByRunIDNEQ applies the NEQ predicate on the "updated_by_run_id" field.

func UpdatedByRunIDNotIn

func UpdatedByRunIDNotIn(vs ...string) predicate.BackgroundTaskArtifact

UpdatedByRunIDNotIn applies the NotIn predicate on the "updated_by_run_id" field.

func UpdatedByRunIDNotNil

func UpdatedByRunIDNotNil() predicate.BackgroundTaskArtifact

UpdatedByRunIDNotNil applies the NotNil predicate on the "updated_by_run_id" 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 BackgroundTaskArtifact queries.

func ByBody

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

ByBody orders the results by the body field.

func ByContentType

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

ByContentType orders the results by the content_type 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 ByRevision

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

ByRevision orders the results by the revision 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 ByUpdatedByRunID

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

ByUpdatedByRunID orders the results by the updated_by_run_id 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