Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chunk) predicate.Chunk
- func CreatedAt(v time.Time) predicate.Chunk
- func CreatedAtEQ(v time.Time) predicate.Chunk
- func CreatedAtGT(v time.Time) predicate.Chunk
- func CreatedAtGTE(v time.Time) predicate.Chunk
- func CreatedAtIn(vs ...time.Time) predicate.Chunk
- func CreatedAtLT(v time.Time) predicate.Chunk
- func CreatedAtLTE(v time.Time) predicate.Chunk
- func CreatedAtNEQ(v time.Time) predicate.Chunk
- func CreatedAtNotIn(vs ...time.Time) predicate.Chunk
- func HasWorker() predicate.Chunk
- func HasWorkerWith(preds ...predicate.Worker) predicate.Chunk
- func ID(id string) predicate.Chunk
- func IDContainsFold(id string) predicate.Chunk
- func IDEQ(id string) predicate.Chunk
- func IDEqualFold(id string) predicate.Chunk
- func IDGT(id string) predicate.Chunk
- func IDGTE(id string) predicate.Chunk
- func IDIn(ids ...string) predicate.Chunk
- func IDLT(id string) predicate.Chunk
- func IDLTE(id string) predicate.Chunk
- func IDNEQ(id string) predicate.Chunk
- func IDNotIn(ids ...string) predicate.Chunk
- func LeaseExpiresAt(v time.Time) predicate.Chunk
- func LeaseExpiresAtEQ(v time.Time) predicate.Chunk
- func LeaseExpiresAtGT(v time.Time) predicate.Chunk
- func LeaseExpiresAtGTE(v time.Time) predicate.Chunk
- func LeaseExpiresAtIn(vs ...time.Time) predicate.Chunk
- func LeaseExpiresAtIsNil() predicate.Chunk
- func LeaseExpiresAtLT(v time.Time) predicate.Chunk
- func LeaseExpiresAtLTE(v time.Time) predicate.Chunk
- func LeaseExpiresAtNEQ(v time.Time) predicate.Chunk
- func LeaseExpiresAtNotIn(vs ...time.Time) predicate.Chunk
- func LeaseExpiresAtNotNil() predicate.Chunk
- func Not(p predicate.Chunk) predicate.Chunk
- func Or(predicates ...predicate.Chunk) predicate.Chunk
- func Sha256Content(v string) predicate.Chunk
- func Sha256ContentContains(v string) predicate.Chunk
- func Sha256ContentContainsFold(v string) predicate.Chunk
- func Sha256ContentEQ(v string) predicate.Chunk
- func Sha256ContentEqualFold(v string) predicate.Chunk
- func Sha256ContentGT(v string) predicate.Chunk
- func Sha256ContentGTE(v string) predicate.Chunk
- func Sha256ContentHasPrefix(v string) predicate.Chunk
- func Sha256ContentHasSuffix(v string) predicate.Chunk
- func Sha256ContentIn(vs ...string) predicate.Chunk
- func Sha256ContentIsNil() predicate.Chunk
- func Sha256ContentLT(v string) predicate.Chunk
- func Sha256ContentLTE(v string) predicate.Chunk
- func Sha256ContentNEQ(v string) predicate.Chunk
- func Sha256ContentNotIn(vs ...string) predicate.Chunk
- func Sha256ContentNotNil() predicate.Chunk
- func Sha256Input(v string) predicate.Chunk
- func Sha256InputContains(v string) predicate.Chunk
- func Sha256InputContainsFold(v string) predicate.Chunk
- func Sha256InputEQ(v string) predicate.Chunk
- func Sha256InputEqualFold(v string) predicate.Chunk
- func Sha256InputGT(v string) predicate.Chunk
- func Sha256InputGTE(v string) predicate.Chunk
- func Sha256InputHasPrefix(v string) predicate.Chunk
- func Sha256InputHasSuffix(v string) predicate.Chunk
- func Sha256InputIn(vs ...string) predicate.Chunk
- func Sha256InputIsNil() predicate.Chunk
- func Sha256InputLT(v string) predicate.Chunk
- func Sha256InputLTE(v string) predicate.Chunk
- func Sha256InputNEQ(v string) predicate.Chunk
- func Sha256InputNotIn(vs ...string) predicate.Chunk
- func Sha256InputNotNil() predicate.Chunk
- func Sha256Output(v string) predicate.Chunk
- func Sha256OutputContains(v string) predicate.Chunk
- func Sha256OutputContainsFold(v string) predicate.Chunk
- func Sha256OutputEQ(v string) predicate.Chunk
- func Sha256OutputEqualFold(v string) predicate.Chunk
- func Sha256OutputGT(v string) predicate.Chunk
- func Sha256OutputGTE(v string) predicate.Chunk
- func Sha256OutputHasPrefix(v string) predicate.Chunk
- func Sha256OutputHasSuffix(v string) predicate.Chunk
- func Sha256OutputIn(vs ...string) predicate.Chunk
- func Sha256OutputIsNil() predicate.Chunk
- func Sha256OutputLT(v string) predicate.Chunk
- func Sha256OutputLTE(v string) predicate.Chunk
- func Sha256OutputNEQ(v string) predicate.Chunk
- func Sha256OutputNotIn(vs ...string) predicate.Chunk
- func Sha256OutputNotNil() predicate.Chunk
- func SizeContent(v int64) predicate.Chunk
- func SizeContentEQ(v int64) predicate.Chunk
- func SizeContentGT(v int64) predicate.Chunk
- func SizeContentGTE(v int64) predicate.Chunk
- func SizeContentIn(vs ...int64) predicate.Chunk
- func SizeContentIsNil() predicate.Chunk
- func SizeContentLT(v int64) predicate.Chunk
- func SizeContentLTE(v int64) predicate.Chunk
- func SizeContentNEQ(v int64) predicate.Chunk
- func SizeContentNotIn(vs ...int64) predicate.Chunk
- func SizeContentNotNil() predicate.Chunk
- func SizeInput(v int64) predicate.Chunk
- func SizeInputEQ(v int64) predicate.Chunk
- func SizeInputGT(v int64) predicate.Chunk
- func SizeInputGTE(v int64) predicate.Chunk
- func SizeInputIn(vs ...int64) predicate.Chunk
- func SizeInputIsNil() predicate.Chunk
- func SizeInputLT(v int64) predicate.Chunk
- func SizeInputLTE(v int64) predicate.Chunk
- func SizeInputNEQ(v int64) predicate.Chunk
- func SizeInputNotIn(vs ...int64) predicate.Chunk
- func SizeInputNotNil() predicate.Chunk
- func SizeOutput(v int64) predicate.Chunk
- func SizeOutputEQ(v int64) predicate.Chunk
- func SizeOutputGT(v int64) predicate.Chunk
- func SizeOutputGTE(v int64) predicate.Chunk
- func SizeOutputIn(vs ...int64) predicate.Chunk
- func SizeOutputIsNil() predicate.Chunk
- func SizeOutputLT(v int64) predicate.Chunk
- func SizeOutputLTE(v int64) predicate.Chunk
- func SizeOutputNEQ(v int64) predicate.Chunk
- func SizeOutputNotIn(vs ...int64) predicate.Chunk
- func SizeOutputNotNil() predicate.Chunk
- func Start(v time.Time) predicate.Chunk
- func StartEQ(v time.Time) predicate.Chunk
- func StartGT(v time.Time) predicate.Chunk
- func StartGTE(v time.Time) predicate.Chunk
- func StartIn(vs ...time.Time) predicate.Chunk
- func StartLT(v time.Time) predicate.Chunk
- func StartLTE(v time.Time) predicate.Chunk
- func StartNEQ(v time.Time) predicate.Chunk
- func StartNotIn(vs ...time.Time) predicate.Chunk
- func StateEQ(v State) predicate.Chunk
- func StateIn(vs ...State) predicate.Chunk
- func StateNEQ(v State) predicate.Chunk
- func StateNotIn(vs ...State) predicate.Chunk
- func StateValidator(s State) error
- func UpdatedAt(v time.Time) predicate.Chunk
- func UpdatedAtEQ(v time.Time) predicate.Chunk
- func UpdatedAtGT(v time.Time) predicate.Chunk
- func UpdatedAtGTE(v time.Time) predicate.Chunk
- func UpdatedAtIn(vs ...time.Time) predicate.Chunk
- func UpdatedAtLT(v time.Time) predicate.Chunk
- func UpdatedAtLTE(v time.Time) predicate.Chunk
- func UpdatedAtNEQ(v time.Time) predicate.Chunk
- func UpdatedAtNotIn(vs ...time.Time) predicate.Chunk
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLeaseExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func BySha256Content(opts ...sql.OrderTermOption) OrderOption
- func BySha256Input(opts ...sql.OrderTermOption) OrderOption
- func BySha256Output(opts ...sql.OrderTermOption) OrderOption
- func BySizeContent(opts ...sql.OrderTermOption) OrderOption
- func BySizeInput(opts ...sql.OrderTermOption) OrderOption
- func BySizeOutput(opts ...sql.OrderTermOption) OrderOption
- func ByStart(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkerField(field string, opts ...sql.OrderTermOption) OrderOption
- type State
Constants ¶
const ( // Label holds the string label denoting the chunk type in the database. Label = "chunk" // 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" // FieldStart holds the string denoting the start field in the database. FieldStart = "start" // FieldLeaseExpiresAt holds the string denoting the lease_expires_at field in the database. FieldLeaseExpiresAt = "lease_expires_at" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldSizeInput holds the string denoting the size_input field in the database. FieldSizeInput = "size_input" // FieldSizeContent holds the string denoting the size_content field in the database. FieldSizeContent = "size_content" // FieldSizeOutput holds the string denoting the size_output field in the database. FieldSizeOutput = "size_output" // FieldSha256Input holds the string denoting the sha256_input field in the database. FieldSha256Input = "sha256_input" // FieldSha256Content holds the string denoting the sha256_content field in the database. FieldSha256Content = "sha256_content" // FieldSha256Output holds the string denoting the sha256_output field in the database. FieldSha256Output = "sha256_output" // EdgeWorker holds the string denoting the worker edge name in mutations. EdgeWorker = "worker" // Table holds the table name of the chunk in the database. Table = "chunks" // WorkerTable is the table that holds the worker relation/edge. WorkerTable = "chunks" // WorkerInverseTable is the table name for the Worker entity. // It exists in this package in order to avoid circular dependency with the "worker" package. WorkerInverseTable = "workers" // WorkerColumn is the table column denoting the worker relation/edge. WorkerColumn = "worker_chunks" )
const DefaultState = StateNew
StateNew is the default value of the State enum.
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStart, FieldLeaseExpiresAt, FieldState, FieldSizeInput, FieldSizeContent, FieldSizeOutput, FieldSha256Input, FieldSha256Content, FieldSha256Output, }
Columns holds all SQL columns for chunk fields.
var ForeignKeys = []string{
"worker_chunks",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "chunks" table and are not defined as standalone fields in the schema.
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 HasWorkerWith ¶
HasWorkerWith applies the HasEdge predicate on the "worker" edge with a given conditions (other predicates).
func IDContainsFold ¶ added in v0.2.0
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶ added in v0.2.0
IDEqualFold applies the EqualFold predicate on the ID field.
func LeaseExpiresAt ¶
LeaseExpiresAt applies equality check predicate on the "lease_expires_at" field. It's identical to LeaseExpiresAtEQ.
func LeaseExpiresAtEQ ¶
LeaseExpiresAtEQ applies the EQ predicate on the "lease_expires_at" field.
func LeaseExpiresAtGT ¶
LeaseExpiresAtGT applies the GT predicate on the "lease_expires_at" field.
func LeaseExpiresAtGTE ¶
LeaseExpiresAtGTE applies the GTE predicate on the "lease_expires_at" field.
func LeaseExpiresAtIn ¶
LeaseExpiresAtIn applies the In predicate on the "lease_expires_at" field.
func LeaseExpiresAtIsNil ¶
LeaseExpiresAtIsNil applies the IsNil predicate on the "lease_expires_at" field.
func LeaseExpiresAtLT ¶
LeaseExpiresAtLT applies the LT predicate on the "lease_expires_at" field.
func LeaseExpiresAtLTE ¶
LeaseExpiresAtLTE applies the LTE predicate on the "lease_expires_at" field.
func LeaseExpiresAtNEQ ¶
LeaseExpiresAtNEQ applies the NEQ predicate on the "lease_expires_at" field.
func LeaseExpiresAtNotIn ¶
LeaseExpiresAtNotIn applies the NotIn predicate on the "lease_expires_at" field.
func LeaseExpiresAtNotNil ¶
LeaseExpiresAtNotNil applies the NotNil predicate on the "lease_expires_at" field.
func Sha256Content ¶
Sha256Content applies equality check predicate on the "sha256_content" field. It's identical to Sha256ContentEQ.
func Sha256ContentContains ¶
Sha256ContentContains applies the Contains predicate on the "sha256_content" field.
func Sha256ContentContainsFold ¶
Sha256ContentContainsFold applies the ContainsFold predicate on the "sha256_content" field.
func Sha256ContentEQ ¶
Sha256ContentEQ applies the EQ predicate on the "sha256_content" field.
func Sha256ContentEqualFold ¶
Sha256ContentEqualFold applies the EqualFold predicate on the "sha256_content" field.
func Sha256ContentGT ¶
Sha256ContentGT applies the GT predicate on the "sha256_content" field.
func Sha256ContentGTE ¶
Sha256ContentGTE applies the GTE predicate on the "sha256_content" field.
func Sha256ContentHasPrefix ¶
Sha256ContentHasPrefix applies the HasPrefix predicate on the "sha256_content" field.
func Sha256ContentHasSuffix ¶
Sha256ContentHasSuffix applies the HasSuffix predicate on the "sha256_content" field.
func Sha256ContentIn ¶
Sha256ContentIn applies the In predicate on the "sha256_content" field.
func Sha256ContentIsNil ¶
Sha256ContentIsNil applies the IsNil predicate on the "sha256_content" field.
func Sha256ContentLT ¶
Sha256ContentLT applies the LT predicate on the "sha256_content" field.
func Sha256ContentLTE ¶
Sha256ContentLTE applies the LTE predicate on the "sha256_content" field.
func Sha256ContentNEQ ¶
Sha256ContentNEQ applies the NEQ predicate on the "sha256_content" field.
func Sha256ContentNotIn ¶
Sha256ContentNotIn applies the NotIn predicate on the "sha256_content" field.
func Sha256ContentNotNil ¶
Sha256ContentNotNil applies the NotNil predicate on the "sha256_content" field.
func Sha256Input ¶
Sha256Input applies equality check predicate on the "sha256_input" field. It's identical to Sha256InputEQ.
func Sha256InputContains ¶
Sha256InputContains applies the Contains predicate on the "sha256_input" field.
func Sha256InputContainsFold ¶
Sha256InputContainsFold applies the ContainsFold predicate on the "sha256_input" field.
func Sha256InputEQ ¶
Sha256InputEQ applies the EQ predicate on the "sha256_input" field.
func Sha256InputEqualFold ¶
Sha256InputEqualFold applies the EqualFold predicate on the "sha256_input" field.
func Sha256InputGT ¶
Sha256InputGT applies the GT predicate on the "sha256_input" field.
func Sha256InputGTE ¶
Sha256InputGTE applies the GTE predicate on the "sha256_input" field.
func Sha256InputHasPrefix ¶
Sha256InputHasPrefix applies the HasPrefix predicate on the "sha256_input" field.
func Sha256InputHasSuffix ¶
Sha256InputHasSuffix applies the HasSuffix predicate on the "sha256_input" field.
func Sha256InputIn ¶
Sha256InputIn applies the In predicate on the "sha256_input" field.
func Sha256InputIsNil ¶
Sha256InputIsNil applies the IsNil predicate on the "sha256_input" field.
func Sha256InputLT ¶
Sha256InputLT applies the LT predicate on the "sha256_input" field.
func Sha256InputLTE ¶
Sha256InputLTE applies the LTE predicate on the "sha256_input" field.
func Sha256InputNEQ ¶
Sha256InputNEQ applies the NEQ predicate on the "sha256_input" field.
func Sha256InputNotIn ¶
Sha256InputNotIn applies the NotIn predicate on the "sha256_input" field.
func Sha256InputNotNil ¶
Sha256InputNotNil applies the NotNil predicate on the "sha256_input" field.
func Sha256Output ¶
Sha256Output applies equality check predicate on the "sha256_output" field. It's identical to Sha256OutputEQ.
func Sha256OutputContains ¶
Sha256OutputContains applies the Contains predicate on the "sha256_output" field.
func Sha256OutputContainsFold ¶
Sha256OutputContainsFold applies the ContainsFold predicate on the "sha256_output" field.
func Sha256OutputEQ ¶
Sha256OutputEQ applies the EQ predicate on the "sha256_output" field.
func Sha256OutputEqualFold ¶
Sha256OutputEqualFold applies the EqualFold predicate on the "sha256_output" field.
func Sha256OutputGT ¶
Sha256OutputGT applies the GT predicate on the "sha256_output" field.
func Sha256OutputGTE ¶
Sha256OutputGTE applies the GTE predicate on the "sha256_output" field.
func Sha256OutputHasPrefix ¶
Sha256OutputHasPrefix applies the HasPrefix predicate on the "sha256_output" field.
func Sha256OutputHasSuffix ¶
Sha256OutputHasSuffix applies the HasSuffix predicate on the "sha256_output" field.
func Sha256OutputIn ¶
Sha256OutputIn applies the In predicate on the "sha256_output" field.
func Sha256OutputIsNil ¶
Sha256OutputIsNil applies the IsNil predicate on the "sha256_output" field.
func Sha256OutputLT ¶
Sha256OutputLT applies the LT predicate on the "sha256_output" field.
func Sha256OutputLTE ¶
Sha256OutputLTE applies the LTE predicate on the "sha256_output" field.
func Sha256OutputNEQ ¶
Sha256OutputNEQ applies the NEQ predicate on the "sha256_output" field.
func Sha256OutputNotIn ¶
Sha256OutputNotIn applies the NotIn predicate on the "sha256_output" field.
func Sha256OutputNotNil ¶
Sha256OutputNotNil applies the NotNil predicate on the "sha256_output" field.
func SizeContent ¶
SizeContent applies equality check predicate on the "size_content" field. It's identical to SizeContentEQ.
func SizeContentEQ ¶
SizeContentEQ applies the EQ predicate on the "size_content" field.
func SizeContentGT ¶
SizeContentGT applies the GT predicate on the "size_content" field.
func SizeContentGTE ¶
SizeContentGTE applies the GTE predicate on the "size_content" field.
func SizeContentIn ¶
SizeContentIn applies the In predicate on the "size_content" field.
func SizeContentIsNil ¶
SizeContentIsNil applies the IsNil predicate on the "size_content" field.
func SizeContentLT ¶
SizeContentLT applies the LT predicate on the "size_content" field.
func SizeContentLTE ¶
SizeContentLTE applies the LTE predicate on the "size_content" field.
func SizeContentNEQ ¶
SizeContentNEQ applies the NEQ predicate on the "size_content" field.
func SizeContentNotIn ¶
SizeContentNotIn applies the NotIn predicate on the "size_content" field.
func SizeContentNotNil ¶
SizeContentNotNil applies the NotNil predicate on the "size_content" field.
func SizeInput ¶
SizeInput applies equality check predicate on the "size_input" field. It's identical to SizeInputEQ.
func SizeInputEQ ¶
SizeInputEQ applies the EQ predicate on the "size_input" field.
func SizeInputGT ¶
SizeInputGT applies the GT predicate on the "size_input" field.
func SizeInputGTE ¶
SizeInputGTE applies the GTE predicate on the "size_input" field.
func SizeInputIn ¶
SizeInputIn applies the In predicate on the "size_input" field.
func SizeInputIsNil ¶
SizeInputIsNil applies the IsNil predicate on the "size_input" field.
func SizeInputLT ¶
SizeInputLT applies the LT predicate on the "size_input" field.
func SizeInputLTE ¶
SizeInputLTE applies the LTE predicate on the "size_input" field.
func SizeInputNEQ ¶
SizeInputNEQ applies the NEQ predicate on the "size_input" field.
func SizeInputNotIn ¶
SizeInputNotIn applies the NotIn predicate on the "size_input" field.
func SizeInputNotNil ¶
SizeInputNotNil applies the NotNil predicate on the "size_input" field.
func SizeOutput ¶
SizeOutput applies equality check predicate on the "size_output" field. It's identical to SizeOutputEQ.
func SizeOutputEQ ¶
SizeOutputEQ applies the EQ predicate on the "size_output" field.
func SizeOutputGT ¶
SizeOutputGT applies the GT predicate on the "size_output" field.
func SizeOutputGTE ¶
SizeOutputGTE applies the GTE predicate on the "size_output" field.
func SizeOutputIn ¶
SizeOutputIn applies the In predicate on the "size_output" field.
func SizeOutputIsNil ¶
SizeOutputIsNil applies the IsNil predicate on the "size_output" field.
func SizeOutputLT ¶
SizeOutputLT applies the LT predicate on the "size_output" field.
func SizeOutputLTE ¶
SizeOutputLTE applies the LTE predicate on the "size_output" field.
func SizeOutputNEQ ¶
SizeOutputNEQ applies the NEQ predicate on the "size_output" field.
func SizeOutputNotIn ¶
SizeOutputNotIn applies the NotIn predicate on the "size_output" field.
func SizeOutputNotNil ¶
SizeOutputNotNil applies the NotNil predicate on the "size_output" field.
func Start ¶
Start applies equality check predicate on the "start" field. It's identical to StartEQ.
func StartNotIn ¶
StartNotIn applies the NotIn predicate on the "start" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
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 Chunk queries.
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 ByLeaseExpiresAt ¶ added in v0.2.0
func ByLeaseExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByLeaseExpiresAt orders the results by the lease_expires_at field.
func BySha256Content ¶ added in v0.2.0
func BySha256Content(opts ...sql.OrderTermOption) OrderOption
BySha256Content orders the results by the sha256_content field.
func BySha256Input ¶ added in v0.2.0
func BySha256Input(opts ...sql.OrderTermOption) OrderOption
BySha256Input orders the results by the sha256_input field.
func BySha256Output ¶ added in v0.2.0
func BySha256Output(opts ...sql.OrderTermOption) OrderOption
BySha256Output orders the results by the sha256_output field.
func BySizeContent ¶ added in v0.2.0
func BySizeContent(opts ...sql.OrderTermOption) OrderOption
BySizeContent orders the results by the size_content field.
func BySizeInput ¶ added in v0.2.0
func BySizeInput(opts ...sql.OrderTermOption) OrderOption
BySizeInput orders the results by the size_input field.
func BySizeOutput ¶ added in v0.2.0
func BySizeOutput(opts ...sql.OrderTermOption) OrderOption
BySizeOutput orders the results by the size_output field.
func ByStart ¶ added in v0.2.0
func ByStart(opts ...sql.OrderTermOption) OrderOption
ByStart orders the results by the start field.
func ByState ¶ added in v0.2.0
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByUpdatedAt ¶ added in v0.2.0
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkerField ¶ added in v0.2.0
func ByWorkerField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkerField orders the results by worker field.