Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Track) predicate.Track
- func Artist(v string) predicate.Track
- func ArtistContains(v string) predicate.Track
- func ArtistContainsFold(v string) predicate.Track
- func ArtistEQ(v string) predicate.Track
- func ArtistEqualFold(v string) predicate.Track
- func ArtistGT(v string) predicate.Track
- func ArtistGTE(v string) predicate.Track
- func ArtistHasPrefix(v string) predicate.Track
- func ArtistHasSuffix(v string) predicate.Track
- func ArtistIn(vs ...string) predicate.Track
- func ArtistLT(v string) predicate.Track
- func ArtistLTE(v string) predicate.Track
- func ArtistNEQ(v string) predicate.Track
- func ArtistNotIn(vs ...string) predicate.Track
- func CreatedAt(v time.Time) predicate.Track
- func CreatedAtEQ(v time.Time) predicate.Track
- func CreatedAtGT(v time.Time) predicate.Track
- func CreatedAtGTE(v time.Time) predicate.Track
- func CreatedAtIn(vs ...time.Time) predicate.Track
- func CreatedAtLT(v time.Time) predicate.Track
- func CreatedAtLTE(v time.Time) predicate.Track
- func CreatedAtNEQ(v time.Time) predicate.Track
- func CreatedAtNotIn(vs ...time.Time) predicate.Track
- func DeletedAt(v time.Time) predicate.Track
- func DeletedAtEQ(v time.Time) predicate.Track
- func DeletedAtGT(v time.Time) predicate.Track
- func DeletedAtGTE(v time.Time) predicate.Track
- func DeletedAtIn(vs ...time.Time) predicate.Track
- func DeletedAtIsNil() predicate.Track
- func DeletedAtLT(v time.Time) predicate.Track
- func DeletedAtLTE(v time.Time) predicate.Track
- func DeletedAtNEQ(v time.Time) predicate.Track
- func DeletedAtNotIn(vs ...time.Time) predicate.Track
- func DeletedAtNotNil() predicate.Track
- func DurationMs(v int) predicate.Track
- func DurationMsEQ(v int) predicate.Track
- func DurationMsGT(v int) predicate.Track
- func DurationMsGTE(v int) predicate.Track
- func DurationMsIn(vs ...int) predicate.Track
- func DurationMsLT(v int) predicate.Track
- func DurationMsLTE(v int) predicate.Track
- func DurationMsNEQ(v int) predicate.Track
- func DurationMsNotIn(vs ...int) predicate.Track
- func HasPlaylists() predicate.Track
- func HasPlaylistsWith(preds ...predicate.Playlist) predicate.Track
- func ID(id int) predicate.Track
- func IDEQ(id int) predicate.Track
- func IDGT(id int) predicate.Track
- func IDGTE(id int) predicate.Track
- func IDIn(ids ...int) predicate.Track
- func IDLT(id int) predicate.Track
- func IDLTE(id int) predicate.Track
- func IDNEQ(id int) predicate.Track
- func IDNotIn(ids ...int) predicate.Track
- func ImgLargeURL(v string) predicate.Track
- func ImgLargeURLContains(v string) predicate.Track
- func ImgLargeURLContainsFold(v string) predicate.Track
- func ImgLargeURLEQ(v string) predicate.Track
- func ImgLargeURLEqualFold(v string) predicate.Track
- func ImgLargeURLGT(v string) predicate.Track
- func ImgLargeURLGTE(v string) predicate.Track
- func ImgLargeURLHasPrefix(v string) predicate.Track
- func ImgLargeURLHasSuffix(v string) predicate.Track
- func ImgLargeURLIn(vs ...string) predicate.Track
- func ImgLargeURLIsNil() predicate.Track
- func ImgLargeURLLT(v string) predicate.Track
- func ImgLargeURLLTE(v string) predicate.Track
- func ImgLargeURLNEQ(v string) predicate.Track
- func ImgLargeURLNotIn(vs ...string) predicate.Track
- func ImgLargeURLNotNil() predicate.Track
- func ImgMediumURL(v string) predicate.Track
- func ImgMediumURLContains(v string) predicate.Track
- func ImgMediumURLContainsFold(v string) predicate.Track
- func ImgMediumURLEQ(v string) predicate.Track
- func ImgMediumURLEqualFold(v string) predicate.Track
- func ImgMediumURLGT(v string) predicate.Track
- func ImgMediumURLGTE(v string) predicate.Track
- func ImgMediumURLHasPrefix(v string) predicate.Track
- func ImgMediumURLHasSuffix(v string) predicate.Track
- func ImgMediumURLIn(vs ...string) predicate.Track
- func ImgMediumURLIsNil() predicate.Track
- func ImgMediumURLLT(v string) predicate.Track
- func ImgMediumURLLTE(v string) predicate.Track
- func ImgMediumURLNEQ(v string) predicate.Track
- func ImgMediumURLNotIn(vs ...string) predicate.Track
- func ImgMediumURLNotNil() predicate.Track
- func ImgSmallURL(v string) predicate.Track
- func ImgSmallURLContains(v string) predicate.Track
- func ImgSmallURLContainsFold(v string) predicate.Track
- func ImgSmallURLEQ(v string) predicate.Track
- func ImgSmallURLEqualFold(v string) predicate.Track
- func ImgSmallURLGT(v string) predicate.Track
- func ImgSmallURLGTE(v string) predicate.Track
- func ImgSmallURLHasPrefix(v string) predicate.Track
- func ImgSmallURLHasSuffix(v string) predicate.Track
- func ImgSmallURLIn(vs ...string) predicate.Track
- func ImgSmallURLIsNil() predicate.Track
- func ImgSmallURLLT(v string) predicate.Track
- func ImgSmallURLLTE(v string) predicate.Track
- func ImgSmallURLNEQ(v string) predicate.Track
- func ImgSmallURLNotIn(vs ...string) predicate.Track
- func ImgSmallURLNotNil() predicate.Track
- func Name(v string) predicate.Track
- func NameContains(v string) predicate.Track
- func NameContainsFold(v string) predicate.Track
- func NameEQ(v string) predicate.Track
- func NameEqualFold(v string) predicate.Track
- func NameGT(v string) predicate.Track
- func NameGTE(v string) predicate.Track
- func NameHasPrefix(v string) predicate.Track
- func NameHasSuffix(v string) predicate.Track
- func NameIn(vs ...string) predicate.Track
- func NameLT(v string) predicate.Track
- func NameLTE(v string) predicate.Track
- func NameNEQ(v string) predicate.Track
- func NameNotIn(vs ...string) predicate.Track
- func Not(p predicate.Track) predicate.Track
- func Or(predicates ...predicate.Track) predicate.Track
- func Popularity(v int) predicate.Track
- func PopularityEQ(v int) predicate.Track
- func PopularityGT(v int) predicate.Track
- func PopularityGTE(v int) predicate.Track
- func PopularityIn(vs ...int) predicate.Track
- func PopularityLT(v int) predicate.Track
- func PopularityLTE(v int) predicate.Track
- func PopularityNEQ(v int) predicate.Track
- func PopularityNotIn(vs ...int) predicate.Track
- func PreviewURL(v string) predicate.Track
- func PreviewURLContains(v string) predicate.Track
- func PreviewURLContainsFold(v string) predicate.Track
- func PreviewURLEQ(v string) predicate.Track
- func PreviewURLEqualFold(v string) predicate.Track
- func PreviewURLGT(v string) predicate.Track
- func PreviewURLGTE(v string) predicate.Track
- func PreviewURLHasPrefix(v string) predicate.Track
- func PreviewURLHasSuffix(v string) predicate.Track
- func PreviewURLIn(vs ...string) predicate.Track
- func PreviewURLIsNil() predicate.Track
- func PreviewURLLT(v string) predicate.Track
- func PreviewURLLTE(v string) predicate.Track
- func PreviewURLNEQ(v string) predicate.Track
- func PreviewURLNotIn(vs ...string) predicate.Track
- func PreviewURLNotNil() predicate.Track
- func ReleaseDate(v time.Time) predicate.Track
- func ReleaseDateEQ(v time.Time) predicate.Track
- func ReleaseDateGT(v time.Time) predicate.Track
- func ReleaseDateGTE(v time.Time) predicate.Track
- func ReleaseDateIn(vs ...time.Time) predicate.Track
- func ReleaseDateLT(v time.Time) predicate.Track
- func ReleaseDateLTE(v time.Time) predicate.Track
- func ReleaseDateNEQ(v time.Time) predicate.Track
- func ReleaseDateNotIn(vs ...time.Time) predicate.Track
- func SpotifyID(v string) predicate.Track
- func SpotifyIDContains(v string) predicate.Track
- func SpotifyIDContainsFold(v string) predicate.Track
- func SpotifyIDEQ(v string) predicate.Track
- func SpotifyIDEqualFold(v string) predicate.Track
- func SpotifyIDGT(v string) predicate.Track
- func SpotifyIDGTE(v string) predicate.Track
- func SpotifyIDHasPrefix(v string) predicate.Track
- func SpotifyIDHasSuffix(v string) predicate.Track
- func SpotifyIDIn(vs ...string) predicate.Track
- func SpotifyIDLT(v string) predicate.Track
- func SpotifyIDLTE(v string) predicate.Track
- func SpotifyIDNEQ(v string) predicate.Track
- func SpotifyIDNotIn(vs ...string) predicate.Track
- func UpdatedAt(v time.Time) predicate.Track
- func UpdatedAtEQ(v time.Time) predicate.Track
- func UpdatedAtGT(v time.Time) predicate.Track
- func UpdatedAtGTE(v time.Time) predicate.Track
- func UpdatedAtIn(vs ...time.Time) predicate.Track
- func UpdatedAtLT(v time.Time) predicate.Track
- func UpdatedAtLTE(v time.Time) predicate.Track
- func UpdatedAtNEQ(v time.Time) predicate.Track
- func UpdatedAtNotIn(vs ...time.Time) predicate.Track
- func ValidColumn(column string) bool
- type OrderOption
- func ByArtist(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDurationMs(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImgLargeURL(opts ...sql.OrderTermOption) OrderOption
- func ByImgMediumURL(opts ...sql.OrderTermOption) OrderOption
- func ByImgSmallURL(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 ByPopularity(opts ...sql.OrderTermOption) OrderOption
- func ByPreviewURL(opts ...sql.OrderTermOption) OrderOption
- func ByReleaseDate(opts ...sql.OrderTermOption) OrderOption
- func BySpotifyID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the track type in the database. Label = "track" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldArtist holds the string denoting the artist field in the database. FieldArtist = "artist" // FieldImgSmallURL holds the string denoting the img_small_url field in the database. FieldImgSmallURL = "img_small_url" // FieldImgMediumURL holds the string denoting the img_medium_url field in the database. FieldImgMediumURL = "img_medium_url" // FieldImgLargeURL holds the string denoting the img_large_url field in the database. FieldImgLargeURL = "img_large_url" // FieldReleaseDate holds the string denoting the release_date field in the database. FieldReleaseDate = "release_date" // FieldSpotifyID holds the string denoting the spotify_id field in the database. FieldSpotifyID = "spotify_id" // FieldDurationMs holds the string denoting the duration_ms field in the database. FieldDurationMs = "duration_ms" // FieldPreviewURL holds the string denoting the preview_url field in the database. FieldPreviewURL = "preview_url" // FieldPopularity holds the string denoting the popularity field in the database. FieldPopularity = "popularity" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgePlaylists holds the string denoting the playlists edge name in mutations. EdgePlaylists = "playlists" // Table holds the table name of the track in the database. Table = "tracks" // PlaylistsTable is the table that holds the playlists relation/edge. The primary key declared below. PlaylistsTable = "playlist_tracks" // PlaylistsInverseTable is the table name for the Playlist entity. // It exists in this package in order to avoid circular dependency with the "playlist" package. PlaylistsInverseTable = "playlists" )
Variables ¶
var ( // DurationMsValidator is a validator for the "duration_ms" field. It is called by the builders before save. DurationMsValidator func(int) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldArtist, FieldImgSmallURL, FieldImgMediumURL, FieldImgLargeURL, FieldReleaseDate, FieldSpotifyID, FieldDurationMs, FieldPreviewURL, FieldPopularity, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for track fields.
var ( // PlaylistsPrimaryKey and PlaylistsColumn2 are the table columns denoting the // primary key for the playlists relation (M2M). PlaylistsPrimaryKey = []string{"playlist_id", "track_id"} )
Functions ¶
func Artist ¶
Artist applies equality check predicate on the "artist" field. It's identical to ArtistEQ.
func ArtistContains ¶
ArtistContains applies the Contains predicate on the "artist" field.
func ArtistContainsFold ¶
ArtistContainsFold applies the ContainsFold predicate on the "artist" field.
func ArtistEqualFold ¶
ArtistEqualFold applies the EqualFold predicate on the "artist" field.
func ArtistHasPrefix ¶
ArtistHasPrefix applies the HasPrefix predicate on the "artist" field.
func ArtistHasSuffix ¶
ArtistHasSuffix applies the HasSuffix predicate on the "artist" field.
func ArtistNotIn ¶
ArtistNotIn applies the NotIn predicate on the "artist" 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DurationMs ¶
DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.
func DurationMsEQ ¶
DurationMsEQ applies the EQ predicate on the "duration_ms" field.
func DurationMsGT ¶
DurationMsGT applies the GT predicate on the "duration_ms" field.
func DurationMsGTE ¶
DurationMsGTE applies the GTE predicate on the "duration_ms" field.
func DurationMsIn ¶
DurationMsIn applies the In predicate on the "duration_ms" field.
func DurationMsLT ¶
DurationMsLT applies the LT predicate on the "duration_ms" field.
func DurationMsLTE ¶
DurationMsLTE applies the LTE predicate on the "duration_ms" field.
func DurationMsNEQ ¶
DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.
func DurationMsNotIn ¶
DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.
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 ImgLargeURL ¶
ImgLargeURL applies equality check predicate on the "img_large_url" field. It's identical to ImgLargeURLEQ.
func ImgLargeURLContains ¶
ImgLargeURLContains applies the Contains predicate on the "img_large_url" field.
func ImgLargeURLContainsFold ¶
ImgLargeURLContainsFold applies the ContainsFold predicate on the "img_large_url" field.
func ImgLargeURLEQ ¶
ImgLargeURLEQ applies the EQ predicate on the "img_large_url" field.
func ImgLargeURLEqualFold ¶
ImgLargeURLEqualFold applies the EqualFold predicate on the "img_large_url" field.
func ImgLargeURLGT ¶
ImgLargeURLGT applies the GT predicate on the "img_large_url" field.
func ImgLargeURLGTE ¶
ImgLargeURLGTE applies the GTE predicate on the "img_large_url" field.
func ImgLargeURLHasPrefix ¶
ImgLargeURLHasPrefix applies the HasPrefix predicate on the "img_large_url" field.
func ImgLargeURLHasSuffix ¶
ImgLargeURLHasSuffix applies the HasSuffix predicate on the "img_large_url" field.
func ImgLargeURLIn ¶
ImgLargeURLIn applies the In predicate on the "img_large_url" field.
func ImgLargeURLIsNil ¶
ImgLargeURLIsNil applies the IsNil predicate on the "img_large_url" field.
func ImgLargeURLLT ¶
ImgLargeURLLT applies the LT predicate on the "img_large_url" field.
func ImgLargeURLLTE ¶
ImgLargeURLLTE applies the LTE predicate on the "img_large_url" field.
func ImgLargeURLNEQ ¶
ImgLargeURLNEQ applies the NEQ predicate on the "img_large_url" field.
func ImgLargeURLNotIn ¶
ImgLargeURLNotIn applies the NotIn predicate on the "img_large_url" field.
func ImgLargeURLNotNil ¶
ImgLargeURLNotNil applies the NotNil predicate on the "img_large_url" field.
func ImgMediumURL ¶
ImgMediumURL applies equality check predicate on the "img_medium_url" field. It's identical to ImgMediumURLEQ.
func ImgMediumURLContains ¶
ImgMediumURLContains applies the Contains predicate on the "img_medium_url" field.
func ImgMediumURLContainsFold ¶
ImgMediumURLContainsFold applies the ContainsFold predicate on the "img_medium_url" field.
func ImgMediumURLEQ ¶
ImgMediumURLEQ applies the EQ predicate on the "img_medium_url" field.
func ImgMediumURLEqualFold ¶
ImgMediumURLEqualFold applies the EqualFold predicate on the "img_medium_url" field.
func ImgMediumURLGT ¶
ImgMediumURLGT applies the GT predicate on the "img_medium_url" field.
func ImgMediumURLGTE ¶
ImgMediumURLGTE applies the GTE predicate on the "img_medium_url" field.
func ImgMediumURLHasPrefix ¶
ImgMediumURLHasPrefix applies the HasPrefix predicate on the "img_medium_url" field.
func ImgMediumURLHasSuffix ¶
ImgMediumURLHasSuffix applies the HasSuffix predicate on the "img_medium_url" field.
func ImgMediumURLIn ¶
ImgMediumURLIn applies the In predicate on the "img_medium_url" field.
func ImgMediumURLIsNil ¶
ImgMediumURLIsNil applies the IsNil predicate on the "img_medium_url" field.
func ImgMediumURLLT ¶
ImgMediumURLLT applies the LT predicate on the "img_medium_url" field.
func ImgMediumURLLTE ¶
ImgMediumURLLTE applies the LTE predicate on the "img_medium_url" field.
func ImgMediumURLNEQ ¶
ImgMediumURLNEQ applies the NEQ predicate on the "img_medium_url" field.
func ImgMediumURLNotIn ¶
ImgMediumURLNotIn applies the NotIn predicate on the "img_medium_url" field.
func ImgMediumURLNotNil ¶
ImgMediumURLNotNil applies the NotNil predicate on the "img_medium_url" field.
func ImgSmallURL ¶
ImgSmallURL applies equality check predicate on the "img_small_url" field. It's identical to ImgSmallURLEQ.
func ImgSmallURLContains ¶
ImgSmallURLContains applies the Contains predicate on the "img_small_url" field.
func ImgSmallURLContainsFold ¶
ImgSmallURLContainsFold applies the ContainsFold predicate on the "img_small_url" field.
func ImgSmallURLEQ ¶
ImgSmallURLEQ applies the EQ predicate on the "img_small_url" field.
func ImgSmallURLEqualFold ¶
ImgSmallURLEqualFold applies the EqualFold predicate on the "img_small_url" field.
func ImgSmallURLGT ¶
ImgSmallURLGT applies the GT predicate on the "img_small_url" field.
func ImgSmallURLGTE ¶
ImgSmallURLGTE applies the GTE predicate on the "img_small_url" field.
func ImgSmallURLHasPrefix ¶
ImgSmallURLHasPrefix applies the HasPrefix predicate on the "img_small_url" field.
func ImgSmallURLHasSuffix ¶
ImgSmallURLHasSuffix applies the HasSuffix predicate on the "img_small_url" field.
func ImgSmallURLIn ¶
ImgSmallURLIn applies the In predicate on the "img_small_url" field.
func ImgSmallURLIsNil ¶
ImgSmallURLIsNil applies the IsNil predicate on the "img_small_url" field.
func ImgSmallURLLT ¶
ImgSmallURLLT applies the LT predicate on the "img_small_url" field.
func ImgSmallURLLTE ¶
ImgSmallURLLTE applies the LTE predicate on the "img_small_url" field.
func ImgSmallURLNEQ ¶
ImgSmallURLNEQ applies the NEQ predicate on the "img_small_url" field.
func ImgSmallURLNotIn ¶
ImgSmallURLNotIn applies the NotIn predicate on the "img_small_url" field.
func ImgSmallURLNotNil ¶
ImgSmallURLNotNil applies the NotNil predicate on the "img_small_url" 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 Popularity ¶
Popularity applies equality check predicate on the "popularity" field. It's identical to PopularityEQ.
func PopularityEQ ¶
PopularityEQ applies the EQ predicate on the "popularity" field.
func PopularityGT ¶
PopularityGT applies the GT predicate on the "popularity" field.
func PopularityGTE ¶
PopularityGTE applies the GTE predicate on the "popularity" field.
func PopularityIn ¶
PopularityIn applies the In predicate on the "popularity" field.
func PopularityLT ¶
PopularityLT applies the LT predicate on the "popularity" field.
func PopularityLTE ¶
PopularityLTE applies the LTE predicate on the "popularity" field.
func PopularityNEQ ¶
PopularityNEQ applies the NEQ predicate on the "popularity" field.
func PopularityNotIn ¶
PopularityNotIn applies the NotIn predicate on the "popularity" field.
func PreviewURL ¶
PreviewURL applies equality check predicate on the "preview_url" field. It's identical to PreviewURLEQ.
func PreviewURLContains ¶
PreviewURLContains applies the Contains predicate on the "preview_url" field.
func PreviewURLContainsFold ¶
PreviewURLContainsFold applies the ContainsFold predicate on the "preview_url" field.
func PreviewURLEQ ¶
PreviewURLEQ applies the EQ predicate on the "preview_url" field.
func PreviewURLEqualFold ¶
PreviewURLEqualFold applies the EqualFold predicate on the "preview_url" field.
func PreviewURLGT ¶
PreviewURLGT applies the GT predicate on the "preview_url" field.
func PreviewURLGTE ¶
PreviewURLGTE applies the GTE predicate on the "preview_url" field.
func PreviewURLHasPrefix ¶
PreviewURLHasPrefix applies the HasPrefix predicate on the "preview_url" field.
func PreviewURLHasSuffix ¶
PreviewURLHasSuffix applies the HasSuffix predicate on the "preview_url" field.
func PreviewURLIn ¶
PreviewURLIn applies the In predicate on the "preview_url" field.
func PreviewURLIsNil ¶
PreviewURLIsNil applies the IsNil predicate on the "preview_url" field.
func PreviewURLLT ¶
PreviewURLLT applies the LT predicate on the "preview_url" field.
func PreviewURLLTE ¶
PreviewURLLTE applies the LTE predicate on the "preview_url" field.
func PreviewURLNEQ ¶
PreviewURLNEQ applies the NEQ predicate on the "preview_url" field.
func PreviewURLNotIn ¶
PreviewURLNotIn applies the NotIn predicate on the "preview_url" field.
func PreviewURLNotNil ¶
PreviewURLNotNil applies the NotNil predicate on the "preview_url" field.
func ReleaseDate ¶
ReleaseDate applies equality check predicate on the "release_date" field. It's identical to ReleaseDateEQ.
func ReleaseDateEQ ¶
ReleaseDateEQ applies the EQ predicate on the "release_date" field.
func ReleaseDateGT ¶
ReleaseDateGT applies the GT predicate on the "release_date" field.
func ReleaseDateGTE ¶
ReleaseDateGTE applies the GTE predicate on the "release_date" field.
func ReleaseDateIn ¶
ReleaseDateIn applies the In predicate on the "release_date" field.
func ReleaseDateLT ¶
ReleaseDateLT applies the LT predicate on the "release_date" field.
func ReleaseDateLTE ¶
ReleaseDateLTE applies the LTE predicate on the "release_date" field.
func ReleaseDateNEQ ¶
ReleaseDateNEQ applies the NEQ predicate on the "release_date" field.
func ReleaseDateNotIn ¶
ReleaseDateNotIn applies the NotIn predicate on the "release_date" field.
func SpotifyID ¶
SpotifyID applies equality check predicate on the "spotify_id" field. It's identical to SpotifyIDEQ.
func SpotifyIDContains ¶
SpotifyIDContains applies the Contains predicate on the "spotify_id" field.
func SpotifyIDContainsFold ¶
SpotifyIDContainsFold applies the ContainsFold predicate on the "spotify_id" field.
func SpotifyIDEQ ¶
SpotifyIDEQ applies the EQ predicate on the "spotify_id" field.
func SpotifyIDEqualFold ¶
SpotifyIDEqualFold applies the EqualFold predicate on the "spotify_id" field.
func SpotifyIDGT ¶
SpotifyIDGT applies the GT predicate on the "spotify_id" field.
func SpotifyIDGTE ¶
SpotifyIDGTE applies the GTE predicate on the "spotify_id" field.
func SpotifyIDHasPrefix ¶
SpotifyIDHasPrefix applies the HasPrefix predicate on the "spotify_id" field.
func SpotifyIDHasSuffix ¶
SpotifyIDHasSuffix applies the HasSuffix predicate on the "spotify_id" field.
func SpotifyIDIn ¶
SpotifyIDIn applies the In predicate on the "spotify_id" field.
func SpotifyIDLT ¶
SpotifyIDLT applies the LT predicate on the "spotify_id" field.
func SpotifyIDLTE ¶
SpotifyIDLTE applies the LTE predicate on the "spotify_id" field.
func SpotifyIDNEQ ¶
SpotifyIDNEQ applies the NEQ predicate on the "spotify_id" field.
func SpotifyIDNotIn ¶
SpotifyIDNotIn applies the NotIn predicate on the "spotify_id" 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Track queries.
func ByArtist ¶
func ByArtist(opts ...sql.OrderTermOption) OrderOption
ByArtist orders the results by the artist field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDurationMs ¶
func ByDurationMs(opts ...sql.OrderTermOption) OrderOption
ByDurationMs orders the results by the duration_ms field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImgLargeURL ¶
func ByImgLargeURL(opts ...sql.OrderTermOption) OrderOption
ByImgLargeURL orders the results by the img_large_url field.
func ByImgMediumURL ¶
func ByImgMediumURL(opts ...sql.OrderTermOption) OrderOption
ByImgMediumURL orders the results by the img_medium_url field.
func ByImgSmallURL ¶
func ByImgSmallURL(opts ...sql.OrderTermOption) OrderOption
ByImgSmallURL orders the results by the img_small_url 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 ByPopularity ¶
func ByPopularity(opts ...sql.OrderTermOption) OrderOption
ByPopularity orders the results by the popularity field.
func ByPreviewURL ¶
func ByPreviewURL(opts ...sql.OrderTermOption) OrderOption
ByPreviewURL orders the results by the preview_url field.
func ByReleaseDate ¶
func ByReleaseDate(opts ...sql.OrderTermOption) OrderOption
ByReleaseDate orders the results by the release_date field.
func BySpotifyID ¶
func BySpotifyID(opts ...sql.OrderTermOption) OrderOption
BySpotifyID orders the results by the spotify_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.