uploadblock

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the uploadblock type in the database.
	Label = "upload_block"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUploadId holds the string denoting the uploadid field in the database.
	FieldUploadId = "uploadId"
	// FieldBlockHash holds the string denoting the blockhash field in the database.
	FieldBlockHash = "blockHash"
	// FieldCandidateId holds the string denoting the candidateid field in the database.
	FieldCandidateId = "candidateId"
	// FieldSizeBytes holds the string denoting the sizebytes field in the database.
	FieldSizeBytes = "sizeBytes"
	// EdgeUpload holds the string denoting the upload edge name in mutations.
	EdgeUpload = "upload"
	// Table holds the table name of the uploadblock in the database.
	Table = "upload_blocks"
	// UploadTable is the table that holds the upload relation/edge.
	UploadTable = "upload_blocks"
	// UploadInverseTable is the table name for the Upload entity.
	// It exists in this package in order to avoid circular dependency with the "upload" package.
	UploadInverseTable = "uploads"
	// UploadColumn is the table column denoting the upload relation/edge.
	UploadColumn = "uploadId"
)

Variables

Columns holds all SQL columns for uploadblock fields.

View Source
var (
	// SizeBytesValidator is a validator for the "sizeBytes" field. It is called by the builders before save.
	SizeBytesValidator func(int64) error
)

Functions

func And

func And(predicates ...predicate.UploadBlock) predicate.UploadBlock

And groups predicates with the AND operator between them.

func BlockHash

func BlockHash(v string) predicate.UploadBlock

BlockHash applies equality check predicate on the "blockHash" field. It's identical to BlockHashEQ.

func BlockHashContains

func BlockHashContains(v string) predicate.UploadBlock

BlockHashContains applies the Contains predicate on the "blockHash" field.

func BlockHashContainsFold

func BlockHashContainsFold(v string) predicate.UploadBlock

BlockHashContainsFold applies the ContainsFold predicate on the "blockHash" field.

func BlockHashEQ

func BlockHashEQ(v string) predicate.UploadBlock

BlockHashEQ applies the EQ predicate on the "blockHash" field.

func BlockHashEqualFold

func BlockHashEqualFold(v string) predicate.UploadBlock

BlockHashEqualFold applies the EqualFold predicate on the "blockHash" field.

func BlockHashGT

func BlockHashGT(v string) predicate.UploadBlock

BlockHashGT applies the GT predicate on the "blockHash" field.

func BlockHashGTE

func BlockHashGTE(v string) predicate.UploadBlock

BlockHashGTE applies the GTE predicate on the "blockHash" field.

func BlockHashHasPrefix

func BlockHashHasPrefix(v string) predicate.UploadBlock

BlockHashHasPrefix applies the HasPrefix predicate on the "blockHash" field.

func BlockHashHasSuffix

func BlockHashHasSuffix(v string) predicate.UploadBlock

BlockHashHasSuffix applies the HasSuffix predicate on the "blockHash" field.

func BlockHashIn

func BlockHashIn(vs ...string) predicate.UploadBlock

BlockHashIn applies the In predicate on the "blockHash" field.

func BlockHashLT

func BlockHashLT(v string) predicate.UploadBlock

BlockHashLT applies the LT predicate on the "blockHash" field.

func BlockHashLTE

func BlockHashLTE(v string) predicate.UploadBlock

BlockHashLTE applies the LTE predicate on the "blockHash" field.

func BlockHashNEQ

func BlockHashNEQ(v string) predicate.UploadBlock

BlockHashNEQ applies the NEQ predicate on the "blockHash" field.

func BlockHashNotIn

func BlockHashNotIn(vs ...string) predicate.UploadBlock

BlockHashNotIn applies the NotIn predicate on the "blockHash" field.

func CandidateId

func CandidateId(v string) predicate.UploadBlock

CandidateId applies equality check predicate on the "candidateId" field. It's identical to CandidateIdEQ.

func CandidateIdContains

func CandidateIdContains(v string) predicate.UploadBlock

CandidateIdContains applies the Contains predicate on the "candidateId" field.

func CandidateIdContainsFold

func CandidateIdContainsFold(v string) predicate.UploadBlock

CandidateIdContainsFold applies the ContainsFold predicate on the "candidateId" field.

func CandidateIdEQ

func CandidateIdEQ(v string) predicate.UploadBlock

CandidateIdEQ applies the EQ predicate on the "candidateId" field.

func CandidateIdEqualFold

func CandidateIdEqualFold(v string) predicate.UploadBlock

CandidateIdEqualFold applies the EqualFold predicate on the "candidateId" field.

func CandidateIdGT

func CandidateIdGT(v string) predicate.UploadBlock

CandidateIdGT applies the GT predicate on the "candidateId" field.

func CandidateIdGTE

func CandidateIdGTE(v string) predicate.UploadBlock

CandidateIdGTE applies the GTE predicate on the "candidateId" field.

func CandidateIdHasPrefix

func CandidateIdHasPrefix(v string) predicate.UploadBlock

CandidateIdHasPrefix applies the HasPrefix predicate on the "candidateId" field.

func CandidateIdHasSuffix

func CandidateIdHasSuffix(v string) predicate.UploadBlock

CandidateIdHasSuffix applies the HasSuffix predicate on the "candidateId" field.

func CandidateIdIn

func CandidateIdIn(vs ...string) predicate.UploadBlock

CandidateIdIn applies the In predicate on the "candidateId" field.

func CandidateIdLT

func CandidateIdLT(v string) predicate.UploadBlock

CandidateIdLT applies the LT predicate on the "candidateId" field.

func CandidateIdLTE

func CandidateIdLTE(v string) predicate.UploadBlock

CandidateIdLTE applies the LTE predicate on the "candidateId" field.

func CandidateIdNEQ

func CandidateIdNEQ(v string) predicate.UploadBlock

CandidateIdNEQ applies the NEQ predicate on the "candidateId" field.

func CandidateIdNotIn

func CandidateIdNotIn(vs ...string) predicate.UploadBlock

CandidateIdNotIn applies the NotIn predicate on the "candidateId" field.

func HasUpload

func HasUpload() predicate.UploadBlock

HasUpload applies the HasEdge predicate on the "upload" edge.

func HasUploadWith

func HasUploadWith(preds ...predicate.Upload) predicate.UploadBlock

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

func ID

func ID(id int) predicate.UploadBlock

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UploadBlock

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UploadBlock

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UploadBlock

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UploadBlock

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UploadBlock

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UploadBlock

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func SizeBytes

func SizeBytes(v int64) predicate.UploadBlock

SizeBytes applies equality check predicate on the "sizeBytes" field. It's identical to SizeBytesEQ.

func SizeBytesEQ

func SizeBytesEQ(v int64) predicate.UploadBlock

SizeBytesEQ applies the EQ predicate on the "sizeBytes" field.

func SizeBytesGT

func SizeBytesGT(v int64) predicate.UploadBlock

SizeBytesGT applies the GT predicate on the "sizeBytes" field.

func SizeBytesGTE

func SizeBytesGTE(v int64) predicate.UploadBlock

SizeBytesGTE applies the GTE predicate on the "sizeBytes" field.

func SizeBytesIn

func SizeBytesIn(vs ...int64) predicate.UploadBlock

SizeBytesIn applies the In predicate on the "sizeBytes" field.

func SizeBytesLT

func SizeBytesLT(v int64) predicate.UploadBlock

SizeBytesLT applies the LT predicate on the "sizeBytes" field.

func SizeBytesLTE

func SizeBytesLTE(v int64) predicate.UploadBlock

SizeBytesLTE applies the LTE predicate on the "sizeBytes" field.

func SizeBytesNEQ

func SizeBytesNEQ(v int64) predicate.UploadBlock

SizeBytesNEQ applies the NEQ predicate on the "sizeBytes" field.

func SizeBytesNotIn

func SizeBytesNotIn(vs ...int64) predicate.UploadBlock

SizeBytesNotIn applies the NotIn predicate on the "sizeBytes" field.

func UploadId

func UploadId(v int64) predicate.UploadBlock

UploadId applies equality check predicate on the "uploadId" field. It's identical to UploadIdEQ.

func UploadIdEQ

func UploadIdEQ(v int64) predicate.UploadBlock

UploadIdEQ applies the EQ predicate on the "uploadId" field.

func UploadIdIn

func UploadIdIn(vs ...int64) predicate.UploadBlock

UploadIdIn applies the In predicate on the "uploadId" field.

func UploadIdNEQ

func UploadIdNEQ(v int64) predicate.UploadBlock

UploadIdNEQ applies the NEQ predicate on the "uploadId" field.

func UploadIdNotIn

func UploadIdNotIn(vs ...int64) predicate.UploadBlock

UploadIdNotIn applies the NotIn predicate on the "uploadId" 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 UploadBlock queries.

func ByBlockHash

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

ByBlockHash orders the results by the blockHash field.

func ByCandidateId

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

ByCandidateId orders the results by the candidateId field.

func ByID

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

ByID orders the results by the id field.

func BySizeBytes

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

BySizeBytes orders the results by the sizeBytes field.

func ByUploadField

func ByUploadField(field string, opts ...sql.OrderTermOption) OrderOption

ByUploadField orders the results by upload field.

func ByUploadId

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

ByUploadId orders the results by the uploadId field.

Jump to

Keyboard shortcuts

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