Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Musics) predicate.Musics
- func CreateTime(v time.Time) predicate.Musics
- func CreateTimeEQ(v time.Time) predicate.Musics
- func CreateTimeGT(v time.Time) predicate.Musics
- func CreateTimeGTE(v time.Time) predicate.Musics
- func CreateTimeIn(vs ...time.Time) predicate.Musics
- func CreateTimeLT(v time.Time) predicate.Musics
- func CreateTimeLTE(v time.Time) predicate.Musics
- func CreateTimeNEQ(v time.Time) predicate.Musics
- func CreateTimeNotIn(vs ...time.Time) predicate.Musics
- func Description(v string) predicate.Musics
- func DescriptionContains(v string) predicate.Musics
- func DescriptionContainsFold(v string) predicate.Musics
- func DescriptionEQ(v string) predicate.Musics
- func DescriptionEqualFold(v string) predicate.Musics
- func DescriptionGT(v string) predicate.Musics
- func DescriptionGTE(v string) predicate.Musics
- func DescriptionHasPrefix(v string) predicate.Musics
- func DescriptionHasSuffix(v string) predicate.Musics
- func DescriptionIn(vs ...string) predicate.Musics
- func DescriptionIsNil() predicate.Musics
- func DescriptionLT(v string) predicate.Musics
- func DescriptionLTE(v string) predicate.Musics
- func DescriptionNEQ(v string) predicate.Musics
- func DescriptionNotIn(vs ...string) predicate.Musics
- func DescriptionNotNil() predicate.Musics
- func HasAlbums() predicate.Musics
- func HasAlbumsWith(preds ...predicate.Albums) predicate.Musics
- func HasArtists() predicate.Musics
- func HasArtistsWith(preds ...predicate.Artists) predicate.Musics
- func HasFile() predicate.Musics
- func HasFileWith(preds ...predicate.Files) predicate.Musics
- func HasPlaylists() predicate.Musics
- func HasPlaylistsWith(preds ...predicate.Playlists) predicate.Musics
- func HasUsers() predicate.Musics
- func HasUsersWith(preds ...predicate.Users) predicate.Musics
- func ID(id uint64) predicate.Musics
- func IDEQ(id uint64) predicate.Musics
- func IDGT(id uint64) predicate.Musics
- func IDGTE(id uint64) predicate.Musics
- func IDIn(ids ...uint64) predicate.Musics
- func IDLT(id uint64) predicate.Musics
- func IDLTE(id uint64) predicate.Musics
- func IDNEQ(id uint64) predicate.Musics
- func IDNotIn(ids ...uint64) predicate.Musics
- func Name(v string) predicate.Musics
- func NameContains(v string) predicate.Musics
- func NameContainsFold(v string) predicate.Musics
- func NameEQ(v string) predicate.Musics
- func NameEqualFold(v string) predicate.Musics
- func NameGT(v string) predicate.Musics
- func NameGTE(v string) predicate.Musics
- func NameHasPrefix(v string) predicate.Musics
- func NameHasSuffix(v string) predicate.Musics
- func NameIn(vs ...string) predicate.Musics
- func NameLT(v string) predicate.Musics
- func NameLTE(v string) predicate.Musics
- func NameNEQ(v string) predicate.Musics
- func NameNotIn(vs ...string) predicate.Musics
- func Not(p predicate.Musics) predicate.Musics
- func Or(predicates ...predicate.Musics) predicate.Musics
- func UpdateTime(v time.Time) predicate.Musics
- func UpdateTimeEQ(v time.Time) predicate.Musics
- func UpdateTimeGT(v time.Time) predicate.Musics
- func UpdateTimeGTE(v time.Time) predicate.Musics
- func UpdateTimeIn(vs ...time.Time) predicate.Musics
- func UpdateTimeLT(v time.Time) predicate.Musics
- func UpdateTimeLTE(v time.Time) predicate.Musics
- func UpdateTimeNEQ(v time.Time) predicate.Musics
- func UpdateTimeNotIn(vs ...time.Time) predicate.Musics
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlbums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAlbumsCount(opts ...sql.OrderTermOption) OrderOption
- func ByArtists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByArtistsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPlaylists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPlaylistsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the musics type in the database. Label = "musics" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeFile holds the string denoting the file edge name in mutations. EdgeFile = "file" // EdgeArtists holds the string denoting the artists edge name in mutations. EdgeArtists = "artists" // EdgePlaylists holds the string denoting the playlists edge name in mutations. EdgePlaylists = "playlists" // EdgeAlbums holds the string denoting the albums edge name in mutations. EdgeAlbums = "albums" // Table holds the table name of the musics in the database. Table = "musics" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "users_musics" // UsersInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. UsersInverseTable = "users" // FileTable is the table that holds the file relation/edge. FileTable = "musics" // FileInverseTable is the table name for the Files entity. // It exists in this package in order to avoid circular dependency with the "files" package. FileInverseTable = "files" // FileColumn is the table column denoting the file relation/edge. FileColumn = "files_musics" // ArtistsTable is the table that holds the artists relation/edge. The primary key declared below. ArtistsTable = "artists_musics" // ArtistsInverseTable is the table name for the Artists entity. // It exists in this package in order to avoid circular dependency with the "artists" package. ArtistsInverseTable = "artists" // PlaylistsTable is the table that holds the playlists relation/edge. The primary key declared below. PlaylistsTable = "playlists_musics" // PlaylistsInverseTable is the table name for the Playlists entity. // It exists in this package in order to avoid circular dependency with the "playlists" package. PlaylistsInverseTable = "playlists" // AlbumsTable is the table that holds the albums relation/edge. The primary key declared below. AlbumsTable = "albums_musics" // AlbumsInverseTable is the table name for the Albums entity. // It exists in this package in order to avoid circular dependency with the "albums" package. AlbumsInverseTable = "albums" )
Variables ¶
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"users_id", "musics_id"} // ArtistsPrimaryKey and ArtistsColumn2 are the table columns denoting the // primary key for the artists relation (M2M). ArtistsPrimaryKey = []string{"artists_id", "musics_id"} // PlaylistsPrimaryKey and PlaylistsColumn2 are the table columns denoting the // primary key for the playlists relation (M2M). PlaylistsPrimaryKey = []string{"playlists_id", "musics_id"} // AlbumsPrimaryKey and AlbumsColumn2 are the table columns denoting the // primary key for the albums relation (M2M). AlbumsPrimaryKey = []string{"albums_id", "musics_id"} )
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldDescription, }
Columns holds all SQL columns for musics fields.
var ForeignKeys = []string{
"files_musics",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "musics" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasAlbumsWith ¶
HasAlbumsWith applies the HasEdge predicate on the "albums" edge with a given conditions (other predicates).
func HasArtists ¶
HasArtists applies the HasEdge predicate on the "artists" edge.
func HasArtistsWith ¶
HasArtistsWith applies the HasEdge predicate on the "artists" edge with a given conditions (other predicates).
func HasFileWith ¶
HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).
func HasPlaylists ¶
HasPlaylists applies the HasEdge predicate on the "playlists" edge.
func HasPlaylistsWith ¶
HasPlaylistsWith applies the HasEdge predicate on the "playlists" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
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 UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Musics queries.
func ByAlbums ¶
func ByAlbums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAlbums orders the results by albums terms.
func ByAlbumsCount ¶
func ByAlbumsCount(opts ...sql.OrderTermOption) OrderOption
ByAlbumsCount orders the results by albums count.
func ByArtists ¶
func ByArtists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByArtists orders the results by artists terms.
func ByArtistsCount ¶
func ByArtistsCount(opts ...sql.OrderTermOption) OrderOption
ByArtistsCount orders the results by artists count.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByFileField ¶
func ByFileField(field string, opts ...sql.OrderTermOption) OrderOption
ByFileField orders the results by file field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPlaylists ¶
func ByPlaylists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPlaylists orders the results by playlists terms.
func ByPlaylistsCount ¶
func ByPlaylistsCount(opts ...sql.OrderTermOption) OrderOption
ByPlaylistsCount orders the results by playlists count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.