upscalemodel

package
v0.0.0-...-d236baf Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the upscalemodel type in the database.
	Label = "upscale_model"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNameInWorker holds the string denoting the name_in_worker field in the database.
	FieldNameInWorker = "name_in_worker"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldIsHidden holds the string denoting the is_hidden field in the database.
	FieldIsHidden = "is_hidden"
	// FieldRunpodEndpoint holds the string denoting the runpod_endpoint field in the database.
	FieldRunpodEndpoint = "runpod_endpoint"
	// FieldRunpodActive holds the string denoting the runpod_active field in the database.
	FieldRunpodActive = "runpod_active"
	// 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"
	// EdgeUpscales holds the string denoting the upscales edge name in mutations.
	EdgeUpscales = "upscales"
	// Table holds the table name of the upscalemodel in the database.
	Table = "upscale_models"
	// UpscalesTable is the table that holds the upscales relation/edge.
	UpscalesTable = "upscales"
	// UpscalesInverseTable is the table name for the Upscale entity.
	// It exists in this package in order to avoid circular dependency with the "upscale" package.
	UpscalesInverseTable = "upscales"
	// UpscalesColumn is the table column denoting the upscales relation/edge.
	UpscalesColumn = "model_id"
)

Variables

View Source
var (
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// DefaultIsDefault holds the default value on creation for the "is_default" field.
	DefaultIsDefault bool
	// DefaultIsHidden holds the default value on creation for the "is_hidden" field.
	DefaultIsHidden bool
	// DefaultRunpodActive holds the default value on creation for the "runpod_active" field.
	DefaultRunpodActive bool
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for upscalemodel fields.

Functions

func And

func And(predicates ...predicate.UpscaleModel) predicate.UpscaleModel

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.UpscaleModel

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UpscaleModel

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UpscaleModel

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UpscaleModel

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UpscaleModel

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UpscaleModel

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UpscaleModel

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

func CreatedAtNotIn

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

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

func HasUpscales

func HasUpscales() predicate.UpscaleModel

HasUpscales applies the HasEdge predicate on the "upscales" edge.

func HasUpscalesWith

func HasUpscalesWith(preds ...predicate.Upscale) predicate.UpscaleModel

HasUpscalesWith applies the HasEdge predicate on the "upscales" 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 uuid.UUID) predicate.UpscaleModel

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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 uuid.UUID) predicate.UpscaleModel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.UpscaleModel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.UpscaleModel

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.UpscaleModel

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.UpscaleModel

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func IsDefault

func IsDefault(v bool) predicate.UpscaleModel

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.UpscaleModel

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.UpscaleModel

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsHidden

func IsHidden(v bool) predicate.UpscaleModel

IsHidden applies equality check predicate on the "is_hidden" field. It's identical to IsHiddenEQ.

func IsHiddenEQ

func IsHiddenEQ(v bool) predicate.UpscaleModel

IsHiddenEQ applies the EQ predicate on the "is_hidden" field.

func IsHiddenNEQ

func IsHiddenNEQ(v bool) predicate.UpscaleModel

IsHiddenNEQ applies the NEQ predicate on the "is_hidden" field.

func NameInWorker

func NameInWorker(v string) predicate.UpscaleModel

NameInWorker applies equality check predicate on the "name_in_worker" field. It's identical to NameInWorkerEQ.

func NameInWorkerContains

func NameInWorkerContains(v string) predicate.UpscaleModel

NameInWorkerContains applies the Contains predicate on the "name_in_worker" field.

func NameInWorkerContainsFold

func NameInWorkerContainsFold(v string) predicate.UpscaleModel

NameInWorkerContainsFold applies the ContainsFold predicate on the "name_in_worker" field.

func NameInWorkerEQ

func NameInWorkerEQ(v string) predicate.UpscaleModel

NameInWorkerEQ applies the EQ predicate on the "name_in_worker" field.

func NameInWorkerEqualFold

func NameInWorkerEqualFold(v string) predicate.UpscaleModel

NameInWorkerEqualFold applies the EqualFold predicate on the "name_in_worker" field.

func NameInWorkerGT

func NameInWorkerGT(v string) predicate.UpscaleModel

NameInWorkerGT applies the GT predicate on the "name_in_worker" field.

func NameInWorkerGTE

func NameInWorkerGTE(v string) predicate.UpscaleModel

NameInWorkerGTE applies the GTE predicate on the "name_in_worker" field.

func NameInWorkerHasPrefix

func NameInWorkerHasPrefix(v string) predicate.UpscaleModel

NameInWorkerHasPrefix applies the HasPrefix predicate on the "name_in_worker" field.

func NameInWorkerHasSuffix

func NameInWorkerHasSuffix(v string) predicate.UpscaleModel

NameInWorkerHasSuffix applies the HasSuffix predicate on the "name_in_worker" field.

func NameInWorkerIn

func NameInWorkerIn(vs ...string) predicate.UpscaleModel

NameInWorkerIn applies the In predicate on the "name_in_worker" field.

func NameInWorkerLT

func NameInWorkerLT(v string) predicate.UpscaleModel

NameInWorkerLT applies the LT predicate on the "name_in_worker" field.

func NameInWorkerLTE

func NameInWorkerLTE(v string) predicate.UpscaleModel

NameInWorkerLTE applies the LTE predicate on the "name_in_worker" field.

func NameInWorkerNEQ

func NameInWorkerNEQ(v string) predicate.UpscaleModel

NameInWorkerNEQ applies the NEQ predicate on the "name_in_worker" field.

func NameInWorkerNotIn

func NameInWorkerNotIn(vs ...string) predicate.UpscaleModel

NameInWorkerNotIn applies the NotIn predicate on the "name_in_worker" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UpscaleModel) predicate.UpscaleModel

Or groups predicates with the OR operator between them.

func RunpodActive

func RunpodActive(v bool) predicate.UpscaleModel

RunpodActive applies equality check predicate on the "runpod_active" field. It's identical to RunpodActiveEQ.

func RunpodActiveEQ

func RunpodActiveEQ(v bool) predicate.UpscaleModel

RunpodActiveEQ applies the EQ predicate on the "runpod_active" field.

func RunpodActiveNEQ

func RunpodActiveNEQ(v bool) predicate.UpscaleModel

RunpodActiveNEQ applies the NEQ predicate on the "runpod_active" field.

func RunpodEndpoint

func RunpodEndpoint(v string) predicate.UpscaleModel

RunpodEndpoint applies equality check predicate on the "runpod_endpoint" field. It's identical to RunpodEndpointEQ.

func RunpodEndpointContains

func RunpodEndpointContains(v string) predicate.UpscaleModel

RunpodEndpointContains applies the Contains predicate on the "runpod_endpoint" field.

func RunpodEndpointContainsFold

func RunpodEndpointContainsFold(v string) predicate.UpscaleModel

RunpodEndpointContainsFold applies the ContainsFold predicate on the "runpod_endpoint" field.

func RunpodEndpointEQ

func RunpodEndpointEQ(v string) predicate.UpscaleModel

RunpodEndpointEQ applies the EQ predicate on the "runpod_endpoint" field.

func RunpodEndpointEqualFold

func RunpodEndpointEqualFold(v string) predicate.UpscaleModel

RunpodEndpointEqualFold applies the EqualFold predicate on the "runpod_endpoint" field.

func RunpodEndpointGT

func RunpodEndpointGT(v string) predicate.UpscaleModel

RunpodEndpointGT applies the GT predicate on the "runpod_endpoint" field.

func RunpodEndpointGTE

func RunpodEndpointGTE(v string) predicate.UpscaleModel

RunpodEndpointGTE applies the GTE predicate on the "runpod_endpoint" field.

func RunpodEndpointHasPrefix

func RunpodEndpointHasPrefix(v string) predicate.UpscaleModel

RunpodEndpointHasPrefix applies the HasPrefix predicate on the "runpod_endpoint" field.

func RunpodEndpointHasSuffix

func RunpodEndpointHasSuffix(v string) predicate.UpscaleModel

RunpodEndpointHasSuffix applies the HasSuffix predicate on the "runpod_endpoint" field.

func RunpodEndpointIn

func RunpodEndpointIn(vs ...string) predicate.UpscaleModel

RunpodEndpointIn applies the In predicate on the "runpod_endpoint" field.

func RunpodEndpointIsNil

func RunpodEndpointIsNil() predicate.UpscaleModel

RunpodEndpointIsNil applies the IsNil predicate on the "runpod_endpoint" field.

func RunpodEndpointLT

func RunpodEndpointLT(v string) predicate.UpscaleModel

RunpodEndpointLT applies the LT predicate on the "runpod_endpoint" field.

func RunpodEndpointLTE

func RunpodEndpointLTE(v string) predicate.UpscaleModel

RunpodEndpointLTE applies the LTE predicate on the "runpod_endpoint" field.

func RunpodEndpointNEQ

func RunpodEndpointNEQ(v string) predicate.UpscaleModel

RunpodEndpointNEQ applies the NEQ predicate on the "runpod_endpoint" field.

func RunpodEndpointNotIn

func RunpodEndpointNotIn(vs ...string) predicate.UpscaleModel

RunpodEndpointNotIn applies the NotIn predicate on the "runpod_endpoint" field.

func RunpodEndpointNotNil

func RunpodEndpointNotNil() predicate.UpscaleModel

RunpodEndpointNotNil applies the NotNil predicate on the "runpod_endpoint" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UpscaleModel

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UpscaleModel

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UpscaleModel

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UpscaleModel

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UpscaleModel

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UpscaleModel

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UpscaleModel

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

func UpdatedAtNotIn

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

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 UpscaleModel 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 ByIsActive

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

ByIsActive orders the results by the is_active field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByIsHidden

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

ByIsHidden orders the results by the is_hidden field.

func ByNameInWorker

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

ByNameInWorker orders the results by the name_in_worker field.

func ByRunpodActive

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

ByRunpodActive orders the results by the runpod_active field.

func ByRunpodEndpoint

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

ByRunpodEndpoint orders the results by the runpod_endpoint field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpscales

func ByUpscales(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUpscales orders the results by upscales terms.

func ByUpscalesCount

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

ByUpscalesCount orders the results by upscales count.

Jump to

Keyboard shortcuts

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