Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Files) predicate.Files
- func HasImages() predicate.Files
- func HasImagesWith(preds ...predicate.Images) predicate.Files
- func HasMusics() predicate.Files
- func HasMusicsWith(preds ...predicate.Musics) predicate.Files
- func Hash(v string) predicate.Files
- func HashContains(v string) predicate.Files
- func HashContainsFold(v string) predicate.Files
- func HashEQ(v string) predicate.Files
- func HashEqualFold(v string) predicate.Files
- func HashGT(v string) predicate.Files
- func HashGTE(v string) predicate.Files
- func HashHasPrefix(v string) predicate.Files
- func HashHasSuffix(v string) predicate.Files
- func HashIn(vs ...string) predicate.Files
- func HashLT(v string) predicate.Files
- func HashLTE(v string) predicate.Files
- func HashNEQ(v string) predicate.Files
- func HashNotIn(vs ...string) predicate.Files
- func ID(id uint64) predicate.Files
- func IDEQ(id uint64) predicate.Files
- func IDGT(id uint64) predicate.Files
- func IDGTE(id uint64) predicate.Files
- func IDIn(ids ...uint64) predicate.Files
- func IDLT(id uint64) predicate.Files
- func IDLTE(id uint64) predicate.Files
- func IDNEQ(id uint64) predicate.Files
- func IDNotIn(ids ...uint64) predicate.Files
- func Name(v string) predicate.Files
- func NameContains(v string) predicate.Files
- func NameContainsFold(v string) predicate.Files
- func NameEQ(v string) predicate.Files
- func NameEqualFold(v string) predicate.Files
- func NameGT(v string) predicate.Files
- func NameGTE(v string) predicate.Files
- func NameHasPrefix(v string) predicate.Files
- func NameHasSuffix(v string) predicate.Files
- func NameIn(vs ...string) predicate.Files
- func NameLT(v string) predicate.Files
- func NameLTE(v string) predicate.Files
- func NameNEQ(v string) predicate.Files
- func NameNotIn(vs ...string) predicate.Files
- func Not(p predicate.Files) predicate.Files
- func Or(predicates ...predicate.Files) predicate.Files
- func Size(v uint64) predicate.Files
- func SizeEQ(v uint64) predicate.Files
- func SizeGT(v uint64) predicate.Files
- func SizeGTE(v uint64) predicate.Files
- func SizeIn(vs ...uint64) predicate.Files
- func SizeLT(v uint64) predicate.Files
- func SizeLTE(v uint64) predicate.Files
- func SizeNEQ(v uint64) predicate.Files
- func SizeNotIn(vs ...uint64) predicate.Files
- func ValidColumn(column string) bool
- type OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByMusics(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMusicsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the files type in the database. Label = "files" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // EdgeMusics holds the string denoting the musics edge name in mutations. EdgeMusics = "musics" // EdgeImages holds the string denoting the images edge name in mutations. EdgeImages = "images" // Table holds the table name of the files in the database. Table = "files" // MusicsTable is the table that holds the musics relation/edge. MusicsTable = "musics" // MusicsInverseTable is the table name for the Musics entity. // It exists in this package in order to avoid circular dependency with the "musics" package. MusicsInverseTable = "musics" // MusicsColumn is the table column denoting the musics relation/edge. MusicsColumn = "files_musics" // ImagesTable is the table that holds the images relation/edge. ImagesTable = "images" // ImagesInverseTable is the table name for the Images entity. // It exists in this package in order to avoid circular dependency with the "images" package. ImagesInverseTable = "images" // ImagesColumn is the table column denoting the images relation/edge. ImagesColumn = "files_images" )
Variables ¶
Columns holds all SQL columns for files fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func HasImagesWith ¶
HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).
func HasMusicsWith ¶
HasMusicsWith applies the HasEdge predicate on the "musics" 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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 Files queries.
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 ByImages ¶
func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByImages orders the results by images terms.
func ByImagesCount ¶
func ByImagesCount(opts ...sql.OrderTermOption) OrderOption
ByImagesCount orders the results by images count.
func ByMusics ¶
func ByMusics(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMusics orders the results by musics terms.
func ByMusicsCount ¶
func ByMusicsCount(opts ...sql.OrderTermOption) OrderOption
ByMusicsCount orders the results by musics count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.