Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NarFileChunk) predicate.NarFileChunk
- func ChunkID(v int) predicate.NarFileChunk
- func ChunkIDEQ(v int) predicate.NarFileChunk
- func ChunkIDIn(vs ...int) predicate.NarFileChunk
- func ChunkIDNEQ(v int) predicate.NarFileChunk
- func ChunkIDNotIn(vs ...int) predicate.NarFileChunk
- func ChunkIndex(v int) predicate.NarFileChunk
- func ChunkIndexEQ(v int) predicate.NarFileChunk
- func ChunkIndexGT(v int) predicate.NarFileChunk
- func ChunkIndexGTE(v int) predicate.NarFileChunk
- func ChunkIndexIn(vs ...int) predicate.NarFileChunk
- func ChunkIndexLT(v int) predicate.NarFileChunk
- func ChunkIndexLTE(v int) predicate.NarFileChunk
- func ChunkIndexNEQ(v int) predicate.NarFileChunk
- func ChunkIndexNotIn(vs ...int) predicate.NarFileChunk
- func HasChunk() predicate.NarFileChunk
- func HasChunkWith(preds ...predicate.Chunk) predicate.NarFileChunk
- func HasNarFile() predicate.NarFileChunk
- func HasNarFileWith(preds ...predicate.NarFile) predicate.NarFileChunk
- func ID(id int) predicate.NarFileChunk
- func IDEQ(id int) predicate.NarFileChunk
- func IDGT(id int) predicate.NarFileChunk
- func IDGTE(id int) predicate.NarFileChunk
- func IDIn(ids ...int) predicate.NarFileChunk
- func IDLT(id int) predicate.NarFileChunk
- func IDLTE(id int) predicate.NarFileChunk
- func IDNEQ(id int) predicate.NarFileChunk
- func IDNotIn(ids ...int) predicate.NarFileChunk
- func NarFileID(v int) predicate.NarFileChunk
- func NarFileIDEQ(v int) predicate.NarFileChunk
- func NarFileIDIn(vs ...int) predicate.NarFileChunk
- func NarFileIDNEQ(v int) predicate.NarFileChunk
- func NarFileIDNotIn(vs ...int) predicate.NarFileChunk
- func Not(p predicate.NarFileChunk) predicate.NarFileChunk
- func Or(predicates ...predicate.NarFileChunk) predicate.NarFileChunk
- func ValidColumn(column string) bool
- type OrderOption
- func ByChunkField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByChunkID(opts ...sql.OrderTermOption) OrderOption
- func ByChunkIndex(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNarFileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNarFileID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the narfilechunk type in the database. Label = "nar_file_chunk" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNarFileID holds the string denoting the nar_file_id field in the database. FieldNarFileID = "nar_file_id" // FieldChunkID holds the string denoting the chunk_id field in the database. FieldChunkID = "chunk_id" // FieldChunkIndex holds the string denoting the chunk_index field in the database. FieldChunkIndex = "chunk_index" // EdgeNarFile holds the string denoting the nar_file edge name in mutations. EdgeNarFile = "nar_file" // EdgeChunk holds the string denoting the chunk edge name in mutations. EdgeChunk = "chunk" // Table holds the table name of the narfilechunk in the database. Table = "nar_file_chunks" // NarFileTable is the table that holds the nar_file relation/edge. NarFileTable = "nar_file_chunks" // NarFileInverseTable is the table name for the NarFile entity. // It exists in this package in order to avoid circular dependency with the "narfile" package. NarFileInverseTable = "nar_files" // NarFileColumn is the table column denoting the nar_file relation/edge. NarFileColumn = "nar_file_id" // ChunkTable is the table that holds the chunk relation/edge. ChunkTable = "nar_file_chunks" // ChunkInverseTable is the table name for the Chunk entity. // It exists in this package in order to avoid circular dependency with the "chunk" package. ChunkInverseTable = "chunks" // ChunkColumn is the table column denoting the chunk relation/edge. ChunkColumn = "chunk_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNarFileID, FieldChunkID, FieldChunkIndex, }
Columns holds all SQL columns for narfilechunk fields.
Functions ¶
func And ¶
func And(predicates ...predicate.NarFileChunk) predicate.NarFileChunk
And groups predicates with the AND operator between them.
func ChunkID ¶
func ChunkID(v int) predicate.NarFileChunk
ChunkID applies equality check predicate on the "chunk_id" field. It's identical to ChunkIDEQ.
func ChunkIDEQ ¶
func ChunkIDEQ(v int) predicate.NarFileChunk
ChunkIDEQ applies the EQ predicate on the "chunk_id" field.
func ChunkIDIn ¶
func ChunkIDIn(vs ...int) predicate.NarFileChunk
ChunkIDIn applies the In predicate on the "chunk_id" field.
func ChunkIDNEQ ¶
func ChunkIDNEQ(v int) predicate.NarFileChunk
ChunkIDNEQ applies the NEQ predicate on the "chunk_id" field.
func ChunkIDNotIn ¶
func ChunkIDNotIn(vs ...int) predicate.NarFileChunk
ChunkIDNotIn applies the NotIn predicate on the "chunk_id" field.
func ChunkIndex ¶
func ChunkIndex(v int) predicate.NarFileChunk
ChunkIndex applies equality check predicate on the "chunk_index" field. It's identical to ChunkIndexEQ.
func ChunkIndexEQ ¶
func ChunkIndexEQ(v int) predicate.NarFileChunk
ChunkIndexEQ applies the EQ predicate on the "chunk_index" field.
func ChunkIndexGT ¶
func ChunkIndexGT(v int) predicate.NarFileChunk
ChunkIndexGT applies the GT predicate on the "chunk_index" field.
func ChunkIndexGTE ¶
func ChunkIndexGTE(v int) predicate.NarFileChunk
ChunkIndexGTE applies the GTE predicate on the "chunk_index" field.
func ChunkIndexIn ¶
func ChunkIndexIn(vs ...int) predicate.NarFileChunk
ChunkIndexIn applies the In predicate on the "chunk_index" field.
func ChunkIndexLT ¶
func ChunkIndexLT(v int) predicate.NarFileChunk
ChunkIndexLT applies the LT predicate on the "chunk_index" field.
func ChunkIndexLTE ¶
func ChunkIndexLTE(v int) predicate.NarFileChunk
ChunkIndexLTE applies the LTE predicate on the "chunk_index" field.
func ChunkIndexNEQ ¶
func ChunkIndexNEQ(v int) predicate.NarFileChunk
ChunkIndexNEQ applies the NEQ predicate on the "chunk_index" field.
func ChunkIndexNotIn ¶
func ChunkIndexNotIn(vs ...int) predicate.NarFileChunk
ChunkIndexNotIn applies the NotIn predicate on the "chunk_index" field.
func HasChunk ¶
func HasChunk() predicate.NarFileChunk
HasChunk applies the HasEdge predicate on the "chunk" edge.
func HasChunkWith ¶
func HasChunkWith(preds ...predicate.Chunk) predicate.NarFileChunk
HasChunkWith applies the HasEdge predicate on the "chunk" edge with a given conditions (other predicates).
func HasNarFile ¶
func HasNarFile() predicate.NarFileChunk
HasNarFile applies the HasEdge predicate on the "nar_file" edge.
func HasNarFileWith ¶
func HasNarFileWith(preds ...predicate.NarFile) predicate.NarFileChunk
HasNarFileWith applies the HasEdge predicate on the "nar_file" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.NarFileChunk
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.NarFileChunk
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.NarFileChunk
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.NarFileChunk
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.NarFileChunk
IDNotIn applies the NotIn predicate on the ID field.
func NarFileID ¶
func NarFileID(v int) predicate.NarFileChunk
NarFileID applies equality check predicate on the "nar_file_id" field. It's identical to NarFileIDEQ.
func NarFileIDEQ ¶
func NarFileIDEQ(v int) predicate.NarFileChunk
NarFileIDEQ applies the EQ predicate on the "nar_file_id" field.
func NarFileIDIn ¶
func NarFileIDIn(vs ...int) predicate.NarFileChunk
NarFileIDIn applies the In predicate on the "nar_file_id" field.
func NarFileIDNEQ ¶
func NarFileIDNEQ(v int) predicate.NarFileChunk
NarFileIDNEQ applies the NEQ predicate on the "nar_file_id" field.
func NarFileIDNotIn ¶
func NarFileIDNotIn(vs ...int) predicate.NarFileChunk
NarFileIDNotIn applies the NotIn predicate on the "nar_file_id" field.
func Not ¶
func Not(p predicate.NarFileChunk) predicate.NarFileChunk
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NarFileChunk) predicate.NarFileChunk
Or groups predicates with the OR operator between them.
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 NarFileChunk queries.
func ByChunkField ¶
func ByChunkField(field string, opts ...sql.OrderTermOption) OrderOption
ByChunkField orders the results by chunk field.
func ByChunkID ¶
func ByChunkID(opts ...sql.OrderTermOption) OrderOption
ByChunkID orders the results by the chunk_id field.
func ByChunkIndex ¶
func ByChunkIndex(opts ...sql.OrderTermOption) OrderOption
ByChunkIndex orders the results by the chunk_index field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNarFileField ¶
func ByNarFileField(field string, opts ...sql.OrderTermOption) OrderOption
ByNarFileField orders the results by nar_file field.
func ByNarFileID ¶
func ByNarFileID(opts ...sql.OrderTermOption) OrderOption
ByNarFileID orders the results by the nar_file_id field.