Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NarFile) predicate.NarFile
- func ChunkingStartedAt(v time.Time) predicate.NarFile
- func ChunkingStartedAtEQ(v time.Time) predicate.NarFile
- func ChunkingStartedAtGT(v time.Time) predicate.NarFile
- func ChunkingStartedAtGTE(v time.Time) predicate.NarFile
- func ChunkingStartedAtIn(vs ...time.Time) predicate.NarFile
- func ChunkingStartedAtIsNil() predicate.NarFile
- func ChunkingStartedAtLT(v time.Time) predicate.NarFile
- func ChunkingStartedAtLTE(v time.Time) predicate.NarFile
- func ChunkingStartedAtNEQ(v time.Time) predicate.NarFile
- func ChunkingStartedAtNotIn(vs ...time.Time) predicate.NarFile
- func ChunkingStartedAtNotNil() predicate.NarFile
- func Compression(v string) predicate.NarFile
- func CompressionContains(v string) predicate.NarFile
- func CompressionContainsFold(v string) predicate.NarFile
- func CompressionEQ(v string) predicate.NarFile
- func CompressionEqualFold(v string) predicate.NarFile
- func CompressionGT(v string) predicate.NarFile
- func CompressionGTE(v string) predicate.NarFile
- func CompressionHasPrefix(v string) predicate.NarFile
- func CompressionHasSuffix(v string) predicate.NarFile
- func CompressionIn(vs ...string) predicate.NarFile
- func CompressionLT(v string) predicate.NarFile
- func CompressionLTE(v string) predicate.NarFile
- func CompressionNEQ(v string) predicate.NarFile
- func CompressionNotIn(vs ...string) predicate.NarFile
- func CreatedAt(v time.Time) predicate.NarFile
- func CreatedAtEQ(v time.Time) predicate.NarFile
- func CreatedAtGT(v time.Time) predicate.NarFile
- func CreatedAtGTE(v time.Time) predicate.NarFile
- func CreatedAtIn(vs ...time.Time) predicate.NarFile
- func CreatedAtLT(v time.Time) predicate.NarFile
- func CreatedAtLTE(v time.Time) predicate.NarFile
- func CreatedAtNEQ(v time.Time) predicate.NarFile
- func CreatedAtNotIn(vs ...time.Time) predicate.NarFile
- func FileSize(v uint64) predicate.NarFile
- func FileSizeEQ(v uint64) predicate.NarFile
- func FileSizeGT(v uint64) predicate.NarFile
- func FileSizeGTE(v uint64) predicate.NarFile
- func FileSizeIn(vs ...uint64) predicate.NarFile
- func FileSizeLT(v uint64) predicate.NarFile
- func FileSizeLTE(v uint64) predicate.NarFile
- func FileSizeNEQ(v uint64) predicate.NarFile
- func FileSizeNotIn(vs ...uint64) predicate.NarFile
- func HasChunkLinks() predicate.NarFile
- func HasChunkLinksWith(preds ...predicate.NarFileChunk) predicate.NarFile
- func HasNarInfoNarFiles() predicate.NarFile
- func HasNarInfoNarFilesWith(preds ...predicate.NarInfoNarFile) predicate.NarFile
- func Hash(v string) predicate.NarFile
- func HashContains(v string) predicate.NarFile
- func HashContainsFold(v string) predicate.NarFile
- func HashEQ(v string) predicate.NarFile
- func HashEqualFold(v string) predicate.NarFile
- func HashGT(v string) predicate.NarFile
- func HashGTE(v string) predicate.NarFile
- func HashHasPrefix(v string) predicate.NarFile
- func HashHasSuffix(v string) predicate.NarFile
- func HashIn(vs ...string) predicate.NarFile
- func HashLT(v string) predicate.NarFile
- func HashLTE(v string) predicate.NarFile
- func HashNEQ(v string) predicate.NarFile
- func HashNotIn(vs ...string) predicate.NarFile
- func ID(id int) predicate.NarFile
- func IDEQ(id int) predicate.NarFile
- func IDGT(id int) predicate.NarFile
- func IDGTE(id int) predicate.NarFile
- func IDIn(ids ...int) predicate.NarFile
- func IDLT(id int) predicate.NarFile
- func IDLTE(id int) predicate.NarFile
- func IDNEQ(id int) predicate.NarFile
- func IDNotIn(ids ...int) predicate.NarFile
- func LastAccessedAt(v time.Time) predicate.NarFile
- func LastAccessedAtEQ(v time.Time) predicate.NarFile
- func LastAccessedAtGT(v time.Time) predicate.NarFile
- func LastAccessedAtGTE(v time.Time) predicate.NarFile
- func LastAccessedAtIn(vs ...time.Time) predicate.NarFile
- func LastAccessedAtIsNil() predicate.NarFile
- func LastAccessedAtLT(v time.Time) predicate.NarFile
- func LastAccessedAtLTE(v time.Time) predicate.NarFile
- func LastAccessedAtNEQ(v time.Time) predicate.NarFile
- func LastAccessedAtNotIn(vs ...time.Time) predicate.NarFile
- func LastAccessedAtNotNil() predicate.NarFile
- func Not(p predicate.NarFile) predicate.NarFile
- func Or(predicates ...predicate.NarFile) predicate.NarFile
- func Query(v string) predicate.NarFile
- func QueryContains(v string) predicate.NarFile
- func QueryContainsFold(v string) predicate.NarFile
- func QueryEQ(v string) predicate.NarFile
- func QueryEqualFold(v string) predicate.NarFile
- func QueryGT(v string) predicate.NarFile
- func QueryGTE(v string) predicate.NarFile
- func QueryHasPrefix(v string) predicate.NarFile
- func QueryHasSuffix(v string) predicate.NarFile
- func QueryIn(vs ...string) predicate.NarFile
- func QueryLT(v string) predicate.NarFile
- func QueryLTE(v string) predicate.NarFile
- func QueryNEQ(v string) predicate.NarFile
- func QueryNotIn(vs ...string) predicate.NarFile
- func TotalChunks(v int64) predicate.NarFile
- func TotalChunksEQ(v int64) predicate.NarFile
- func TotalChunksGT(v int64) predicate.NarFile
- func TotalChunksGTE(v int64) predicate.NarFile
- func TotalChunksIn(vs ...int64) predicate.NarFile
- func TotalChunksLT(v int64) predicate.NarFile
- func TotalChunksLTE(v int64) predicate.NarFile
- func TotalChunksNEQ(v int64) predicate.NarFile
- func TotalChunksNotIn(vs ...int64) predicate.NarFile
- func UpdatedAt(v time.Time) predicate.NarFile
- func UpdatedAtEQ(v time.Time) predicate.NarFile
- func UpdatedAtGT(v time.Time) predicate.NarFile
- func UpdatedAtGTE(v time.Time) predicate.NarFile
- func UpdatedAtIn(vs ...time.Time) predicate.NarFile
- func UpdatedAtIsNil() predicate.NarFile
- func UpdatedAtLT(v time.Time) predicate.NarFile
- func UpdatedAtLTE(v time.Time) predicate.NarFile
- func UpdatedAtNEQ(v time.Time) predicate.NarFile
- func UpdatedAtNotIn(vs ...time.Time) predicate.NarFile
- func UpdatedAtNotNil() predicate.NarFile
- func ValidColumn(column string) bool
- func VerifiedAt(v time.Time) predicate.NarFile
- func VerifiedAtEQ(v time.Time) predicate.NarFile
- func VerifiedAtGT(v time.Time) predicate.NarFile
- func VerifiedAtGTE(v time.Time) predicate.NarFile
- func VerifiedAtIn(vs ...time.Time) predicate.NarFile
- func VerifiedAtIsNil() predicate.NarFile
- func VerifiedAtLT(v time.Time) predicate.NarFile
- func VerifiedAtLTE(v time.Time) predicate.NarFile
- func VerifiedAtNEQ(v time.Time) predicate.NarFile
- func VerifiedAtNotIn(vs ...time.Time) predicate.NarFile
- func VerifiedAtNotNil() predicate.NarFile
- type OrderOption
- func ByChunkLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChunkLinksCount(opts ...sql.OrderTermOption) OrderOption
- func ByChunkingStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCompression(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFileSize(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastAccessedAt(opts ...sql.OrderTermOption) OrderOption
- func ByNarInfoNarFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNarInfoNarFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByQuery(opts ...sql.OrderTermOption) OrderOption
- func ByTotalChunks(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVerifiedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the narfile type in the database. Label = "nar_file" // 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" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldCompression holds the string denoting the compression field in the database. FieldCompression = "compression" // FieldFileSize holds the string denoting the file_size field in the database. FieldFileSize = "file_size" // FieldQuery holds the string denoting the query field in the database. FieldQuery = "query" // FieldTotalChunks holds the string denoting the total_chunks field in the database. FieldTotalChunks = "total_chunks" // FieldChunkingStartedAt holds the string denoting the chunking_started_at field in the database. FieldChunkingStartedAt = "chunking_started_at" // FieldVerifiedAt holds the string denoting the verified_at field in the database. FieldVerifiedAt = "verified_at" // FieldLastAccessedAt holds the string denoting the last_accessed_at field in the database. FieldLastAccessedAt = "last_accessed_at" // EdgeNarInfoNarFiles holds the string denoting the nar_info_nar_files edge name in mutations. EdgeNarInfoNarFiles = "nar_info_nar_files" // EdgeChunkLinks holds the string denoting the chunk_links edge name in mutations. EdgeChunkLinks = "chunk_links" // Table holds the table name of the narfile in the database. Table = "nar_files" // NarInfoNarFilesTable is the table that holds the nar_info_nar_files relation/edge. NarInfoNarFilesTable = "narinfo_nar_files" // NarInfoNarFilesInverseTable is the table name for the NarInfoNarFile entity. // It exists in this package in order to avoid circular dependency with the "narinfonarfile" package. NarInfoNarFilesInverseTable = "narinfo_nar_files" // NarInfoNarFilesColumn is the table column denoting the nar_info_nar_files relation/edge. NarInfoNarFilesColumn = "nar_file_id" // ChunkLinksTable is the table that holds the chunk_links relation/edge. ChunkLinksTable = "nar_file_chunks" // ChunkLinksInverseTable is the table name for the NarFileChunk entity. // It exists in this package in order to avoid circular dependency with the "narfilechunk" package. ChunkLinksInverseTable = "nar_file_chunks" // ChunkLinksColumn is the table column denoting the chunk_links relation/edge. ChunkLinksColumn = "nar_file_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error // DefaultCompression holds the default value on creation for the "compression" field. DefaultCompression string // DefaultQuery holds the default value on creation for the "query" field. DefaultQuery string // DefaultTotalChunks holds the default value on creation for the "total_chunks" field. DefaultTotalChunks int64 // DefaultLastAccessedAt holds the default value on creation for the "last_accessed_at" field. DefaultLastAccessedAt func() time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldHash, FieldCompression, FieldFileSize, FieldQuery, FieldTotalChunks, FieldChunkingStartedAt, FieldVerifiedAt, FieldLastAccessedAt, }
Columns holds all SQL columns for narfile fields.
Functions ¶
func ChunkingStartedAt ¶
ChunkingStartedAt applies equality check predicate on the "chunking_started_at" field. It's identical to ChunkingStartedAtEQ.
func ChunkingStartedAtEQ ¶
ChunkingStartedAtEQ applies the EQ predicate on the "chunking_started_at" field.
func ChunkingStartedAtGT ¶
ChunkingStartedAtGT applies the GT predicate on the "chunking_started_at" field.
func ChunkingStartedAtGTE ¶
ChunkingStartedAtGTE applies the GTE predicate on the "chunking_started_at" field.
func ChunkingStartedAtIn ¶
ChunkingStartedAtIn applies the In predicate on the "chunking_started_at" field.
func ChunkingStartedAtIsNil ¶
ChunkingStartedAtIsNil applies the IsNil predicate on the "chunking_started_at" field.
func ChunkingStartedAtLT ¶
ChunkingStartedAtLT applies the LT predicate on the "chunking_started_at" field.
func ChunkingStartedAtLTE ¶
ChunkingStartedAtLTE applies the LTE predicate on the "chunking_started_at" field.
func ChunkingStartedAtNEQ ¶
ChunkingStartedAtNEQ applies the NEQ predicate on the "chunking_started_at" field.
func ChunkingStartedAtNotIn ¶
ChunkingStartedAtNotIn applies the NotIn predicate on the "chunking_started_at" field.
func ChunkingStartedAtNotNil ¶
ChunkingStartedAtNotNil applies the NotNil predicate on the "chunking_started_at" field.
func Compression ¶
Compression applies equality check predicate on the "compression" field. It's identical to CompressionEQ.
func CompressionContains ¶
CompressionContains applies the Contains predicate on the "compression" field.
func CompressionContainsFold ¶
CompressionContainsFold applies the ContainsFold predicate on the "compression" field.
func CompressionEQ ¶
CompressionEQ applies the EQ predicate on the "compression" field.
func CompressionEqualFold ¶
CompressionEqualFold applies the EqualFold predicate on the "compression" field.
func CompressionGT ¶
CompressionGT applies the GT predicate on the "compression" field.
func CompressionGTE ¶
CompressionGTE applies the GTE predicate on the "compression" field.
func CompressionHasPrefix ¶
CompressionHasPrefix applies the HasPrefix predicate on the "compression" field.
func CompressionHasSuffix ¶
CompressionHasSuffix applies the HasSuffix predicate on the "compression" field.
func CompressionIn ¶
CompressionIn applies the In predicate on the "compression" field.
func CompressionLT ¶
CompressionLT applies the LT predicate on the "compression" field.
func CompressionLTE ¶
CompressionLTE applies the LTE predicate on the "compression" field.
func CompressionNEQ ¶
CompressionNEQ applies the NEQ predicate on the "compression" field.
func CompressionNotIn ¶
CompressionNotIn applies the NotIn predicate on the "compression" field.
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 FileSize ¶
FileSize applies equality check predicate on the "file_size" field. It's identical to FileSizeEQ.
func FileSizeEQ ¶
FileSizeEQ applies the EQ predicate on the "file_size" field.
func FileSizeGT ¶
FileSizeGT applies the GT predicate on the "file_size" field.
func FileSizeGTE ¶
FileSizeGTE applies the GTE predicate on the "file_size" field.
func FileSizeIn ¶
FileSizeIn applies the In predicate on the "file_size" field.
func FileSizeLT ¶
FileSizeLT applies the LT predicate on the "file_size" field.
func FileSizeLTE ¶
FileSizeLTE applies the LTE predicate on the "file_size" field.
func FileSizeNEQ ¶
FileSizeNEQ applies the NEQ predicate on the "file_size" field.
func FileSizeNotIn ¶
FileSizeNotIn applies the NotIn predicate on the "file_size" field.
func HasChunkLinks ¶
HasChunkLinks applies the HasEdge predicate on the "chunk_links" edge.
func HasChunkLinksWith ¶
func HasChunkLinksWith(preds ...predicate.NarFileChunk) predicate.NarFile
HasChunkLinksWith applies the HasEdge predicate on the "chunk_links" edge with a given conditions (other predicates).
func HasNarInfoNarFiles ¶
HasNarInfoNarFiles applies the HasEdge predicate on the "nar_info_nar_files" edge.
func HasNarInfoNarFilesWith ¶
func HasNarInfoNarFilesWith(preds ...predicate.NarInfoNarFile) predicate.NarFile
HasNarInfoNarFilesWith applies the HasEdge predicate on the "nar_info_nar_files" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func LastAccessedAt ¶
LastAccessedAt applies equality check predicate on the "last_accessed_at" field. It's identical to LastAccessedAtEQ.
func LastAccessedAtEQ ¶
LastAccessedAtEQ applies the EQ predicate on the "last_accessed_at" field.
func LastAccessedAtGT ¶
LastAccessedAtGT applies the GT predicate on the "last_accessed_at" field.
func LastAccessedAtGTE ¶
LastAccessedAtGTE applies the GTE predicate on the "last_accessed_at" field.
func LastAccessedAtIn ¶
LastAccessedAtIn applies the In predicate on the "last_accessed_at" field.
func LastAccessedAtIsNil ¶
LastAccessedAtIsNil applies the IsNil predicate on the "last_accessed_at" field.
func LastAccessedAtLT ¶
LastAccessedAtLT applies the LT predicate on the "last_accessed_at" field.
func LastAccessedAtLTE ¶
LastAccessedAtLTE applies the LTE predicate on the "last_accessed_at" field.
func LastAccessedAtNEQ ¶
LastAccessedAtNEQ applies the NEQ predicate on the "last_accessed_at" field.
func LastAccessedAtNotIn ¶
LastAccessedAtNotIn applies the NotIn predicate on the "last_accessed_at" field.
func LastAccessedAtNotNil ¶
LastAccessedAtNotNil applies the NotNil predicate on the "last_accessed_at" field.
func Query ¶
Query applies equality check predicate on the "query" field. It's identical to QueryEQ.
func QueryContains ¶
QueryContains applies the Contains predicate on the "query" field.
func QueryContainsFold ¶
QueryContainsFold applies the ContainsFold predicate on the "query" field.
func QueryEqualFold ¶
QueryEqualFold applies the EqualFold predicate on the "query" field.
func QueryHasPrefix ¶
QueryHasPrefix applies the HasPrefix predicate on the "query" field.
func QueryHasSuffix ¶
QueryHasSuffix applies the HasSuffix predicate on the "query" field.
func QueryNotIn ¶
QueryNotIn applies the NotIn predicate on the "query" field.
func TotalChunks ¶
TotalChunks applies equality check predicate on the "total_chunks" field. It's identical to TotalChunksEQ.
func TotalChunksEQ ¶
TotalChunksEQ applies the EQ predicate on the "total_chunks" field.
func TotalChunksGT ¶
TotalChunksGT applies the GT predicate on the "total_chunks" field.
func TotalChunksGTE ¶
TotalChunksGTE applies the GTE predicate on the "total_chunks" field.
func TotalChunksIn ¶
TotalChunksIn applies the In predicate on the "total_chunks" field.
func TotalChunksLT ¶
TotalChunksLT applies the LT predicate on the "total_chunks" field.
func TotalChunksLTE ¶
TotalChunksLTE applies the LTE predicate on the "total_chunks" field.
func TotalChunksNEQ ¶
TotalChunksNEQ applies the NEQ predicate on the "total_chunks" field.
func TotalChunksNotIn ¶
TotalChunksNotIn applies the NotIn predicate on the "total_chunks" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerifiedAt ¶
VerifiedAt applies equality check predicate on the "verified_at" field. It's identical to VerifiedAtEQ.
func VerifiedAtEQ ¶
VerifiedAtEQ applies the EQ predicate on the "verified_at" field.
func VerifiedAtGT ¶
VerifiedAtGT applies the GT predicate on the "verified_at" field.
func VerifiedAtGTE ¶
VerifiedAtGTE applies the GTE predicate on the "verified_at" field.
func VerifiedAtIn ¶
VerifiedAtIn applies the In predicate on the "verified_at" field.
func VerifiedAtIsNil ¶
VerifiedAtIsNil applies the IsNil predicate on the "verified_at" field.
func VerifiedAtLT ¶
VerifiedAtLT applies the LT predicate on the "verified_at" field.
func VerifiedAtLTE ¶
VerifiedAtLTE applies the LTE predicate on the "verified_at" field.
func VerifiedAtNEQ ¶
VerifiedAtNEQ applies the NEQ predicate on the "verified_at" field.
func VerifiedAtNotIn ¶
VerifiedAtNotIn applies the NotIn predicate on the "verified_at" field.
func VerifiedAtNotNil ¶
VerifiedAtNotNil applies the NotNil predicate on the "verified_at" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the NarFile queries.
func ByChunkLinks ¶
func ByChunkLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChunkLinks orders the results by chunk_links terms.
func ByChunkLinksCount ¶
func ByChunkLinksCount(opts ...sql.OrderTermOption) OrderOption
ByChunkLinksCount orders the results by chunk_links count.
func ByChunkingStartedAt ¶
func ByChunkingStartedAt(opts ...sql.OrderTermOption) OrderOption
ByChunkingStartedAt orders the results by the chunking_started_at field.
func ByCompression ¶
func ByCompression(opts ...sql.OrderTermOption) OrderOption
ByCompression orders the results by the compression field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFileSize ¶
func ByFileSize(opts ...sql.OrderTermOption) OrderOption
ByFileSize orders the results by the file_size field.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastAccessedAt ¶
func ByLastAccessedAt(opts ...sql.OrderTermOption) OrderOption
ByLastAccessedAt orders the results by the last_accessed_at field.
func ByNarInfoNarFiles ¶
func ByNarInfoNarFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNarInfoNarFiles orders the results by nar_info_nar_files terms.
func ByNarInfoNarFilesCount ¶
func ByNarInfoNarFilesCount(opts ...sql.OrderTermOption) OrderOption
ByNarInfoNarFilesCount orders the results by nar_info_nar_files count.
func ByQuery ¶
func ByQuery(opts ...sql.OrderTermOption) OrderOption
ByQuery orders the results by the query field.
func ByTotalChunks ¶
func ByTotalChunks(opts ...sql.OrderTermOption) OrderOption
ByTotalChunks orders the results by the total_chunks field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVerifiedAt ¶
func ByVerifiedAt(opts ...sql.OrderTermOption) OrderOption
ByVerifiedAt orders the results by the verified_at field.