Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chunk) predicate.Chunk
- func CompressedSize(v uint32) predicate.Chunk
- func CompressedSizeEQ(v uint32) predicate.Chunk
- func CompressedSizeGT(v uint32) predicate.Chunk
- func CompressedSizeGTE(v uint32) predicate.Chunk
- func CompressedSizeIn(vs ...uint32) predicate.Chunk
- func CompressedSizeLT(v uint32) predicate.Chunk
- func CompressedSizeLTE(v uint32) predicate.Chunk
- func CompressedSizeNEQ(v uint32) predicate.Chunk
- func CompressedSizeNotIn(vs ...uint32) 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 HasNarFileLinks() predicate.Chunk
- func HasNarFileLinksWith(preds ...predicate.NarFileChunk) predicate.Chunk
- func Hash(v string) predicate.Chunk
- func HashContains(v string) predicate.Chunk
- func HashContainsFold(v string) predicate.Chunk
- func HashEQ(v string) predicate.Chunk
- func HashEqualFold(v string) predicate.Chunk
- func HashGT(v string) predicate.Chunk
- func HashGTE(v string) predicate.Chunk
- func HashHasPrefix(v string) predicate.Chunk
- func HashHasSuffix(v string) predicate.Chunk
- func HashIn(vs ...string) predicate.Chunk
- func HashLT(v string) predicate.Chunk
- func HashLTE(v string) predicate.Chunk
- func HashNEQ(v string) predicate.Chunk
- func HashNotIn(vs ...string) predicate.Chunk
- func ID(id int) predicate.Chunk
- func IDEQ(id int) predicate.Chunk
- func IDGT(id int) predicate.Chunk
- func IDGTE(id int) predicate.Chunk
- func IDIn(ids ...int) predicate.Chunk
- func IDLT(id int) predicate.Chunk
- func IDLTE(id int) predicate.Chunk
- func IDNEQ(id int) predicate.Chunk
- func IDNotIn(ids ...int) predicate.Chunk
- func Not(p predicate.Chunk) predicate.Chunk
- func Or(predicates ...predicate.Chunk) predicate.Chunk
- func Size(v uint32) predicate.Chunk
- func SizeEQ(v uint32) predicate.Chunk
- func SizeGT(v uint32) predicate.Chunk
- func SizeGTE(v uint32) predicate.Chunk
- func SizeIn(vs ...uint32) predicate.Chunk
- func SizeLT(v uint32) predicate.Chunk
- func SizeLTE(v uint32) predicate.Chunk
- func SizeNEQ(v uint32) predicate.Chunk
- func SizeNotIn(vs ...uint32) predicate.Chunk
- 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 UpdatedAtIsNil() 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 UpdatedAtNotNil() predicate.Chunk
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompressedSize(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNarFileLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNarFileLinksCount(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldCompressedSize holds the string denoting the compressed_size field in the database. FieldCompressedSize = "compressed_size" // EdgeNarFileLinks holds the string denoting the nar_file_links edge name in mutations. EdgeNarFileLinks = "nar_file_links" // Table holds the table name of the chunk in the database. Table = "chunks" // NarFileLinksTable is the table that holds the nar_file_links relation/edge. NarFileLinksTable = "nar_file_chunks" // NarFileLinksInverseTable is the table name for the NarFileChunk entity. // It exists in this package in order to avoid circular dependency with the "narfilechunk" package. NarFileLinksInverseTable = "nar_file_chunks" // NarFileLinksColumn is the table column denoting the nar_file_links relation/edge. NarFileLinksColumn = "chunk_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 // DefaultCompressedSize holds the default value on creation for the "compressed_size" field. DefaultCompressedSize uint32 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldHash, FieldSize, FieldCompressedSize, }
Columns holds all SQL columns for chunk fields.
Functions ¶
func CompressedSize ¶
CompressedSize applies equality check predicate on the "compressed_size" field. It's identical to CompressedSizeEQ.
func CompressedSizeEQ ¶
CompressedSizeEQ applies the EQ predicate on the "compressed_size" field.
func CompressedSizeGT ¶
CompressedSizeGT applies the GT predicate on the "compressed_size" field.
func CompressedSizeGTE ¶
CompressedSizeGTE applies the GTE predicate on the "compressed_size" field.
func CompressedSizeIn ¶
CompressedSizeIn applies the In predicate on the "compressed_size" field.
func CompressedSizeLT ¶
CompressedSizeLT applies the LT predicate on the "compressed_size" field.
func CompressedSizeLTE ¶
CompressedSizeLTE applies the LTE predicate on the "compressed_size" field.
func CompressedSizeNEQ ¶
CompressedSizeNEQ applies the NEQ predicate on the "compressed_size" field.
func CompressedSizeNotIn ¶
CompressedSizeNotIn applies the NotIn predicate on the "compressed_size" 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 HasNarFileLinks ¶
HasNarFileLinks applies the HasEdge predicate on the "nar_file_links" edge.
func HasNarFileLinksWith ¶
func HasNarFileLinksWith(preds ...predicate.NarFileChunk) predicate.Chunk
HasNarFileLinksWith applies the HasEdge predicate on the "nar_file_links" 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 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Chunk queries.
func ByCompressedSize ¶
func ByCompressedSize(opts ...sql.OrderTermOption) OrderOption
ByCompressedSize orders the results by the compressed_size field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByNarFileLinks ¶
func ByNarFileLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNarFileLinks orders the results by nar_file_links terms.
func ByNarFileLinksCount ¶
func ByNarFileLinksCount(opts ...sql.OrderTermOption) OrderOption
ByNarFileLinksCount orders the results by nar_file_links count.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.