Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Worker) predicate.Worker
- func CreatedAt(v time.Time) predicate.Worker
- func CreatedAtEQ(v time.Time) predicate.Worker
- func CreatedAtGT(v time.Time) predicate.Worker
- func CreatedAtGTE(v time.Time) predicate.Worker
- func CreatedAtIn(vs ...time.Time) predicate.Worker
- func CreatedAtLT(v time.Time) predicate.Worker
- func CreatedAtLTE(v time.Time) predicate.Worker
- func CreatedAtNEQ(v time.Time) predicate.Worker
- func CreatedAtNotIn(vs ...time.Time) predicate.Worker
- func HasChunks() predicate.Worker
- func HasChunksWith(preds ...predicate.Chunk) predicate.Worker
- func ID(id uuid.UUID) predicate.Worker
- func IDEQ(id uuid.UUID) predicate.Worker
- func IDGT(id uuid.UUID) predicate.Worker
- func IDGTE(id uuid.UUID) predicate.Worker
- func IDIn(ids ...uuid.UUID) predicate.Worker
- func IDLT(id uuid.UUID) predicate.Worker
- func IDLTE(id uuid.UUID) predicate.Worker
- func IDNEQ(id uuid.UUID) predicate.Worker
- func IDNotIn(ids ...uuid.UUID) predicate.Worker
- func Name(v string) predicate.Worker
- func NameContains(v string) predicate.Worker
- func NameContainsFold(v string) predicate.Worker
- func NameEQ(v string) predicate.Worker
- func NameEqualFold(v string) predicate.Worker
- func NameGT(v string) predicate.Worker
- func NameGTE(v string) predicate.Worker
- func NameHasPrefix(v string) predicate.Worker
- func NameHasSuffix(v string) predicate.Worker
- func NameIn(vs ...string) predicate.Worker
- func NameLT(v string) predicate.Worker
- func NameLTE(v string) predicate.Worker
- func NameNEQ(v string) predicate.Worker
- func NameNotIn(vs ...string) predicate.Worker
- func Not(p predicate.Worker) predicate.Worker
- func Or(predicates ...predicate.Worker) predicate.Worker
- func Token(v string) predicate.Worker
- func TokenContains(v string) predicate.Worker
- func TokenContainsFold(v string) predicate.Worker
- func TokenEQ(v string) predicate.Worker
- func TokenEqualFold(v string) predicate.Worker
- func TokenGT(v string) predicate.Worker
- func TokenGTE(v string) predicate.Worker
- func TokenHasPrefix(v string) predicate.Worker
- func TokenHasSuffix(v string) predicate.Worker
- func TokenIn(vs ...string) predicate.Worker
- func TokenLT(v string) predicate.Worker
- func TokenLTE(v string) predicate.Worker
- func TokenNEQ(v string) predicate.Worker
- func TokenNotIn(vs ...string) predicate.Worker
- func UpdatedAt(v time.Time) predicate.Worker
- func UpdatedAtEQ(v time.Time) predicate.Worker
- func UpdatedAtGT(v time.Time) predicate.Worker
- func UpdatedAtGTE(v time.Time) predicate.Worker
- func UpdatedAtIn(vs ...time.Time) predicate.Worker
- func UpdatedAtLT(v time.Time) predicate.Worker
- func UpdatedAtLTE(v time.Time) predicate.Worker
- func UpdatedAtNEQ(v time.Time) predicate.Worker
- func UpdatedAtNotIn(vs ...time.Time) predicate.Worker
- func ValidColumn(column string) bool
- type OrderOption
- func ByChunks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChunksCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the worker type in the database. Label = "worker" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // EdgeChunks holds the string denoting the chunks edge name in mutations. EdgeChunks = "chunks" // Table holds the table name of the worker in the database. Table = "workers" // ChunksTable is the table that holds the chunks relation/edge. ChunksTable = "chunks" // ChunksInverseTable is the table name for the Chunk entity. // It exists in this package in order to avoid circular dependency with the "chunk" package. ChunksInverseTable = "chunks" // ChunksColumn is the table column denoting the chunks relation/edge. ChunksColumn = "worker_chunks" )
Variables ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldToken, }
Columns holds all SQL columns for worker 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 HasChunksWith ¶
HasChunksWith applies the HasEdge predicate on the "chunks" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" 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 ¶
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 ¶ added in v0.2.0
OrderOption defines the ordering options for the Worker queries.
func ByChunks ¶ added in v0.2.0
func ByChunks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChunks orders the results by chunks terms.
func ByChunksCount ¶ added in v0.2.0
func ByChunksCount(opts ...sql.OrderTermOption) OrderOption
ByChunksCount orders the results by chunks count.
func ByCreatedAt ¶ added in v0.2.0
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶ added in v0.2.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶ added in v0.2.0
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByToken ¶ added in v0.2.0
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.
func ByUpdatedAt ¶ added in v0.2.0
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.