generation

package
v0.0.0-...-b4b3e93 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the generation type in the database.
	Label = "generation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPrompt holds the string denoting the prompt field in the database.
	FieldPrompt = "prompt"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldVideoURL holds the string denoting the video_url field in the database.
	FieldVideoURL = "video_url"
	// FieldScriptURL holds the string denoting the script_url field in the database.
	FieldScriptURL = "script_url"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the generation in the database.
	Table = "generations"
)
View Source
const DefaultStatus = StatusUnspecified

StatusUnspecified is the default value of the Status enum.

Variables

View Source
var (
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for generation fields.

Functions

func And

func And(predicates ...predicate.Generation) predicate.Generation

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Generation

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Generation

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Generation

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Generation

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Generation

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Generation

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Generation

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

func CreatedAtNotIn

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

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

func ErrorMessage

func ErrorMessage(v string) predicate.Generation

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.Generation

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.Generation

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.Generation

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.Generation

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.Generation

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.Generation

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.Generation

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.Generation

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.Generation

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.Generation

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.Generation

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.Generation

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.Generation

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.Generation

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.Generation

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Generation

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Generation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Generation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Generation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Generation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Generation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Generation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Generation) predicate.Generation

Or groups predicates with the OR operator between them.

func Prompt

func Prompt(v string) predicate.Generation

Prompt applies equality check predicate on the "prompt" field. It's identical to PromptEQ.

func PromptContains

func PromptContains(v string) predicate.Generation

PromptContains applies the Contains predicate on the "prompt" field.

func PromptContainsFold

func PromptContainsFold(v string) predicate.Generation

PromptContainsFold applies the ContainsFold predicate on the "prompt" field.

func PromptEQ

func PromptEQ(v string) predicate.Generation

PromptEQ applies the EQ predicate on the "prompt" field.

func PromptEqualFold

func PromptEqualFold(v string) predicate.Generation

PromptEqualFold applies the EqualFold predicate on the "prompt" field.

func PromptGT

func PromptGT(v string) predicate.Generation

PromptGT applies the GT predicate on the "prompt" field.

func PromptGTE

func PromptGTE(v string) predicate.Generation

PromptGTE applies the GTE predicate on the "prompt" field.

func PromptHasPrefix

func PromptHasPrefix(v string) predicate.Generation

PromptHasPrefix applies the HasPrefix predicate on the "prompt" field.

func PromptHasSuffix

func PromptHasSuffix(v string) predicate.Generation

PromptHasSuffix applies the HasSuffix predicate on the "prompt" field.

func PromptIn

func PromptIn(vs ...string) predicate.Generation

PromptIn applies the In predicate on the "prompt" field.

func PromptIsNil

func PromptIsNil() predicate.Generation

PromptIsNil applies the IsNil predicate on the "prompt" field.

func PromptLT

func PromptLT(v string) predicate.Generation

PromptLT applies the LT predicate on the "prompt" field.

func PromptLTE

func PromptLTE(v string) predicate.Generation

PromptLTE applies the LTE predicate on the "prompt" field.

func PromptNEQ

func PromptNEQ(v string) predicate.Generation

PromptNEQ applies the NEQ predicate on the "prompt" field.

func PromptNotIn

func PromptNotIn(vs ...string) predicate.Generation

PromptNotIn applies the NotIn predicate on the "prompt" field.

func PromptNotNil

func PromptNotNil() predicate.Generation

PromptNotNil applies the NotNil predicate on the "prompt" field.

func ScriptURL

func ScriptURL(v string) predicate.Generation

ScriptURL applies equality check predicate on the "script_url" field. It's identical to ScriptURLEQ.

func ScriptURLContains

func ScriptURLContains(v string) predicate.Generation

ScriptURLContains applies the Contains predicate on the "script_url" field.

func ScriptURLContainsFold

func ScriptURLContainsFold(v string) predicate.Generation

ScriptURLContainsFold applies the ContainsFold predicate on the "script_url" field.

func ScriptURLEQ

func ScriptURLEQ(v string) predicate.Generation

ScriptURLEQ applies the EQ predicate on the "script_url" field.

func ScriptURLEqualFold

func ScriptURLEqualFold(v string) predicate.Generation

ScriptURLEqualFold applies the EqualFold predicate on the "script_url" field.

func ScriptURLGT

func ScriptURLGT(v string) predicate.Generation

ScriptURLGT applies the GT predicate on the "script_url" field.

func ScriptURLGTE

func ScriptURLGTE(v string) predicate.Generation

ScriptURLGTE applies the GTE predicate on the "script_url" field.

func ScriptURLHasPrefix

func ScriptURLHasPrefix(v string) predicate.Generation

ScriptURLHasPrefix applies the HasPrefix predicate on the "script_url" field.

func ScriptURLHasSuffix

func ScriptURLHasSuffix(v string) predicate.Generation

ScriptURLHasSuffix applies the HasSuffix predicate on the "script_url" field.

func ScriptURLIn

func ScriptURLIn(vs ...string) predicate.Generation

ScriptURLIn applies the In predicate on the "script_url" field.

func ScriptURLIsNil

func ScriptURLIsNil() predicate.Generation

ScriptURLIsNil applies the IsNil predicate on the "script_url" field.

func ScriptURLLT

func ScriptURLLT(v string) predicate.Generation

ScriptURLLT applies the LT predicate on the "script_url" field.

func ScriptURLLTE

func ScriptURLLTE(v string) predicate.Generation

ScriptURLLTE applies the LTE predicate on the "script_url" field.

func ScriptURLNEQ

func ScriptURLNEQ(v string) predicate.Generation

ScriptURLNEQ applies the NEQ predicate on the "script_url" field.

func ScriptURLNotIn

func ScriptURLNotIn(vs ...string) predicate.Generation

ScriptURLNotIn applies the NotIn predicate on the "script_url" field.

func ScriptURLNotNil

func ScriptURLNotNil() predicate.Generation

ScriptURLNotNil applies the NotNil predicate on the "script_url" field.

func StatusEQ

func StatusEQ(v Status) predicate.Generation

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Generation

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Generation

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Generation

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Generation

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Generation

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Generation

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Generation

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Generation

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Generation

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Generation

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

func UpdatedAtNotIn

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

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

func VideoURL

func VideoURL(v string) predicate.Generation

VideoURL applies equality check predicate on the "video_url" field. It's identical to VideoURLEQ.

func VideoURLContains

func VideoURLContains(v string) predicate.Generation

VideoURLContains applies the Contains predicate on the "video_url" field.

func VideoURLContainsFold

func VideoURLContainsFold(v string) predicate.Generation

VideoURLContainsFold applies the ContainsFold predicate on the "video_url" field.

func VideoURLEQ

func VideoURLEQ(v string) predicate.Generation

VideoURLEQ applies the EQ predicate on the "video_url" field.

func VideoURLEqualFold

func VideoURLEqualFold(v string) predicate.Generation

VideoURLEqualFold applies the EqualFold predicate on the "video_url" field.

func VideoURLGT

func VideoURLGT(v string) predicate.Generation

VideoURLGT applies the GT predicate on the "video_url" field.

func VideoURLGTE

func VideoURLGTE(v string) predicate.Generation

VideoURLGTE applies the GTE predicate on the "video_url" field.

func VideoURLHasPrefix

func VideoURLHasPrefix(v string) predicate.Generation

VideoURLHasPrefix applies the HasPrefix predicate on the "video_url" field.

func VideoURLHasSuffix

func VideoURLHasSuffix(v string) predicate.Generation

VideoURLHasSuffix applies the HasSuffix predicate on the "video_url" field.

func VideoURLIn

func VideoURLIn(vs ...string) predicate.Generation

VideoURLIn applies the In predicate on the "video_url" field.

func VideoURLIsNil

func VideoURLIsNil() predicate.Generation

VideoURLIsNil applies the IsNil predicate on the "video_url" field.

func VideoURLLT

func VideoURLLT(v string) predicate.Generation

VideoURLLT applies the LT predicate on the "video_url" field.

func VideoURLLTE

func VideoURLLTE(v string) predicate.Generation

VideoURLLTE applies the LTE predicate on the "video_url" field.

func VideoURLNEQ

func VideoURLNEQ(v string) predicate.Generation

VideoURLNEQ applies the NEQ predicate on the "video_url" field.

func VideoURLNotIn

func VideoURLNotIn(vs ...string) predicate.Generation

VideoURLNotIn applies the NotIn predicate on the "video_url" field.

func VideoURLNotNil

func VideoURLNotNil() predicate.Generation

VideoURLNotNil applies the NotNil predicate on the "video_url" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Generation queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByErrorMessage

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

ByErrorMessage orders the results by the error_message field.

func ByID

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

ByID orders the results by the id field.

func ByPrompt

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

ByPrompt orders the results by the prompt field.

func ByScriptURL

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

ByScriptURL orders the results by the script_url field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVideoURL

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

ByVideoURL orders the results by the video_url field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusUnspecified Status = "unspecified"
	StatusPending     Status = "pending"
	StatusProcessing  Status = "processing"
	StatusCompleted   Status = "completed"
	StatusFailed      Status = "failed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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