blobber

package
v0.0.0-...-2b4f063 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the blobber type in the database.
	Label = "blobber"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldBlob holds the string denoting the blob field in the database.
	FieldBlob = "blob"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// EdgeTaskArgs holds the string denoting the task_args edge name in mutations.
	EdgeTaskArgs = "task_args"
	// EdgeTaskOutput holds the string denoting the task_output edge name in mutations.
	EdgeTaskOutput = "task_output"
	// Table holds the table name of the blobber in the database.
	Table = "blobber"
	// TaskArgsTable is the table that holds the task_args relation/edge.
	TaskArgsTable = "task"
	// TaskArgsInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskArgsInverseTable = "task"
	// TaskArgsColumn is the table column denoting the task_args relation/edge.
	TaskArgsColumn = "args"
	// TaskOutputTable is the table that holds the task_output relation/edge.
	TaskOutputTable = "task"
	// TaskOutputInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskOutputInverseTable = "task"
	// TaskOutputColumn is the table column denoting the task_output relation/edge.
	TaskOutputColumn = "output"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
)

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/c2micro/c2m/internal/ent/runtime"

Columns holds all SQL columns for blobber fields.

Functions

func And

func And(predicates ...predicate.Blobber) predicate.Blobber

And groups predicates with the AND operator between them.

func Blob

func Blob(v []byte) predicate.Blobber

Blob applies equality check predicate on the "blob" field. It's identical to BlobEQ.

func BlobEQ

func BlobEQ(v []byte) predicate.Blobber

BlobEQ applies the EQ predicate on the "blob" field.

func BlobGT

func BlobGT(v []byte) predicate.Blobber

BlobGT applies the GT predicate on the "blob" field.

func BlobGTE

func BlobGTE(v []byte) predicate.Blobber

BlobGTE applies the GTE predicate on the "blob" field.

func BlobIn

func BlobIn(vs ...[]byte) predicate.Blobber

BlobIn applies the In predicate on the "blob" field.

func BlobLT

func BlobLT(v []byte) predicate.Blobber

BlobLT applies the LT predicate on the "blob" field.

func BlobLTE

func BlobLTE(v []byte) predicate.Blobber

BlobLTE applies the LTE predicate on the "blob" field.

func BlobNEQ

func BlobNEQ(v []byte) predicate.Blobber

BlobNEQ applies the NEQ predicate on the "blob" field.

func BlobNotIn

func BlobNotIn(vs ...[]byte) predicate.Blobber

BlobNotIn applies the NotIn predicate on the "blob" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Blobber

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Blobber

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Blobber

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Blobber

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Blobber

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Blobber

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Blobber

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Blobber

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Blobber

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Blobber

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Blobber

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Blobber

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Blobber

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Blobber

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Blobber

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Blobber

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Blobber

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Blobber

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasTaskArgs

func HasTaskArgs() predicate.Blobber

HasTaskArgs applies the HasEdge predicate on the "task_args" edge.

func HasTaskArgsWith

func HasTaskArgsWith(preds ...predicate.Task) predicate.Blobber

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

func HasTaskOutput

func HasTaskOutput() predicate.Blobber

HasTaskOutput applies the HasEdge predicate on the "task_output" edge.

func HasTaskOutputWith

func HasTaskOutputWith(preds ...predicate.Task) predicate.Blobber

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

func Hash

func Hash(v []byte) predicate.Blobber

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashEQ

func HashEQ(v []byte) predicate.Blobber

HashEQ applies the EQ predicate on the "hash" field.

func HashGT

func HashGT(v []byte) predicate.Blobber

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v []byte) predicate.Blobber

HashGTE applies the GTE predicate on the "hash" field.

func HashIn

func HashIn(vs ...[]byte) predicate.Blobber

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v []byte) predicate.Blobber

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v []byte) predicate.Blobber

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v []byte) predicate.Blobber

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...[]byte) predicate.Blobber

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int) predicate.Blobber

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Blobber

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Blobber

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Blobber

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Blobber

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Blobber

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Blobber

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Blobber

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Blobber

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

Or groups predicates with the OR operator between them.

func Size

func Size(v int) predicate.Blobber

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v int) predicate.Blobber

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v int) predicate.Blobber

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v int) predicate.Blobber

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...int) predicate.Blobber

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v int) predicate.Blobber

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v int) predicate.Blobber

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v int) predicate.Blobber

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...int) predicate.Blobber

SizeNotIn applies the NotIn predicate on the "size" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Blobber

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Blobber

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Blobber

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Blobber

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Blobber

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Blobber

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Blobber

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

func UpdatedAtNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByID

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

ByID orders the results by the id field.

func BySize

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

BySize orders the results by the size field.

func ByTaskArgs

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

ByTaskArgs orders the results by task_args terms.

func ByTaskArgsCount

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

ByTaskArgsCount orders the results by task_args count.

func ByTaskOutput

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

ByTaskOutput orders the results by task_output terms.

func ByTaskOutputCount

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

ByTaskOutputCount orders the results by task_output count.

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