track

package
v0.0.0-...-2d98496 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for track fields.

View Source
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 And

func And(predicates ...predicate.Track) predicate.Track

And groups predicates with the AND operator between them.

func Artist

func Artist(v string) predicate.Track

Artist applies equality check predicate on the "artist" field. It's identical to ArtistEQ.

func ArtistContains

func ArtistContains(v string) predicate.Track

ArtistContains applies the Contains predicate on the "artist" field.

func ArtistContainsFold

func ArtistContainsFold(v string) predicate.Track

ArtistContainsFold applies the ContainsFold predicate on the "artist" field.

func ArtistEQ

func ArtistEQ(v string) predicate.Track

ArtistEQ applies the EQ predicate on the "artist" field.

func ArtistEqualFold

func ArtistEqualFold(v string) predicate.Track

ArtistEqualFold applies the EqualFold predicate on the "artist" field.

func ArtistGT

func ArtistGT(v string) predicate.Track

ArtistGT applies the GT predicate on the "artist" field.

func ArtistGTE

func ArtistGTE(v string) predicate.Track

ArtistGTE applies the GTE predicate on the "artist" field.

func ArtistHasPrefix

func ArtistHasPrefix(v string) predicate.Track

ArtistHasPrefix applies the HasPrefix predicate on the "artist" field.

func ArtistHasSuffix

func ArtistHasSuffix(v string) predicate.Track

ArtistHasSuffix applies the HasSuffix predicate on the "artist" field.

func ArtistIn

func ArtistIn(vs ...string) predicate.Track

ArtistIn applies the In predicate on the "artist" field.

func ArtistLT

func ArtistLT(v string) predicate.Track

ArtistLT applies the LT predicate on the "artist" field.

func ArtistLTE

func ArtistLTE(v string) predicate.Track

ArtistLTE applies the LTE predicate on the "artist" field.

func ArtistNEQ

func ArtistNEQ(v string) predicate.Track

ArtistNEQ applies the NEQ predicate on the "artist" field.

func ArtistNotIn

func ArtistNotIn(vs ...string) predicate.Track

ArtistNotIn applies the NotIn predicate on the "artist" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Track

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Track

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Track

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Track

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Track

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Track

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Track

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Track

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Track

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Track

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Track

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Track

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Track

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Track

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Track

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Track

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Track

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Track

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Track

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Track

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DurationMs

func DurationMs(v int) predicate.Track

DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.

func DurationMsEQ

func DurationMsEQ(v int) predicate.Track

DurationMsEQ applies the EQ predicate on the "duration_ms" field.

func DurationMsGT

func DurationMsGT(v int) predicate.Track

DurationMsGT applies the GT predicate on the "duration_ms" field.

func DurationMsGTE

func DurationMsGTE(v int) predicate.Track

DurationMsGTE applies the GTE predicate on the "duration_ms" field.

func DurationMsIn

func DurationMsIn(vs ...int) predicate.Track

DurationMsIn applies the In predicate on the "duration_ms" field.

func DurationMsLT

func DurationMsLT(v int) predicate.Track

DurationMsLT applies the LT predicate on the "duration_ms" field.

func DurationMsLTE

func DurationMsLTE(v int) predicate.Track

DurationMsLTE applies the LTE predicate on the "duration_ms" field.

func DurationMsNEQ

func DurationMsNEQ(v int) predicate.Track

DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.

func DurationMsNotIn

func DurationMsNotIn(vs ...int) predicate.Track

DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.

func HasPlaylists

func HasPlaylists() predicate.Track

HasPlaylists applies the HasEdge predicate on the "playlists" edge.

func HasPlaylistsWith

func HasPlaylistsWith(preds ...predicate.Playlist) predicate.Track

HasPlaylistsWith applies the HasEdge predicate on the "playlists" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Track

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Track

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Track

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Track

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Track

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Track

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Track

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Track

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Track

IDNotIn applies the NotIn predicate on the ID field.

func ImgLargeURL

func ImgLargeURL(v string) predicate.Track

ImgLargeURL applies equality check predicate on the "img_large_url" field. It's identical to ImgLargeURLEQ.

func ImgLargeURLContains

func ImgLargeURLContains(v string) predicate.Track

ImgLargeURLContains applies the Contains predicate on the "img_large_url" field.

func ImgLargeURLContainsFold

func ImgLargeURLContainsFold(v string) predicate.Track

ImgLargeURLContainsFold applies the ContainsFold predicate on the "img_large_url" field.

func ImgLargeURLEQ

func ImgLargeURLEQ(v string) predicate.Track

ImgLargeURLEQ applies the EQ predicate on the "img_large_url" field.

func ImgLargeURLEqualFold

func ImgLargeURLEqualFold(v string) predicate.Track

ImgLargeURLEqualFold applies the EqualFold predicate on the "img_large_url" field.

func ImgLargeURLGT

func ImgLargeURLGT(v string) predicate.Track

ImgLargeURLGT applies the GT predicate on the "img_large_url" field.

func ImgLargeURLGTE

func ImgLargeURLGTE(v string) predicate.Track

ImgLargeURLGTE applies the GTE predicate on the "img_large_url" field.

func ImgLargeURLHasPrefix

func ImgLargeURLHasPrefix(v string) predicate.Track

ImgLargeURLHasPrefix applies the HasPrefix predicate on the "img_large_url" field.

func ImgLargeURLHasSuffix

func ImgLargeURLHasSuffix(v string) predicate.Track

ImgLargeURLHasSuffix applies the HasSuffix predicate on the "img_large_url" field.

func ImgLargeURLIn

func ImgLargeURLIn(vs ...string) predicate.Track

ImgLargeURLIn applies the In predicate on the "img_large_url" field.

func ImgLargeURLIsNil

func ImgLargeURLIsNil() predicate.Track

ImgLargeURLIsNil applies the IsNil predicate on the "img_large_url" field.

func ImgLargeURLLT

func ImgLargeURLLT(v string) predicate.Track

ImgLargeURLLT applies the LT predicate on the "img_large_url" field.

func ImgLargeURLLTE

func ImgLargeURLLTE(v string) predicate.Track

ImgLargeURLLTE applies the LTE predicate on the "img_large_url" field.

func ImgLargeURLNEQ

func ImgLargeURLNEQ(v string) predicate.Track

ImgLargeURLNEQ applies the NEQ predicate on the "img_large_url" field.

func ImgLargeURLNotIn

func ImgLargeURLNotIn(vs ...string) predicate.Track

ImgLargeURLNotIn applies the NotIn predicate on the "img_large_url" field.

func ImgLargeURLNotNil

func ImgLargeURLNotNil() predicate.Track

ImgLargeURLNotNil applies the NotNil predicate on the "img_large_url" field.

func ImgMediumURL

func ImgMediumURL(v string) predicate.Track

ImgMediumURL applies equality check predicate on the "img_medium_url" field. It's identical to ImgMediumURLEQ.

func ImgMediumURLContains

func ImgMediumURLContains(v string) predicate.Track

ImgMediumURLContains applies the Contains predicate on the "img_medium_url" field.

func ImgMediumURLContainsFold

func ImgMediumURLContainsFold(v string) predicate.Track

ImgMediumURLContainsFold applies the ContainsFold predicate on the "img_medium_url" field.

func ImgMediumURLEQ

func ImgMediumURLEQ(v string) predicate.Track

ImgMediumURLEQ applies the EQ predicate on the "img_medium_url" field.

func ImgMediumURLEqualFold

func ImgMediumURLEqualFold(v string) predicate.Track

ImgMediumURLEqualFold applies the EqualFold predicate on the "img_medium_url" field.

func ImgMediumURLGT

func ImgMediumURLGT(v string) predicate.Track

ImgMediumURLGT applies the GT predicate on the "img_medium_url" field.

func ImgMediumURLGTE

func ImgMediumURLGTE(v string) predicate.Track

ImgMediumURLGTE applies the GTE predicate on the "img_medium_url" field.

func ImgMediumURLHasPrefix

func ImgMediumURLHasPrefix(v string) predicate.Track

ImgMediumURLHasPrefix applies the HasPrefix predicate on the "img_medium_url" field.

func ImgMediumURLHasSuffix

func ImgMediumURLHasSuffix(v string) predicate.Track

ImgMediumURLHasSuffix applies the HasSuffix predicate on the "img_medium_url" field.

func ImgMediumURLIn

func ImgMediumURLIn(vs ...string) predicate.Track

ImgMediumURLIn applies the In predicate on the "img_medium_url" field.

func ImgMediumURLIsNil

func ImgMediumURLIsNil() predicate.Track

ImgMediumURLIsNil applies the IsNil predicate on the "img_medium_url" field.

func ImgMediumURLLT

func ImgMediumURLLT(v string) predicate.Track

ImgMediumURLLT applies the LT predicate on the "img_medium_url" field.

func ImgMediumURLLTE

func ImgMediumURLLTE(v string) predicate.Track

ImgMediumURLLTE applies the LTE predicate on the "img_medium_url" field.

func ImgMediumURLNEQ

func ImgMediumURLNEQ(v string) predicate.Track

ImgMediumURLNEQ applies the NEQ predicate on the "img_medium_url" field.

func ImgMediumURLNotIn

func ImgMediumURLNotIn(vs ...string) predicate.Track

ImgMediumURLNotIn applies the NotIn predicate on the "img_medium_url" field.

func ImgMediumURLNotNil

func ImgMediumURLNotNil() predicate.Track

ImgMediumURLNotNil applies the NotNil predicate on the "img_medium_url" field.

func ImgSmallURL

func ImgSmallURL(v string) predicate.Track

ImgSmallURL applies equality check predicate on the "img_small_url" field. It's identical to ImgSmallURLEQ.

func ImgSmallURLContains

func ImgSmallURLContains(v string) predicate.Track

ImgSmallURLContains applies the Contains predicate on the "img_small_url" field.

func ImgSmallURLContainsFold

func ImgSmallURLContainsFold(v string) predicate.Track

ImgSmallURLContainsFold applies the ContainsFold predicate on the "img_small_url" field.

func ImgSmallURLEQ

func ImgSmallURLEQ(v string) predicate.Track

ImgSmallURLEQ applies the EQ predicate on the "img_small_url" field.

func ImgSmallURLEqualFold

func ImgSmallURLEqualFold(v string) predicate.Track

ImgSmallURLEqualFold applies the EqualFold predicate on the "img_small_url" field.

func ImgSmallURLGT

func ImgSmallURLGT(v string) predicate.Track

ImgSmallURLGT applies the GT predicate on the "img_small_url" field.

func ImgSmallURLGTE

func ImgSmallURLGTE(v string) predicate.Track

ImgSmallURLGTE applies the GTE predicate on the "img_small_url" field.

func ImgSmallURLHasPrefix

func ImgSmallURLHasPrefix(v string) predicate.Track

ImgSmallURLHasPrefix applies the HasPrefix predicate on the "img_small_url" field.

func ImgSmallURLHasSuffix

func ImgSmallURLHasSuffix(v string) predicate.Track

ImgSmallURLHasSuffix applies the HasSuffix predicate on the "img_small_url" field.

func ImgSmallURLIn

func ImgSmallURLIn(vs ...string) predicate.Track

ImgSmallURLIn applies the In predicate on the "img_small_url" field.

func ImgSmallURLIsNil

func ImgSmallURLIsNil() predicate.Track

ImgSmallURLIsNil applies the IsNil predicate on the "img_small_url" field.

func ImgSmallURLLT

func ImgSmallURLLT(v string) predicate.Track

ImgSmallURLLT applies the LT predicate on the "img_small_url" field.

func ImgSmallURLLTE

func ImgSmallURLLTE(v string) predicate.Track

ImgSmallURLLTE applies the LTE predicate on the "img_small_url" field.

func ImgSmallURLNEQ

func ImgSmallURLNEQ(v string) predicate.Track

ImgSmallURLNEQ applies the NEQ predicate on the "img_small_url" field.

func ImgSmallURLNotIn

func ImgSmallURLNotIn(vs ...string) predicate.Track

ImgSmallURLNotIn applies the NotIn predicate on the "img_small_url" field.

func ImgSmallURLNotNil

func ImgSmallURLNotNil() predicate.Track

ImgSmallURLNotNil applies the NotNil predicate on the "img_small_url" field.

func Name

func Name(v string) predicate.Track

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Track

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Track

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Track

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Track

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Track

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Track

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Track

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Track

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Track

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Track

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Track

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Track

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Track

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Track) predicate.Track

Or groups predicates with the OR operator between them.

func Popularity

func Popularity(v int) predicate.Track

Popularity applies equality check predicate on the "popularity" field. It's identical to PopularityEQ.

func PopularityEQ

func PopularityEQ(v int) predicate.Track

PopularityEQ applies the EQ predicate on the "popularity" field.

func PopularityGT

func PopularityGT(v int) predicate.Track

PopularityGT applies the GT predicate on the "popularity" field.

func PopularityGTE

func PopularityGTE(v int) predicate.Track

PopularityGTE applies the GTE predicate on the "popularity" field.

func PopularityIn

func PopularityIn(vs ...int) predicate.Track

PopularityIn applies the In predicate on the "popularity" field.

func PopularityLT

func PopularityLT(v int) predicate.Track

PopularityLT applies the LT predicate on the "popularity" field.

func PopularityLTE

func PopularityLTE(v int) predicate.Track

PopularityLTE applies the LTE predicate on the "popularity" field.

func PopularityNEQ

func PopularityNEQ(v int) predicate.Track

PopularityNEQ applies the NEQ predicate on the "popularity" field.

func PopularityNotIn

func PopularityNotIn(vs ...int) predicate.Track

PopularityNotIn applies the NotIn predicate on the "popularity" field.

func PreviewURL

func PreviewURL(v string) predicate.Track

PreviewURL applies equality check predicate on the "preview_url" field. It's identical to PreviewURLEQ.

func PreviewURLContains

func PreviewURLContains(v string) predicate.Track

PreviewURLContains applies the Contains predicate on the "preview_url" field.

func PreviewURLContainsFold

func PreviewURLContainsFold(v string) predicate.Track

PreviewURLContainsFold applies the ContainsFold predicate on the "preview_url" field.

func PreviewURLEQ

func PreviewURLEQ(v string) predicate.Track

PreviewURLEQ applies the EQ predicate on the "preview_url" field.

func PreviewURLEqualFold

func PreviewURLEqualFold(v string) predicate.Track

PreviewURLEqualFold applies the EqualFold predicate on the "preview_url" field.

func PreviewURLGT

func PreviewURLGT(v string) predicate.Track

PreviewURLGT applies the GT predicate on the "preview_url" field.

func PreviewURLGTE

func PreviewURLGTE(v string) predicate.Track

PreviewURLGTE applies the GTE predicate on the "preview_url" field.

func PreviewURLHasPrefix

func PreviewURLHasPrefix(v string) predicate.Track

PreviewURLHasPrefix applies the HasPrefix predicate on the "preview_url" field.

func PreviewURLHasSuffix

func PreviewURLHasSuffix(v string) predicate.Track

PreviewURLHasSuffix applies the HasSuffix predicate on the "preview_url" field.

func PreviewURLIn

func PreviewURLIn(vs ...string) predicate.Track

PreviewURLIn applies the In predicate on the "preview_url" field.

func PreviewURLIsNil

func PreviewURLIsNil() predicate.Track

PreviewURLIsNil applies the IsNil predicate on the "preview_url" field.

func PreviewURLLT

func PreviewURLLT(v string) predicate.Track

PreviewURLLT applies the LT predicate on the "preview_url" field.

func PreviewURLLTE

func PreviewURLLTE(v string) predicate.Track

PreviewURLLTE applies the LTE predicate on the "preview_url" field.

func PreviewURLNEQ

func PreviewURLNEQ(v string) predicate.Track

PreviewURLNEQ applies the NEQ predicate on the "preview_url" field.

func PreviewURLNotIn

func PreviewURLNotIn(vs ...string) predicate.Track

PreviewURLNotIn applies the NotIn predicate on the "preview_url" field.

func PreviewURLNotNil

func PreviewURLNotNil() predicate.Track

PreviewURLNotNil applies the NotNil predicate on the "preview_url" field.

func ReleaseDate

func ReleaseDate(v time.Time) predicate.Track

ReleaseDate applies equality check predicate on the "release_date" field. It's identical to ReleaseDateEQ.

func ReleaseDateEQ

func ReleaseDateEQ(v time.Time) predicate.Track

ReleaseDateEQ applies the EQ predicate on the "release_date" field.

func ReleaseDateGT

func ReleaseDateGT(v time.Time) predicate.Track

ReleaseDateGT applies the GT predicate on the "release_date" field.

func ReleaseDateGTE

func ReleaseDateGTE(v time.Time) predicate.Track

ReleaseDateGTE applies the GTE predicate on the "release_date" field.

func ReleaseDateIn

func ReleaseDateIn(vs ...time.Time) predicate.Track

ReleaseDateIn applies the In predicate on the "release_date" field.

func ReleaseDateLT

func ReleaseDateLT(v time.Time) predicate.Track

ReleaseDateLT applies the LT predicate on the "release_date" field.

func ReleaseDateLTE

func ReleaseDateLTE(v time.Time) predicate.Track

ReleaseDateLTE applies the LTE predicate on the "release_date" field.

func ReleaseDateNEQ

func ReleaseDateNEQ(v time.Time) predicate.Track

ReleaseDateNEQ applies the NEQ predicate on the "release_date" field.

func ReleaseDateNotIn

func ReleaseDateNotIn(vs ...time.Time) predicate.Track

ReleaseDateNotIn applies the NotIn predicate on the "release_date" field.

func SpotifyID

func SpotifyID(v string) predicate.Track

SpotifyID applies equality check predicate on the "spotify_id" field. It's identical to SpotifyIDEQ.

func SpotifyIDContains

func SpotifyIDContains(v string) predicate.Track

SpotifyIDContains applies the Contains predicate on the "spotify_id" field.

func SpotifyIDContainsFold

func SpotifyIDContainsFold(v string) predicate.Track

SpotifyIDContainsFold applies the ContainsFold predicate on the "spotify_id" field.

func SpotifyIDEQ

func SpotifyIDEQ(v string) predicate.Track

SpotifyIDEQ applies the EQ predicate on the "spotify_id" field.

func SpotifyIDEqualFold

func SpotifyIDEqualFold(v string) predicate.Track

SpotifyIDEqualFold applies the EqualFold predicate on the "spotify_id" field.

func SpotifyIDGT

func SpotifyIDGT(v string) predicate.Track

SpotifyIDGT applies the GT predicate on the "spotify_id" field.

func SpotifyIDGTE

func SpotifyIDGTE(v string) predicate.Track

SpotifyIDGTE applies the GTE predicate on the "spotify_id" field.

func SpotifyIDHasPrefix

func SpotifyIDHasPrefix(v string) predicate.Track

SpotifyIDHasPrefix applies the HasPrefix predicate on the "spotify_id" field.

func SpotifyIDHasSuffix

func SpotifyIDHasSuffix(v string) predicate.Track

SpotifyIDHasSuffix applies the HasSuffix predicate on the "spotify_id" field.

func SpotifyIDIn

func SpotifyIDIn(vs ...string) predicate.Track

SpotifyIDIn applies the In predicate on the "spotify_id" field.

func SpotifyIDLT

func SpotifyIDLT(v string) predicate.Track

SpotifyIDLT applies the LT predicate on the "spotify_id" field.

func SpotifyIDLTE

func SpotifyIDLTE(v string) predicate.Track

SpotifyIDLTE applies the LTE predicate on the "spotify_id" field.

func SpotifyIDNEQ

func SpotifyIDNEQ(v string) predicate.Track

SpotifyIDNEQ applies the NEQ predicate on the "spotify_id" field.

func SpotifyIDNotIn

func SpotifyIDNotIn(vs ...string) predicate.Track

SpotifyIDNotIn applies the NotIn predicate on the "spotify_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Track

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Track

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Track

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Track

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Track

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Track

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Track

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Track

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Track

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL