Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Blobber) predicate.Blobber
- func Blob(v []byte) predicate.Blobber
- func BlobEQ(v []byte) predicate.Blobber
- func BlobGT(v []byte) predicate.Blobber
- func BlobGTE(v []byte) predicate.Blobber
- func BlobIn(vs ...[]byte) predicate.Blobber
- func BlobLT(v []byte) predicate.Blobber
- func BlobLTE(v []byte) predicate.Blobber
- func BlobNEQ(v []byte) predicate.Blobber
- func BlobNotIn(vs ...[]byte) predicate.Blobber
- func CreatedAt(v time.Time) predicate.Blobber
- func CreatedAtEQ(v time.Time) predicate.Blobber
- func CreatedAtGT(v time.Time) predicate.Blobber
- func CreatedAtGTE(v time.Time) predicate.Blobber
- func CreatedAtIn(vs ...time.Time) predicate.Blobber
- func CreatedAtLT(v time.Time) predicate.Blobber
- func CreatedAtLTE(v time.Time) predicate.Blobber
- func CreatedAtNEQ(v time.Time) predicate.Blobber
- func CreatedAtNotIn(vs ...time.Time) predicate.Blobber
- func DeletedAt(v time.Time) predicate.Blobber
- func DeletedAtEQ(v time.Time) predicate.Blobber
- func DeletedAtGT(v time.Time) predicate.Blobber
- func DeletedAtGTE(v time.Time) predicate.Blobber
- func DeletedAtIn(vs ...time.Time) predicate.Blobber
- func DeletedAtIsNil() predicate.Blobber
- func DeletedAtLT(v time.Time) predicate.Blobber
- func DeletedAtLTE(v time.Time) predicate.Blobber
- func DeletedAtNEQ(v time.Time) predicate.Blobber
- func DeletedAtNotIn(vs ...time.Time) predicate.Blobber
- func DeletedAtNotNil() predicate.Blobber
- func HasTaskArgs() predicate.Blobber
- func HasTaskArgsWith(preds ...predicate.Task) predicate.Blobber
- func HasTaskOutput() predicate.Blobber
- func HasTaskOutputWith(preds ...predicate.Task) predicate.Blobber
- func Hash(v []byte) predicate.Blobber
- func HashEQ(v []byte) predicate.Blobber
- func HashGT(v []byte) predicate.Blobber
- func HashGTE(v []byte) predicate.Blobber
- func HashIn(vs ...[]byte) predicate.Blobber
- func HashLT(v []byte) predicate.Blobber
- func HashLTE(v []byte) predicate.Blobber
- func HashNEQ(v []byte) predicate.Blobber
- func HashNotIn(vs ...[]byte) predicate.Blobber
- func ID(id int) predicate.Blobber
- func IDEQ(id int) predicate.Blobber
- func IDGT(id int) predicate.Blobber
- func IDGTE(id int) predicate.Blobber
- func IDIn(ids ...int) predicate.Blobber
- func IDLT(id int) predicate.Blobber
- func IDLTE(id int) predicate.Blobber
- func IDNEQ(id int) predicate.Blobber
- func IDNotIn(ids ...int) predicate.Blobber
- func Not(p predicate.Blobber) predicate.Blobber
- func Or(predicates ...predicate.Blobber) predicate.Blobber
- func Size(v int) predicate.Blobber
- func SizeEQ(v int) predicate.Blobber
- func SizeGT(v int) predicate.Blobber
- func SizeGTE(v int) predicate.Blobber
- func SizeIn(vs ...int) predicate.Blobber
- func SizeLT(v int) predicate.Blobber
- func SizeLTE(v int) predicate.Blobber
- func SizeNEQ(v int) predicate.Blobber
- func SizeNotIn(vs ...int) predicate.Blobber
- func UpdatedAt(v time.Time) predicate.Blobber
- func UpdatedAtEQ(v time.Time) predicate.Blobber
- func UpdatedAtGT(v time.Time) predicate.Blobber
- func UpdatedAtGTE(v time.Time) predicate.Blobber
- func UpdatedAtIn(vs ...time.Time) predicate.Blobber
- func UpdatedAtLT(v time.Time) predicate.Blobber
- func UpdatedAtLTE(v time.Time) predicate.Blobber
- func UpdatedAtNEQ(v time.Time) predicate.Blobber
- func UpdatedAtNotIn(vs ...time.Time) predicate.Blobber
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByTaskArgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaskArgsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTaskOutput(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaskOutputCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldHash, FieldBlob, FieldSize, }
Columns holds all SQL columns for blobber fields.
Functions ¶
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 ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasTaskArgs ¶
HasTaskArgs applies the HasEdge predicate on the "task_args" edge.
func HasTaskArgsWith ¶
HasTaskArgsWith applies the HasEdge predicate on the "task_args" edge with a given conditions (other predicates).
func HasTaskOutput ¶
HasTaskOutput applies the HasEdge predicate on the "task_output" edge.
func HasTaskOutputWith ¶
HasTaskOutputWith applies the HasEdge predicate on the "task_output" edge with a given conditions (other predicates).
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 ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.