Documentation ¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Song
- type SongClient
- func (c *SongClient) Create() *SongCreate
- func (c *SongClient) Delete() *SongDelete
- func (c *SongClient) DeleteOne(s *Song) *SongDeleteOne
- func (c *SongClient) DeleteOneID(id int64) *SongDeleteOne
- func (c *SongClient) Get(ctx context.Context, id int64) (*Song, error)
- func (c *SongClient) GetX(ctx context.Context, id int64) *Song
- func (c *SongClient) Hooks() []Hook
- func (c *SongClient) Query() *SongQuery
- func (c *SongClient) QueryTags(s *Song) *TagQuery
- func (c *SongClient) Update() *SongUpdate
- func (c *SongClient) UpdateOne(s *Song) *SongUpdateOne
- func (c *SongClient) UpdateOneID(id int64) *SongUpdateOne
- func (c *SongClient) Use(hooks ...Hook)
- type SongCreate
- func (sc *SongCreate) AddTagIDs(ids ...int64) *SongCreate
- func (sc *SongCreate) AddTags(t ...*Tag) *SongCreate
- func (sc *SongCreate) Mutation() *SongMutation
- func (sc *SongCreate) Save(ctx context.Context) (*Song, error)
- func (sc *SongCreate) SaveX(ctx context.Context) *Song
- func (sc *SongCreate) SetAlbum(s string) *SongCreate
- func (sc *SongCreate) SetAlbumArtist(s string) *SongCreate
- func (sc *SongCreate) SetArtists(s []string) *SongCreate
- func (sc *SongCreate) SetArtistsSort(s string) *SongCreate
- func (sc *SongCreate) SetBeatsPerMinute(u uint32) *SongCreate
- func (sc *SongCreate) SetComment(s string) *SongCreate
- func (sc *SongCreate) SetComposers(s string) *SongCreate
- func (sc *SongCreate) SetConductor(s string) *SongCreate
- func (sc *SongCreate) SetCopyright(s string) *SongCreate
- func (sc *SongCreate) SetCreatedDate(t time.Time) *SongCreate
- func (sc *SongCreate) SetDateTagged(t time.Time) *SongCreate
- func (sc *SongCreate) SetDescription(s string) *SongCreate
- func (sc *SongCreate) SetDiskNumber(u uint32) *SongCreate
- func (sc *SongCreate) SetDuration(u uint32) *SongCreate
- func (sc *SongCreate) SetFirstAlbumArtist(s string) *SongCreate
- func (sc *SongCreate) SetFirstAlbumArtistSort(s string) *SongCreate
- func (sc *SongCreate) SetFirstArtist(s string) *SongCreate
- func (sc *SongCreate) SetFirstArtistSort(s string) *SongCreate
- func (sc *SongCreate) SetFirstComposer(s string) *SongCreate
- func (sc *SongCreate) SetFirstComposerSort(s string) *SongCreate
- func (sc *SongCreate) SetGenre(s string) *SongCreate
- func (sc *SongCreate) SetGrouping(s string) *SongCreate
- func (sc *SongCreate) SetHash(s string) *SongCreate
- func (sc *SongCreate) SetInitialKey(s string) *SongCreate
- func (sc *SongCreate) SetIsrc(s string) *SongCreate
- func (sc *SongCreate) SetLyrics(s string) *SongCreate
- func (sc *SongCreate) SetMimeType(s string) *SongCreate
- func (sc *SongCreate) SetModifiedDate(t time.Time) *SongCreate
- func (sc *SongCreate) SetMusicBrainzArtistID(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzDiscID(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseArtistID(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseCountry(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseGroupID(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseID(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseStatus(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzReleaseType(s string) *SongCreate
- func (sc *SongCreate) SetMusicBrainzTrackID(s string) *SongCreate
- func (sc *SongCreate) SetMusicIPID(s string) *SongCreate
- func (sc *SongCreate) SetNillableAlbum(s *string) *SongCreate
- func (sc *SongCreate) SetNillableAlbumArtist(s *string) *SongCreate
- func (sc *SongCreate) SetNillableArtistsSort(s *string) *SongCreate
- func (sc *SongCreate) SetNillableBeatsPerMinute(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableComment(s *string) *SongCreate
- func (sc *SongCreate) SetNillableComposers(s *string) *SongCreate
- func (sc *SongCreate) SetNillableConductor(s *string) *SongCreate
- func (sc *SongCreate) SetNillableCopyright(s *string) *SongCreate
- func (sc *SongCreate) SetNillableCreatedDate(t *time.Time) *SongCreate
- func (sc *SongCreate) SetNillableDateTagged(t *time.Time) *SongCreate
- func (sc *SongCreate) SetNillableDescription(s *string) *SongCreate
- func (sc *SongCreate) SetNillableDiskNumber(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableDuration(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableFirstAlbumArtist(s *string) *SongCreate
- func (sc *SongCreate) SetNillableFirstAlbumArtistSort(s *string) *SongCreate
- func (sc *SongCreate) SetNillableFirstArtist(s *string) *SongCreate
- func (sc *SongCreate) SetNillableFirstArtistSort(s *string) *SongCreate
- func (sc *SongCreate) SetNillableFirstComposer(s *string) *SongCreate
- func (sc *SongCreate) SetNillableFirstComposerSort(s *string) *SongCreate
- func (sc *SongCreate) SetNillableGenre(s *string) *SongCreate
- func (sc *SongCreate) SetNillableGrouping(s *string) *SongCreate
- func (sc *SongCreate) SetNillableInitialKey(s *string) *SongCreate
- func (sc *SongCreate) SetNillableIsrc(s *string) *SongCreate
- func (sc *SongCreate) SetNillableLyrics(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMimeType(s *string) *SongCreate
- func (sc *SongCreate) SetNillableModifiedDate(t *time.Time) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzArtistID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzDiscID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseArtistID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseCountry(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseGroupID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseStatus(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzReleaseType(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicBrainzTrackID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableMusicIPID(s *string) *SongCreate
- func (sc *SongCreate) SetNillableOfDiskNumber(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableOfTrackNumber(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillablePlayCount(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillablePublisher(s *string) *SongCreate
- func (sc *SongCreate) SetNillableRemixedBy(s *string) *SongCreate
- func (sc *SongCreate) SetNillableReplayGainAlbumGain(f *float64) *SongCreate
- func (sc *SongCreate) SetNillableReplayGainAlbumPeak(f *float64) *SongCreate
- func (sc *SongCreate) SetNillableReplayGainTrackGain(f *float64) *SongCreate
- func (sc *SongCreate) SetNillableReplayGainTrackPeak(f *float64) *SongCreate
- func (sc *SongCreate) SetNillableSkippedCount(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableSubtitle(s *string) *SongCreate
- func (sc *SongCreate) SetNillableTitle(s *string) *SongCreate
- func (sc *SongCreate) SetNillableTitleSort(s *string) *SongCreate
- func (sc *SongCreate) SetNillableTrackNumber(u *uint32) *SongCreate
- func (sc *SongCreate) SetNillableYear(u *uint32) *SongCreate
- func (sc *SongCreate) SetOfDiskNumber(u uint32) *SongCreate
- func (sc *SongCreate) SetOfTrackNumber(u uint32) *SongCreate
- func (sc *SongCreate) SetPath(s string) *SongCreate
- func (sc *SongCreate) SetPlayCount(u uint32) *SongCreate
- func (sc *SongCreate) SetPublisher(s string) *SongCreate
- func (sc *SongCreate) SetRemixedBy(s string) *SongCreate
- func (sc *SongCreate) SetReplayGainAlbumGain(f float64) *SongCreate
- func (sc *SongCreate) SetReplayGainAlbumPeak(f float64) *SongCreate
- func (sc *SongCreate) SetReplayGainTrackGain(f float64) *SongCreate
- func (sc *SongCreate) SetReplayGainTrackPeak(f float64) *SongCreate
- func (sc *SongCreate) SetSkippedCount(u uint32) *SongCreate
- func (sc *SongCreate) SetSubtitle(s string) *SongCreate
- func (sc *SongCreate) SetTitle(s string) *SongCreate
- func (sc *SongCreate) SetTitleSort(s string) *SongCreate
- func (sc *SongCreate) SetTrackNumber(u uint32) *SongCreate
- func (sc *SongCreate) SetYear(u uint32) *SongCreate
- type SongDelete
- type SongDeleteOne
- type SongEdges
- type SongGroupBy
- func (sgb *SongGroupBy) Aggregate(fns ...AggregateFunc) *SongGroupBy
- func (sgb *SongGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sgb *SongGroupBy) BoolX(ctx context.Context) bool
- func (sgb *SongGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sgb *SongGroupBy) BoolsX(ctx context.Context) []bool
- func (sgb *SongGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sgb *SongGroupBy) Float64X(ctx context.Context) float64
- func (sgb *SongGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sgb *SongGroupBy) Float64sX(ctx context.Context) []float64
- func (sgb *SongGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sgb *SongGroupBy) IntX(ctx context.Context) int
- func (sgb *SongGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sgb *SongGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SongGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sgb *SongGroupBy) ScanX(ctx context.Context, v interface{})
- func (sgb *SongGroupBy) String(ctx context.Context) (_ string, err error)
- func (sgb *SongGroupBy) StringX(ctx context.Context) string
- func (sgb *SongGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sgb *SongGroupBy) StringsX(ctx context.Context) []string
- type SongMutation
- func (m *SongMutation) AddBeatsPerMinute(u uint32)
- func (m *SongMutation) AddDiskNumber(u uint32)
- func (m *SongMutation) AddDuration(u uint32)
- func (m *SongMutation) AddField(name string, value ent.Value) error
- func (m *SongMutation) AddOfDiskNumber(u uint32)
- func (m *SongMutation) AddOfTrackNumber(u uint32)
- func (m *SongMutation) AddPlayCount(u uint32)
- func (m *SongMutation) AddReplayGainAlbumGain(f float64)
- func (m *SongMutation) AddReplayGainAlbumPeak(f float64)
- func (m *SongMutation) AddReplayGainTrackGain(f float64)
- func (m *SongMutation) AddReplayGainTrackPeak(f float64)
- func (m *SongMutation) AddSkippedCount(u uint32)
- func (m *SongMutation) AddTagIDs(ids ...int64)
- func (m *SongMutation) AddTrackNumber(u uint32)
- func (m *SongMutation) AddYear(u uint32)
- func (m *SongMutation) AddedBeatsPerMinute() (r uint32, exists bool)
- func (m *SongMutation) AddedDiskNumber() (r uint32, exists bool)
- func (m *SongMutation) AddedDuration() (r uint32, exists bool)
- func (m *SongMutation) AddedEdges() []string
- func (m *SongMutation) AddedField(name string) (ent.Value, bool)
- func (m *SongMutation) AddedFields() []string
- func (m *SongMutation) AddedIDs(name string) []ent.Value
- func (m *SongMutation) AddedOfDiskNumber() (r uint32, exists bool)
- func (m *SongMutation) AddedOfTrackNumber() (r uint32, exists bool)
- func (m *SongMutation) AddedPlayCount() (r uint32, exists bool)
- func (m *SongMutation) AddedReplayGainAlbumGain() (r float64, exists bool)
- func (m *SongMutation) AddedReplayGainAlbumPeak() (r float64, exists bool)
- func (m *SongMutation) AddedReplayGainTrackGain() (r float64, exists bool)
- func (m *SongMutation) AddedReplayGainTrackPeak() (r float64, exists bool)
- func (m *SongMutation) AddedSkippedCount() (r uint32, exists bool)
- func (m *SongMutation) AddedTrackNumber() (r uint32, exists bool)
- func (m *SongMutation) AddedYear() (r uint32, exists bool)
- func (m *SongMutation) Album() (r string, exists bool)
- func (m *SongMutation) AlbumArtist() (r string, exists bool)
- func (m *SongMutation) AlbumArtistCleared() bool
- func (m *SongMutation) AlbumCleared() bool
- func (m *SongMutation) Artists() (r []string, exists bool)
- func (m *SongMutation) ArtistsCleared() bool
- func (m *SongMutation) ArtistsSort() (r string, exists bool)
- func (m *SongMutation) ArtistsSortCleared() bool
- func (m *SongMutation) BeatsPerMinute() (r uint32, exists bool)
- func (m *SongMutation) BeatsPerMinuteCleared() bool
- func (m *SongMutation) ClearAlbum()
- func (m *SongMutation) ClearAlbumArtist()
- func (m *SongMutation) ClearArtists()
- func (m *SongMutation) ClearArtistsSort()
- func (m *SongMutation) ClearBeatsPerMinute()
- func (m *SongMutation) ClearComment()
- func (m *SongMutation) ClearComposers()
- func (m *SongMutation) ClearConductor()
- func (m *SongMutation) ClearCopyright()
- func (m *SongMutation) ClearCreatedDate()
- func (m *SongMutation) ClearDateTagged()
- func (m *SongMutation) ClearDescription()
- func (m *SongMutation) ClearDiskNumber()
- func (m *SongMutation) ClearDuration()
- func (m *SongMutation) ClearEdge(name string) error
- func (m *SongMutation) ClearField(name string) error
- func (m *SongMutation) ClearFirstAlbumArtist()
- func (m *SongMutation) ClearFirstAlbumArtistSort()
- func (m *SongMutation) ClearFirstArtist()
- func (m *SongMutation) ClearFirstArtistSort()
- func (m *SongMutation) ClearFirstComposer()
- func (m *SongMutation) ClearFirstComposerSort()
- func (m *SongMutation) ClearGenre()
- func (m *SongMutation) ClearGrouping()
- func (m *SongMutation) ClearInitialKey()
- func (m *SongMutation) ClearIsrc()
- func (m *SongMutation) ClearLyrics()
- func (m *SongMutation) ClearMimeType()
- func (m *SongMutation) ClearModifiedDate()
- func (m *SongMutation) ClearMusicBrainzArtistID()
- func (m *SongMutation) ClearMusicBrainzDiscID()
- func (m *SongMutation) ClearMusicBrainzReleaseArtistID()
- func (m *SongMutation) ClearMusicBrainzReleaseCountry()
- func (m *SongMutation) ClearMusicBrainzReleaseGroupID()
- func (m *SongMutation) ClearMusicBrainzReleaseID()
- func (m *SongMutation) ClearMusicBrainzReleaseStatus()
- func (m *SongMutation) ClearMusicBrainzReleaseType()
- func (m *SongMutation) ClearMusicBrainzTrackID()
- func (m *SongMutation) ClearMusicIPID()
- func (m *SongMutation) ClearOfDiskNumber()
- func (m *SongMutation) ClearOfTrackNumber()
- func (m *SongMutation) ClearPublisher()
- func (m *SongMutation) ClearRemixedBy()
- func (m *SongMutation) ClearReplayGainAlbumGain()
- func (m *SongMutation) ClearReplayGainAlbumPeak()
- func (m *SongMutation) ClearReplayGainTrackGain()
- func (m *SongMutation) ClearReplayGainTrackPeak()
- func (m *SongMutation) ClearSubtitle()
- func (m *SongMutation) ClearTitle()
- func (m *SongMutation) ClearTitleSort()
- func (m *SongMutation) ClearTrackNumber()
- func (m *SongMutation) ClearYear()
- func (m *SongMutation) ClearedEdges() []string
- func (m *SongMutation) ClearedFields() []string
- func (m SongMutation) Client() *Client
- func (m *SongMutation) Comment() (r string, exists bool)
- func (m *SongMutation) CommentCleared() bool
- func (m *SongMutation) Composers() (r string, exists bool)
- func (m *SongMutation) ComposersCleared() bool
- func (m *SongMutation) Conductor() (r string, exists bool)
- func (m *SongMutation) ConductorCleared() bool
- func (m *SongMutation) Copyright() (r string, exists bool)
- func (m *SongMutation) CopyrightCleared() bool
- func (m *SongMutation) CreatedDate() (r time.Time, exists bool)
- func (m *SongMutation) CreatedDateCleared() bool
- func (m *SongMutation) DateTagged() (r time.Time, exists bool)
- func (m *SongMutation) DateTaggedCleared() bool
- func (m *SongMutation) Description() (r string, exists bool)
- func (m *SongMutation) DescriptionCleared() bool
- func (m *SongMutation) DiskNumber() (r uint32, exists bool)
- func (m *SongMutation) DiskNumberCleared() bool
- func (m *SongMutation) Duration() (r uint32, exists bool)
- func (m *SongMutation) DurationCleared() bool
- func (m *SongMutation) EdgeCleared(name string) bool
- func (m *SongMutation) Field(name string) (ent.Value, bool)
- func (m *SongMutation) FieldCleared(name string) bool
- func (m *SongMutation) Fields() []string
- func (m *SongMutation) FirstAlbumArtist() (r string, exists bool)
- func (m *SongMutation) FirstAlbumArtistCleared() bool
- func (m *SongMutation) FirstAlbumArtistSort() (r string, exists bool)
- func (m *SongMutation) FirstAlbumArtistSortCleared() bool
- func (m *SongMutation) FirstArtist() (r string, exists bool)
- func (m *SongMutation) FirstArtistCleared() bool
- func (m *SongMutation) FirstArtistSort() (r string, exists bool)
- func (m *SongMutation) FirstArtistSortCleared() bool
- func (m *SongMutation) FirstComposer() (r string, exists bool)
- func (m *SongMutation) FirstComposerCleared() bool
- func (m *SongMutation) FirstComposerSort() (r string, exists bool)
- func (m *SongMutation) FirstComposerSortCleared() bool
- func (m *SongMutation) Genre() (r string, exists bool)
- func (m *SongMutation) GenreCleared() bool
- func (m *SongMutation) Grouping() (r string, exists bool)
- func (m *SongMutation) GroupingCleared() bool
- func (m *SongMutation) Hash() (r string, exists bool)
- func (m *SongMutation) ID() (id int64, exists bool)
- func (m *SongMutation) InitialKey() (r string, exists bool)
- func (m *SongMutation) InitialKeyCleared() bool
- func (m *SongMutation) Isrc() (r string, exists bool)
- func (m *SongMutation) IsrcCleared() bool
- func (m *SongMutation) Lyrics() (r string, exists bool)
- func (m *SongMutation) LyricsCleared() bool
- func (m *SongMutation) MimeType() (r string, exists bool)
- func (m *SongMutation) MimeTypeCleared() bool
- func (m *SongMutation) ModifiedDate() (r time.Time, exists bool)
- func (m *SongMutation) ModifiedDateCleared() bool
- func (m *SongMutation) MusicBrainzArtistID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzArtistIDCleared() bool
- func (m *SongMutation) MusicBrainzDiscID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzDiscIDCleared() bool
- func (m *SongMutation) MusicBrainzReleaseArtistID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseArtistIDCleared() bool
- func (m *SongMutation) MusicBrainzReleaseCountry() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseCountryCleared() bool
- func (m *SongMutation) MusicBrainzReleaseGroupID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseGroupIDCleared() bool
- func (m *SongMutation) MusicBrainzReleaseID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseIDCleared() bool
- func (m *SongMutation) MusicBrainzReleaseStatus() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseStatusCleared() bool
- func (m *SongMutation) MusicBrainzReleaseType() (r string, exists bool)
- func (m *SongMutation) MusicBrainzReleaseTypeCleared() bool
- func (m *SongMutation) MusicBrainzTrackID() (r string, exists bool)
- func (m *SongMutation) MusicBrainzTrackIDCleared() bool
- func (m *SongMutation) MusicIPID() (r string, exists bool)
- func (m *SongMutation) MusicIPIDCleared() bool
- func (m *SongMutation) OfDiskNumber() (r uint32, exists bool)
- func (m *SongMutation) OfDiskNumberCleared() bool
- func (m *SongMutation) OfTrackNumber() (r uint32, exists bool)
- func (m *SongMutation) OfTrackNumberCleared() bool
- func (m *SongMutation) OldAlbum(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldAlbumArtist(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldArtists(ctx context.Context) (v []string, err error)
- func (m *SongMutation) OldArtistsSort(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldBeatsPerMinute(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldComposers(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldConductor(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldCopyright(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldCreatedDate(ctx context.Context) (v time.Time, err error)
- func (m *SongMutation) OldDateTagged(ctx context.Context) (v time.Time, err error)
- func (m *SongMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldDiskNumber(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldDuration(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SongMutation) OldFirstAlbumArtist(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldFirstAlbumArtistSort(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldFirstArtist(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldFirstArtistSort(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldFirstComposer(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldFirstComposerSort(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldGenre(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldGrouping(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldHash(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldInitialKey(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldIsrc(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldLyrics(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMimeType(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldModifiedDate(ctx context.Context) (v time.Time, err error)
- func (m *SongMutation) OldMusicBrainzArtistID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzDiscID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseArtistID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseCountry(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseGroupID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseStatus(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzReleaseType(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicBrainzTrackID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldMusicIPID(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldOfDiskNumber(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldOfTrackNumber(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldPlayCount(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldPublisher(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldRemixedBy(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldReplayGainAlbumGain(ctx context.Context) (v float64, err error)
- func (m *SongMutation) OldReplayGainAlbumPeak(ctx context.Context) (v float64, err error)
- func (m *SongMutation) OldReplayGainTrackGain(ctx context.Context) (v float64, err error)
- func (m *SongMutation) OldReplayGainTrackPeak(ctx context.Context) (v float64, err error)
- func (m *SongMutation) OldSkippedCount(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldSubtitle(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldTitleSort(ctx context.Context) (v string, err error)
- func (m *SongMutation) OldTrackNumber(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) OldYear(ctx context.Context) (v uint32, err error)
- func (m *SongMutation) Op() Op
- func (m *SongMutation) Path() (r string, exists bool)
- func (m *SongMutation) PlayCount() (r uint32, exists bool)
- func (m *SongMutation) Publisher() (r string, exists bool)
- func (m *SongMutation) PublisherCleared() bool
- func (m *SongMutation) RemixedBy() (r string, exists bool)
- func (m *SongMutation) RemixedByCleared() bool
- func (m *SongMutation) RemoveTagIDs(ids ...int64)
- func (m *SongMutation) RemovedEdges() []string
- func (m *SongMutation) RemovedIDs(name string) []ent.Value
- func (m *SongMutation) RemovedTagsIDs() (ids []int64)
- func (m *SongMutation) ReplayGainAlbumGain() (r float64, exists bool)
- func (m *SongMutation) ReplayGainAlbumGainCleared() bool
- func (m *SongMutation) ReplayGainAlbumPeak() (r float64, exists bool)
- func (m *SongMutation) ReplayGainAlbumPeakCleared() bool
- func (m *SongMutation) ReplayGainTrackGain() (r float64, exists bool)
- func (m *SongMutation) ReplayGainTrackGainCleared() bool
- func (m *SongMutation) ReplayGainTrackPeak() (r float64, exists bool)
- func (m *SongMutation) ReplayGainTrackPeakCleared() bool
- func (m *SongMutation) ResetAlbum()
- func (m *SongMutation) ResetAlbumArtist()
- func (m *SongMutation) ResetArtists()
- func (m *SongMutation) ResetArtistsSort()
- func (m *SongMutation) ResetBeatsPerMinute()
- func (m *SongMutation) ResetComment()
- func (m *SongMutation) ResetComposers()
- func (m *SongMutation) ResetConductor()
- func (m *SongMutation) ResetCopyright()
- func (m *SongMutation) ResetCreatedDate()
- func (m *SongMutation) ResetDateTagged()
- func (m *SongMutation) ResetDescription()
- func (m *SongMutation) ResetDiskNumber()
- func (m *SongMutation) ResetDuration()
- func (m *SongMutation) ResetEdge(name string) error
- func (m *SongMutation) ResetField(name string) error
- func (m *SongMutation) ResetFirstAlbumArtist()
- func (m *SongMutation) ResetFirstAlbumArtistSort()
- func (m *SongMutation) ResetFirstArtist()
- func (m *SongMutation) ResetFirstArtistSort()
- func (m *SongMutation) ResetFirstComposer()
- func (m *SongMutation) ResetFirstComposerSort()
- func (m *SongMutation) ResetGenre()
- func (m *SongMutation) ResetGrouping()
- func (m *SongMutation) ResetHash()
- func (m *SongMutation) ResetInitialKey()
- func (m *SongMutation) ResetIsrc()
- func (m *SongMutation) ResetLyrics()
- func (m *SongMutation) ResetMimeType()
- func (m *SongMutation) ResetModifiedDate()
- func (m *SongMutation) ResetMusicBrainzArtistID()
- func (m *SongMutation) ResetMusicBrainzDiscID()
- func (m *SongMutation) ResetMusicBrainzReleaseArtistID()
- func (m *SongMutation) ResetMusicBrainzReleaseCountry()
- func (m *SongMutation) ResetMusicBrainzReleaseGroupID()
- func (m *SongMutation) ResetMusicBrainzReleaseID()
- func (m *SongMutation) ResetMusicBrainzReleaseStatus()
- func (m *SongMutation) ResetMusicBrainzReleaseType()
- func (m *SongMutation) ResetMusicBrainzTrackID()
- func (m *SongMutation) ResetMusicIPID()
- func (m *SongMutation) ResetOfDiskNumber()
- func (m *SongMutation) ResetOfTrackNumber()
- func (m *SongMutation) ResetPath()
- func (m *SongMutation) ResetPlayCount()
- func (m *SongMutation) ResetPublisher()
- func (m *SongMutation) ResetRemixedBy()
- func (m *SongMutation) ResetReplayGainAlbumGain()
- func (m *SongMutation) ResetReplayGainAlbumPeak()
- func (m *SongMutation) ResetReplayGainTrackGain()
- func (m *SongMutation) ResetReplayGainTrackPeak()
- func (m *SongMutation) ResetSkippedCount()
- func (m *SongMutation) ResetSubtitle()
- func (m *SongMutation) ResetTags()
- func (m *SongMutation) ResetTitle()
- func (m *SongMutation) ResetTitleSort()
- func (m *SongMutation) ResetTrackNumber()
- func (m *SongMutation) ResetYear()
- func (m *SongMutation) SetAlbum(s string)
- func (m *SongMutation) SetAlbumArtist(s string)
- func (m *SongMutation) SetArtists(s []string)
- func (m *SongMutation) SetArtistsSort(s string)
- func (m *SongMutation) SetBeatsPerMinute(u uint32)
- func (m *SongMutation) SetComment(s string)
- func (m *SongMutation) SetComposers(s string)
- func (m *SongMutation) SetConductor(s string)
- func (m *SongMutation) SetCopyright(s string)
- func (m *SongMutation) SetCreatedDate(t time.Time)
- func (m *SongMutation) SetDateTagged(t time.Time)
- func (m *SongMutation) SetDescription(s string)
- func (m *SongMutation) SetDiskNumber(u uint32)
- func (m *SongMutation) SetDuration(u uint32)
- func (m *SongMutation) SetField(name string, value ent.Value) error
- func (m *SongMutation) SetFirstAlbumArtist(s string)
- func (m *SongMutation) SetFirstAlbumArtistSort(s string)
- func (m *SongMutation) SetFirstArtist(s string)
- func (m *SongMutation) SetFirstArtistSort(s string)
- func (m *SongMutation) SetFirstComposer(s string)
- func (m *SongMutation) SetFirstComposerSort(s string)
- func (m *SongMutation) SetGenre(s string)
- func (m *SongMutation) SetGrouping(s string)
- func (m *SongMutation) SetHash(s string)
- func (m *SongMutation) SetInitialKey(s string)
- func (m *SongMutation) SetIsrc(s string)
- func (m *SongMutation) SetLyrics(s string)
- func (m *SongMutation) SetMimeType(s string)
- func (m *SongMutation) SetModifiedDate(t time.Time)
- func (m *SongMutation) SetMusicBrainzArtistID(s string)
- func (m *SongMutation) SetMusicBrainzDiscID(s string)
- func (m *SongMutation) SetMusicBrainzReleaseArtistID(s string)
- func (m *SongMutation) SetMusicBrainzReleaseCountry(s string)
- func (m *SongMutation) SetMusicBrainzReleaseGroupID(s string)
- func (m *SongMutation) SetMusicBrainzReleaseID(s string)
- func (m *SongMutation) SetMusicBrainzReleaseStatus(s string)
- func (m *SongMutation) SetMusicBrainzReleaseType(s string)
- func (m *SongMutation) SetMusicBrainzTrackID(s string)
- func (m *SongMutation) SetMusicIPID(s string)
- func (m *SongMutation) SetOfDiskNumber(u uint32)
- func (m *SongMutation) SetOfTrackNumber(u uint32)
- func (m *SongMutation) SetPath(s string)
- func (m *SongMutation) SetPlayCount(u uint32)
- func (m *SongMutation) SetPublisher(s string)
- func (m *SongMutation) SetRemixedBy(s string)
- func (m *SongMutation) SetReplayGainAlbumGain(f float64)
- func (m *SongMutation) SetReplayGainAlbumPeak(f float64)
- func (m *SongMutation) SetReplayGainTrackGain(f float64)
- func (m *SongMutation) SetReplayGainTrackPeak(f float64)
- func (m *SongMutation) SetSkippedCount(u uint32)
- func (m *SongMutation) SetSubtitle(s string)
- func (m *SongMutation) SetTitle(s string)
- func (m *SongMutation) SetTitleSort(s string)
- func (m *SongMutation) SetTrackNumber(u uint32)
- func (m *SongMutation) SetYear(u uint32)
- func (m *SongMutation) SkippedCount() (r uint32, exists bool)
- func (m *SongMutation) Subtitle() (r string, exists bool)
- func (m *SongMutation) SubtitleCleared() bool
- func (m *SongMutation) TagsIDs() (ids []int64)
- func (m *SongMutation) Title() (r string, exists bool)
- func (m *SongMutation) TitleCleared() bool
- func (m *SongMutation) TitleSort() (r string, exists bool)
- func (m *SongMutation) TitleSortCleared() bool
- func (m *SongMutation) TrackNumber() (r uint32, exists bool)
- func (m *SongMutation) TrackNumberCleared() bool
- func (m SongMutation) Tx() (*Tx, error)
- func (m *SongMutation) Type() string
- func (m *SongMutation) Year() (r uint32, exists bool)
- func (m *SongMutation) YearCleared() bool
- type SongQuery
- func (sq *SongQuery) All(ctx context.Context) ([]*Song, error)
- func (sq *SongQuery) AllX(ctx context.Context) []*Song
- func (sq *SongQuery) Clone() *SongQuery
- func (sq *SongQuery) Count(ctx context.Context) (int, error)
- func (sq *SongQuery) CountX(ctx context.Context) int
- func (sq *SongQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SongQuery) ExistX(ctx context.Context) bool
- func (sq *SongQuery) First(ctx context.Context) (*Song, error)
- func (sq *SongQuery) FirstID(ctx context.Context) (id int64, err error)
- func (sq *SongQuery) FirstX(ctx context.Context) *Song
- func (sq *SongQuery) FirstXID(ctx context.Context) int64
- func (sq *SongQuery) GroupBy(field string, fields ...string) *SongGroupBy
- func (sq *SongQuery) IDs(ctx context.Context) ([]int64, error)
- func (sq *SongQuery) IDsX(ctx context.Context) []int64
- func (sq *SongQuery) Limit(limit int) *SongQuery
- func (sq *SongQuery) Offset(offset int) *SongQuery
- func (sq *SongQuery) Only(ctx context.Context) (*Song, error)
- func (sq *SongQuery) OnlyID(ctx context.Context) (id int64, err error)
- func (sq *SongQuery) OnlyIDX(ctx context.Context) int64
- func (sq *SongQuery) OnlyX(ctx context.Context) *Song
- func (sq *SongQuery) Order(o ...OrderFunc) *SongQuery
- func (sq *SongQuery) QueryTags() *TagQuery
- func (sq *SongQuery) Select(field string, fields ...string) *SongSelect
- func (sq *SongQuery) Where(ps ...predicate.Song) *SongQuery
- func (sq *SongQuery) WithTags(opts ...func(*TagQuery)) *SongQuery
- type SongSelect
- func (ss *SongSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ss *SongSelect) BoolX(ctx context.Context) bool
- func (ss *SongSelect) Bools(ctx context.Context) ([]bool, error)
- func (ss *SongSelect) BoolsX(ctx context.Context) []bool
- func (ss *SongSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ss *SongSelect) Float64X(ctx context.Context) float64
- func (ss *SongSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ss *SongSelect) Float64sX(ctx context.Context) []float64
- func (ss *SongSelect) Int(ctx context.Context) (_ int, err error)
- func (ss *SongSelect) IntX(ctx context.Context) int
- func (ss *SongSelect) Ints(ctx context.Context) ([]int, error)
- func (ss *SongSelect) IntsX(ctx context.Context) []int
- func (ss *SongSelect) Scan(ctx context.Context, v interface{}) error
- func (ss *SongSelect) ScanX(ctx context.Context, v interface{})
- func (ss *SongSelect) String(ctx context.Context) (_ string, err error)
- func (ss *SongSelect) StringX(ctx context.Context) string
- func (ss *SongSelect) Strings(ctx context.Context) ([]string, error)
- func (ss *SongSelect) StringsX(ctx context.Context) []string
- type SongUpdate
- func (su *SongUpdate) AddBeatsPerMinute(u uint32) *SongUpdate
- func (su *SongUpdate) AddDiskNumber(u uint32) *SongUpdate
- func (su *SongUpdate) AddDuration(u uint32) *SongUpdate
- func (su *SongUpdate) AddOfDiskNumber(u uint32) *SongUpdate
- func (su *SongUpdate) AddOfTrackNumber(u uint32) *SongUpdate
- func (su *SongUpdate) AddPlayCount(u uint32) *SongUpdate
- func (su *SongUpdate) AddReplayGainAlbumGain(f float64) *SongUpdate
- func (su *SongUpdate) AddReplayGainAlbumPeak(f float64) *SongUpdate
- func (su *SongUpdate) AddReplayGainTrackGain(f float64) *SongUpdate
- func (su *SongUpdate) AddReplayGainTrackPeak(f float64) *SongUpdate
- func (su *SongUpdate) AddSkippedCount(u uint32) *SongUpdate
- func (su *SongUpdate) AddTagIDs(ids ...int64) *SongUpdate
- func (su *SongUpdate) AddTags(t ...*Tag) *SongUpdate
- func (su *SongUpdate) AddTrackNumber(u uint32) *SongUpdate
- func (su *SongUpdate) AddYear(u uint32) *SongUpdate
- func (su *SongUpdate) ClearAlbum() *SongUpdate
- func (su *SongUpdate) ClearAlbumArtist() *SongUpdate
- func (su *SongUpdate) ClearArtists() *SongUpdate
- func (su *SongUpdate) ClearArtistsSort() *SongUpdate
- func (su *SongUpdate) ClearBeatsPerMinute() *SongUpdate
- func (su *SongUpdate) ClearComment() *SongUpdate
- func (su *SongUpdate) ClearComposers() *SongUpdate
- func (su *SongUpdate) ClearConductor() *SongUpdate
- func (su *SongUpdate) ClearCopyright() *SongUpdate
- func (su *SongUpdate) ClearCreatedDate() *SongUpdate
- func (su *SongUpdate) ClearDateTagged() *SongUpdate
- func (su *SongUpdate) ClearDescription() *SongUpdate
- func (su *SongUpdate) ClearDiskNumber() *SongUpdate
- func (su *SongUpdate) ClearDuration() *SongUpdate
- func (su *SongUpdate) ClearFirstAlbumArtist() *SongUpdate
- func (su *SongUpdate) ClearFirstAlbumArtistSort() *SongUpdate
- func (su *SongUpdate) ClearFirstArtist() *SongUpdate
- func (su *SongUpdate) ClearFirstArtistSort() *SongUpdate
- func (su *SongUpdate) ClearFirstComposer() *SongUpdate
- func (su *SongUpdate) ClearFirstComposerSort() *SongUpdate
- func (su *SongUpdate) ClearGenre() *SongUpdate
- func (su *SongUpdate) ClearGrouping() *SongUpdate
- func (su *SongUpdate) ClearInitialKey() *SongUpdate
- func (su *SongUpdate) ClearIsrc() *SongUpdate
- func (su *SongUpdate) ClearLyrics() *SongUpdate
- func (su *SongUpdate) ClearMimeType() *SongUpdate
- func (su *SongUpdate) ClearModifiedDate() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzArtistID() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzDiscID() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseArtistID() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseCountry() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseGroupID() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseID() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseStatus() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzReleaseType() *SongUpdate
- func (su *SongUpdate) ClearMusicBrainzTrackID() *SongUpdate
- func (su *SongUpdate) ClearMusicIPID() *SongUpdate
- func (su *SongUpdate) ClearOfDiskNumber() *SongUpdate
- func (su *SongUpdate) ClearOfTrackNumber() *SongUpdate
- func (su *SongUpdate) ClearPublisher() *SongUpdate
- func (su *SongUpdate) ClearRemixedBy() *SongUpdate
- func (su *SongUpdate) ClearReplayGainAlbumGain() *SongUpdate
- func (su *SongUpdate) ClearReplayGainAlbumPeak() *SongUpdate
- func (su *SongUpdate) ClearReplayGainTrackGain() *SongUpdate
- func (su *SongUpdate) ClearReplayGainTrackPeak() *SongUpdate
- func (su *SongUpdate) ClearSubtitle() *SongUpdate
- func (su *SongUpdate) ClearTitle() *SongUpdate
- func (su *SongUpdate) ClearTitleSort() *SongUpdate
- func (su *SongUpdate) ClearTrackNumber() *SongUpdate
- func (su *SongUpdate) ClearYear() *SongUpdate
- func (su *SongUpdate) Exec(ctx context.Context) error
- func (su *SongUpdate) ExecX(ctx context.Context)
- func (su *SongUpdate) Mutation() *SongMutation
- func (su *SongUpdate) RemoveTagIDs(ids ...int64) *SongUpdate
- func (su *SongUpdate) RemoveTags(t ...*Tag) *SongUpdate
- func (su *SongUpdate) Save(ctx context.Context) (int, error)
- func (su *SongUpdate) SaveX(ctx context.Context) int
- func (su *SongUpdate) SetAlbum(s string) *SongUpdate
- func (su *SongUpdate) SetAlbumArtist(s string) *SongUpdate
- func (su *SongUpdate) SetArtists(s []string) *SongUpdate
- func (su *SongUpdate) SetArtistsSort(s string) *SongUpdate
- func (su *SongUpdate) SetBeatsPerMinute(u uint32) *SongUpdate
- func (su *SongUpdate) SetComment(s string) *SongUpdate
- func (su *SongUpdate) SetComposers(s string) *SongUpdate
- func (su *SongUpdate) SetConductor(s string) *SongUpdate
- func (su *SongUpdate) SetCopyright(s string) *SongUpdate
- func (su *SongUpdate) SetCreatedDate(t time.Time) *SongUpdate
- func (su *SongUpdate) SetDateTagged(t time.Time) *SongUpdate
- func (su *SongUpdate) SetDescription(s string) *SongUpdate
- func (su *SongUpdate) SetDiskNumber(u uint32) *SongUpdate
- func (su *SongUpdate) SetDuration(u uint32) *SongUpdate
- func (su *SongUpdate) SetFirstAlbumArtist(s string) *SongUpdate
- func (su *SongUpdate) SetFirstAlbumArtistSort(s string) *SongUpdate
- func (su *SongUpdate) SetFirstArtist(s string) *SongUpdate
- func (su *SongUpdate) SetFirstArtistSort(s string) *SongUpdate
- func (su *SongUpdate) SetFirstComposer(s string) *SongUpdate
- func (su *SongUpdate) SetFirstComposerSort(s string) *SongUpdate
- func (su *SongUpdate) SetGenre(s string) *SongUpdate
- func (su *SongUpdate) SetGrouping(s string) *SongUpdate
- func (su *SongUpdate) SetHash(s string) *SongUpdate
- func (su *SongUpdate) SetInitialKey(s string) *SongUpdate
- func (su *SongUpdate) SetIsrc(s string) *SongUpdate
- func (su *SongUpdate) SetLyrics(s string) *SongUpdate
- func (su *SongUpdate) SetMimeType(s string) *SongUpdate
- func (su *SongUpdate) SetModifiedDate(t time.Time) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzArtistID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzDiscID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseArtistID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseCountry(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseGroupID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseStatus(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzReleaseType(s string) *SongUpdate
- func (su *SongUpdate) SetMusicBrainzTrackID(s string) *SongUpdate
- func (su *SongUpdate) SetMusicIPID(s string) *SongUpdate
- func (su *SongUpdate) SetNillableAlbum(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableAlbumArtist(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableArtistsSort(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableBeatsPerMinute(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableComment(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableComposers(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableConductor(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableCopyright(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableCreatedDate(t *time.Time) *SongUpdate
- func (su *SongUpdate) SetNillableDateTagged(t *time.Time) *SongUpdate
- func (su *SongUpdate) SetNillableDescription(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableDiskNumber(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableDuration(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableFirstAlbumArtist(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableFirstAlbumArtistSort(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableFirstArtist(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableFirstArtistSort(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableFirstComposer(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableFirstComposerSort(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableGenre(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableGrouping(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableInitialKey(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableIsrc(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableLyrics(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMimeType(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableModifiedDate(t *time.Time) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzArtistID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzDiscID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseArtistID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseCountry(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseGroupID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseStatus(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzReleaseType(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicBrainzTrackID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableMusicIPID(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableOfDiskNumber(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableOfTrackNumber(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillablePlayCount(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillablePublisher(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableRemixedBy(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableReplayGainAlbumGain(f *float64) *SongUpdate
- func (su *SongUpdate) SetNillableReplayGainAlbumPeak(f *float64) *SongUpdate
- func (su *SongUpdate) SetNillableReplayGainTrackGain(f *float64) *SongUpdate
- func (su *SongUpdate) SetNillableReplayGainTrackPeak(f *float64) *SongUpdate
- func (su *SongUpdate) SetNillableSkippedCount(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableSubtitle(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableTitle(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableTitleSort(s *string) *SongUpdate
- func (su *SongUpdate) SetNillableTrackNumber(u *uint32) *SongUpdate
- func (su *SongUpdate) SetNillableYear(u *uint32) *SongUpdate
- func (su *SongUpdate) SetOfDiskNumber(u uint32) *SongUpdate
- func (su *SongUpdate) SetOfTrackNumber(u uint32) *SongUpdate
- func (su *SongUpdate) SetPath(s string) *SongUpdate
- func (su *SongUpdate) SetPlayCount(u uint32) *SongUpdate
- func (su *SongUpdate) SetPublisher(s string) *SongUpdate
- func (su *SongUpdate) SetRemixedBy(s string) *SongUpdate
- func (su *SongUpdate) SetReplayGainAlbumGain(f float64) *SongUpdate
- func (su *SongUpdate) SetReplayGainAlbumPeak(f float64) *SongUpdate
- func (su *SongUpdate) SetReplayGainTrackGain(f float64) *SongUpdate
- func (su *SongUpdate) SetReplayGainTrackPeak(f float64) *SongUpdate
- func (su *SongUpdate) SetSkippedCount(u uint32) *SongUpdate
- func (su *SongUpdate) SetSubtitle(s string) *SongUpdate
- func (su *SongUpdate) SetTitle(s string) *SongUpdate
- func (su *SongUpdate) SetTitleSort(s string) *SongUpdate
- func (su *SongUpdate) SetTrackNumber(u uint32) *SongUpdate
- func (su *SongUpdate) SetYear(u uint32) *SongUpdate
- func (su *SongUpdate) Where(ps ...predicate.Song) *SongUpdate
- type SongUpdateOne
- func (suo *SongUpdateOne) AddBeatsPerMinute(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddDiskNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddDuration(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddOfDiskNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddOfTrackNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddPlayCount(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddReplayGainAlbumGain(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) AddReplayGainAlbumPeak(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) AddReplayGainTrackGain(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) AddReplayGainTrackPeak(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) AddSkippedCount(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddTagIDs(ids ...int64) *SongUpdateOne
- func (suo *SongUpdateOne) AddTags(t ...*Tag) *SongUpdateOne
- func (suo *SongUpdateOne) AddTrackNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) AddYear(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) ClearAlbum() *SongUpdateOne
- func (suo *SongUpdateOne) ClearAlbumArtist() *SongUpdateOne
- func (suo *SongUpdateOne) ClearArtists() *SongUpdateOne
- func (suo *SongUpdateOne) ClearArtistsSort() *SongUpdateOne
- func (suo *SongUpdateOne) ClearBeatsPerMinute() *SongUpdateOne
- func (suo *SongUpdateOne) ClearComment() *SongUpdateOne
- func (suo *SongUpdateOne) ClearComposers() *SongUpdateOne
- func (suo *SongUpdateOne) ClearConductor() *SongUpdateOne
- func (suo *SongUpdateOne) ClearCopyright() *SongUpdateOne
- func (suo *SongUpdateOne) ClearCreatedDate() *SongUpdateOne
- func (suo *SongUpdateOne) ClearDateTagged() *SongUpdateOne
- func (suo *SongUpdateOne) ClearDescription() *SongUpdateOne
- func (suo *SongUpdateOne) ClearDiskNumber() *SongUpdateOne
- func (suo *SongUpdateOne) ClearDuration() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstAlbumArtist() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstAlbumArtistSort() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstArtist() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstArtistSort() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstComposer() *SongUpdateOne
- func (suo *SongUpdateOne) ClearFirstComposerSort() *SongUpdateOne
- func (suo *SongUpdateOne) ClearGenre() *SongUpdateOne
- func (suo *SongUpdateOne) ClearGrouping() *SongUpdateOne
- func (suo *SongUpdateOne) ClearInitialKey() *SongUpdateOne
- func (suo *SongUpdateOne) ClearIsrc() *SongUpdateOne
- func (suo *SongUpdateOne) ClearLyrics() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMimeType() *SongUpdateOne
- func (suo *SongUpdateOne) ClearModifiedDate() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzArtistID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzDiscID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseArtistID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseCountry() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseGroupID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseStatus() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzReleaseType() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicBrainzTrackID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearMusicIPID() *SongUpdateOne
- func (suo *SongUpdateOne) ClearOfDiskNumber() *SongUpdateOne
- func (suo *SongUpdateOne) ClearOfTrackNumber() *SongUpdateOne
- func (suo *SongUpdateOne) ClearPublisher() *SongUpdateOne
- func (suo *SongUpdateOne) ClearRemixedBy() *SongUpdateOne
- func (suo *SongUpdateOne) ClearReplayGainAlbumGain() *SongUpdateOne
- func (suo *SongUpdateOne) ClearReplayGainAlbumPeak() *SongUpdateOne
- func (suo *SongUpdateOne) ClearReplayGainTrackGain() *SongUpdateOne
- func (suo *SongUpdateOne) ClearReplayGainTrackPeak() *SongUpdateOne
- func (suo *SongUpdateOne) ClearSubtitle() *SongUpdateOne
- func (suo *SongUpdateOne) ClearTitle() *SongUpdateOne
- func (suo *SongUpdateOne) ClearTitleSort() *SongUpdateOne
- func (suo *SongUpdateOne) ClearTrackNumber() *SongUpdateOne
- func (suo *SongUpdateOne) ClearYear() *SongUpdateOne
- func (suo *SongUpdateOne) Exec(ctx context.Context) error
- func (suo *SongUpdateOne) ExecX(ctx context.Context)
- func (suo *SongUpdateOne) Mutation() *SongMutation
- func (suo *SongUpdateOne) RemoveTagIDs(ids ...int64) *SongUpdateOne
- func (suo *SongUpdateOne) RemoveTags(t ...*Tag) *SongUpdateOne
- func (suo *SongUpdateOne) Save(ctx context.Context) (*Song, error)
- func (suo *SongUpdateOne) SaveX(ctx context.Context) *Song
- func (suo *SongUpdateOne) SetAlbum(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetAlbumArtist(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetArtists(s []string) *SongUpdateOne
- func (suo *SongUpdateOne) SetArtistsSort(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetBeatsPerMinute(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetComment(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetComposers(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetConductor(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetCopyright(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetCreatedDate(t time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetDateTagged(t time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetDescription(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetDiskNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetDuration(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstAlbumArtist(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstAlbumArtistSort(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstArtist(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstArtistSort(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstComposer(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetFirstComposerSort(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetGenre(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetGrouping(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetHash(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetInitialKey(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetIsrc(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetLyrics(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMimeType(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetModifiedDate(t time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzArtistID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzDiscID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseArtistID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseCountry(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseGroupID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseStatus(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzReleaseType(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicBrainzTrackID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetMusicIPID(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableAlbum(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableAlbumArtist(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableArtistsSort(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableBeatsPerMinute(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableComment(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableComposers(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableConductor(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableCopyright(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableCreatedDate(t *time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableDateTagged(t *time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableDescription(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableDiskNumber(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableDuration(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstAlbumArtist(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstAlbumArtistSort(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstArtist(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstArtistSort(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstComposer(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableFirstComposerSort(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableGenre(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableGrouping(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableInitialKey(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableIsrc(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableLyrics(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMimeType(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableModifiedDate(t *time.Time) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzArtistID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzDiscID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseArtistID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseCountry(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseGroupID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseStatus(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseType(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicBrainzTrackID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableMusicIPID(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableOfDiskNumber(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableOfTrackNumber(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillablePlayCount(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillablePublisher(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableRemixedBy(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableReplayGainAlbumGain(f *float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableReplayGainAlbumPeak(f *float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableReplayGainTrackGain(f *float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableReplayGainTrackPeak(f *float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableSkippedCount(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableSubtitle(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableTitle(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableTitleSort(s *string) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableTrackNumber(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetNillableYear(u *uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetOfDiskNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetOfTrackNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetPath(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetPlayCount(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetPublisher(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetRemixedBy(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetReplayGainAlbumGain(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetReplayGainAlbumPeak(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetReplayGainTrackGain(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetReplayGainTrackPeak(f float64) *SongUpdateOne
- func (suo *SongUpdateOne) SetSkippedCount(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetSubtitle(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetTitle(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetTitleSort(s string) *SongUpdateOne
- func (suo *SongUpdateOne) SetTrackNumber(u uint32) *SongUpdateOne
- func (suo *SongUpdateOne) SetYear(u uint32) *SongUpdateOne
- type Songs
- type Tag
- type TagClient
- func (c *TagClient) Create() *TagCreate
- func (c *TagClient) Delete() *TagDelete
- func (c *TagClient) DeleteOne(t *Tag) *TagDeleteOne
- func (c *TagClient) DeleteOneID(id int64) *TagDeleteOne
- func (c *TagClient) Get(ctx context.Context, id int64) (*Tag, error)
- func (c *TagClient) GetX(ctx context.Context, id int64) *Tag
- func (c *TagClient) Hooks() []Hook
- func (c *TagClient) Query() *TagQuery
- func (c *TagClient) QuerySongs(t *Tag) *SongQuery
- func (c *TagClient) Update() *TagUpdate
- func (c *TagClient) UpdateOne(t *Tag) *TagUpdateOne
- func (c *TagClient) UpdateOneID(id int64) *TagUpdateOne
- func (c *TagClient) Use(hooks ...Hook)
- type TagCreate
- func (tc *TagCreate) AddSongIDs(ids ...int64) *TagCreate
- func (tc *TagCreate) AddSongs(s ...*Song) *TagCreate
- func (tc *TagCreate) Mutation() *TagMutation
- func (tc *TagCreate) Save(ctx context.Context) (*Tag, error)
- func (tc *TagCreate) SaveX(ctx context.Context) *Tag
- func (tc *TagCreate) SetName(s string) *TagCreate
- type TagDelete
- type TagDeleteOne
- type TagEdges
- type TagGroupBy
- func (tgb *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
- func (tgb *TagGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (tgb *TagGroupBy) BoolX(ctx context.Context) bool
- func (tgb *TagGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (tgb *TagGroupBy) BoolsX(ctx context.Context) []bool
- func (tgb *TagGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (tgb *TagGroupBy) Float64X(ctx context.Context) float64
- func (tgb *TagGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (tgb *TagGroupBy) Float64sX(ctx context.Context) []float64
- func (tgb *TagGroupBy) Int(ctx context.Context) (_ int, err error)
- func (tgb *TagGroupBy) IntX(ctx context.Context) int
- func (tgb *TagGroupBy) Ints(ctx context.Context) ([]int, error)
- func (tgb *TagGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TagGroupBy) Scan(ctx context.Context, v interface{}) error
- func (tgb *TagGroupBy) ScanX(ctx context.Context, v interface{})
- func (tgb *TagGroupBy) String(ctx context.Context) (_ string, err error)
- func (tgb *TagGroupBy) StringX(ctx context.Context) string
- func (tgb *TagGroupBy) Strings(ctx context.Context) ([]string, error)
- func (tgb *TagGroupBy) StringsX(ctx context.Context) []string
- type TagMutation
- func (m *TagMutation) AddField(name string, value ent.Value) error
- func (m *TagMutation) AddSongIDs(ids ...int64)
- func (m *TagMutation) AddedEdges() []string
- func (m *TagMutation) AddedField(name string) (ent.Value, bool)
- func (m *TagMutation) AddedFields() []string
- func (m *TagMutation) AddedIDs(name string) []ent.Value
- func (m *TagMutation) ClearEdge(name string) error
- func (m *TagMutation) ClearField(name string) error
- func (m *TagMutation) ClearedEdges() []string
- func (m *TagMutation) ClearedFields() []string
- func (m TagMutation) Client() *Client
- func (m *TagMutation) EdgeCleared(name string) bool
- func (m *TagMutation) Field(name string) (ent.Value, bool)
- func (m *TagMutation) FieldCleared(name string) bool
- func (m *TagMutation) Fields() []string
- func (m *TagMutation) ID() (id int64, exists bool)
- func (m *TagMutation) Name() (r string, exists bool)
- func (m *TagMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
- func (m *TagMutation) Op() Op
- func (m *TagMutation) RemoveSongIDs(ids ...int64)
- func (m *TagMutation) RemovedEdges() []string
- func (m *TagMutation) RemovedIDs(name string) []ent.Value
- func (m *TagMutation) RemovedSongsIDs() (ids []int64)
- func (m *TagMutation) ResetEdge(name string) error
- func (m *TagMutation) ResetField(name string) error
- func (m *TagMutation) ResetName()
- func (m *TagMutation) ResetSongs()
- func (m *TagMutation) SetField(name string, value ent.Value) error
- func (m *TagMutation) SetName(s string)
- func (m *TagMutation) SongsIDs() (ids []int64)
- func (m TagMutation) Tx() (*Tx, error)
- func (m *TagMutation) Type() string
- type TagQuery
- func (tq *TagQuery) All(ctx context.Context) ([]*Tag, error)
- func (tq *TagQuery) AllX(ctx context.Context) []*Tag
- func (tq *TagQuery) Clone() *TagQuery
- func (tq *TagQuery) Count(ctx context.Context) (int, error)
- func (tq *TagQuery) CountX(ctx context.Context) int
- func (tq *TagQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TagQuery) ExistX(ctx context.Context) bool
- func (tq *TagQuery) First(ctx context.Context) (*Tag, error)
- func (tq *TagQuery) FirstID(ctx context.Context) (id int64, err error)
- func (tq *TagQuery) FirstX(ctx context.Context) *Tag
- func (tq *TagQuery) FirstXID(ctx context.Context) int64
- func (tq *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
- func (tq *TagQuery) IDs(ctx context.Context) ([]int64, error)
- func (tq *TagQuery) IDsX(ctx context.Context) []int64
- func (tq *TagQuery) Limit(limit int) *TagQuery
- func (tq *TagQuery) Offset(offset int) *TagQuery
- func (tq *TagQuery) Only(ctx context.Context) (*Tag, error)
- func (tq *TagQuery) OnlyID(ctx context.Context) (id int64, err error)
- func (tq *TagQuery) OnlyIDX(ctx context.Context) int64
- func (tq *TagQuery) OnlyX(ctx context.Context) *Tag
- func (tq *TagQuery) Order(o ...OrderFunc) *TagQuery
- func (tq *TagQuery) QuerySongs() *SongQuery
- func (tq *TagQuery) Select(field string, fields ...string) *TagSelect
- func (tq *TagQuery) Where(ps ...predicate.Tag) *TagQuery
- func (tq *TagQuery) WithSongs(opts ...func(*SongQuery)) *TagQuery
- type TagSelect
- func (ts *TagSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ts *TagSelect) BoolX(ctx context.Context) bool
- func (ts *TagSelect) Bools(ctx context.Context) ([]bool, error)
- func (ts *TagSelect) BoolsX(ctx context.Context) []bool
- func (ts *TagSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ts *TagSelect) Float64X(ctx context.Context) float64
- func (ts *TagSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ts *TagSelect) Float64sX(ctx context.Context) []float64
- func (ts *TagSelect) Int(ctx context.Context) (_ int, err error)
- func (ts *TagSelect) IntX(ctx context.Context) int
- func (ts *TagSelect) Ints(ctx context.Context) ([]int, error)
- func (ts *TagSelect) IntsX(ctx context.Context) []int
- func (ts *TagSelect) Scan(ctx context.Context, v interface{}) error
- func (ts *TagSelect) ScanX(ctx context.Context, v interface{})
- func (ts *TagSelect) String(ctx context.Context) (_ string, err error)
- func (ts *TagSelect) StringX(ctx context.Context) string
- func (ts *TagSelect) Strings(ctx context.Context) ([]string, error)
- func (ts *TagSelect) StringsX(ctx context.Context) []string
- type TagUpdate
- func (tu *TagUpdate) AddSongIDs(ids ...int64) *TagUpdate
- func (tu *TagUpdate) AddSongs(s ...*Song) *TagUpdate
- func (tu *TagUpdate) Exec(ctx context.Context) error
- func (tu *TagUpdate) ExecX(ctx context.Context)
- func (tu *TagUpdate) Mutation() *TagMutation
- func (tu *TagUpdate) RemoveSongIDs(ids ...int64) *TagUpdate
- func (tu *TagUpdate) RemoveSongs(s ...*Song) *TagUpdate
- func (tu *TagUpdate) Save(ctx context.Context) (int, error)
- func (tu *TagUpdate) SaveX(ctx context.Context) int
- func (tu *TagUpdate) SetName(s string) *TagUpdate
- func (tu *TagUpdate) Where(ps ...predicate.Tag) *TagUpdate
- type TagUpdateOne
- func (tuo *TagUpdateOne) AddSongIDs(ids ...int64) *TagUpdateOne
- func (tuo *TagUpdateOne) AddSongs(s ...*Song) *TagUpdateOne
- func (tuo *TagUpdateOne) Exec(ctx context.Context) error
- func (tuo *TagUpdateOne) ExecX(ctx context.Context)
- func (tuo *TagUpdateOne) Mutation() *TagMutation
- func (tuo *TagUpdateOne) RemoveSongIDs(ids ...int64) *TagUpdateOne
- func (tuo *TagUpdateOne) RemoveSongs(s ...*Song) *TagUpdateOne
- func (tuo *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
- func (tuo *TagUpdateOne) SaveX(ctx context.Context) *Tag
- func (tuo *TagUpdateOne) SetName(s string) *TagUpdateOne
- type Tags
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeSong = "Song" TypeTag = "Tag" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validaton error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Song is the client for interacting with the Song builders. Song *SongClient // Tag is the client for interacting with the Tag builders. Tag *TagClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns the Client stored in a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Song. Query(). Count(ctx)
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflict in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollbacker method.
type Song ¶
type Song struct { // ID of the ent. ID int64 `json:"id,omitempty"` // Path holds the value of the "path" field. Path string `json:"path,omitempty"` // Hash holds the value of the "hash" field. Hash string `json:"hash,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // TitleSort holds the value of the "title_sort" field. TitleSort string `json:"title_sort,omitempty"` // Artists holds the value of the "artists" field. Artists []string `json:"artists,omitempty"` // FirstArtist holds the value of the "first_artist" field. FirstArtist string `json:"first_artist,omitempty"` // FirstArtistSort holds the value of the "first_artist_sort" field. FirstArtistSort string `json:"first_artist_sort,omitempty"` // FirstAlbumArtist holds the value of the "first_album_artist" field. FirstAlbumArtist string `json:"first_album_artist,omitempty"` // FirstAlbumArtistSort holds the value of the "first_album_artist_sort" field. FirstAlbumArtistSort string `json:"first_album_artist_sort,omitempty"` // AlbumArtist holds the value of the "album_artist" field. AlbumArtist string `json:"album_artist,omitempty"` // Album holds the value of the "album" field. Album string `json:"album,omitempty"` // Publisher holds the value of the "publisher" field. Publisher string `json:"publisher,omitempty"` // FirstComposer holds the value of the "first_composer" field. FirstComposer string `json:"first_composer,omitempty"` // Composers holds the value of the "composers" field. Composers string `json:"composers,omitempty"` // Conductor holds the value of the "conductor" field. Conductor string `json:"conductor,omitempty"` // Genre holds the value of the "genre" field. Genre string `json:"genre,omitempty"` // Grouping holds the value of the "grouping" field. Grouping string `json:"grouping,omitempty"` // Year holds the value of the "year" field. Year uint32 `json:"year,omitempty"` // TrackNumber holds the value of the "track_number" field. TrackNumber uint32 `json:"track_number,omitempty"` // OfTrackNumber holds the value of the "of_track_number" field. OfTrackNumber uint32 `json:"of_track_number,omitempty"` // DiskNumber holds the value of the "disk_number" field. DiskNumber uint32 `json:"disk_number,omitempty"` // OfDiskNumber holds the value of the "of_disk_number" field. OfDiskNumber uint32 `json:"of_disk_number,omitempty"` // Duration holds the value of the "duration" field. Duration uint32 `json:"duration,omitempty"` // PlayCount holds the value of the "play_count" field. PlayCount uint32 `json:"play_count,omitempty"` // SkippedCount holds the value of the "skipped_count" field. SkippedCount uint32 `json:"skipped_count,omitempty"` // Comment holds the value of the "comment" field. Comment string `json:"comment,omitempty"` // BeatsPerMinute holds the value of the "beats_per_minute" field. BeatsPerMinute uint32 `json:"beats_per_minute,omitempty"` // Copyright holds the value of the "copyright" field. Copyright string `json:"copyright,omitempty"` // DateTagged holds the value of the "date_tagged" field. DateTagged time.Time `json:"date_tagged,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // FirstComposerSort holds the value of the "first_composer_sort" field. FirstComposerSort string `json:"first_composer_sort,omitempty"` // ArtistsSort holds the value of the "artists_sort" field. ArtistsSort string `json:"artists_sort,omitempty"` // Lyrics holds the value of the "lyrics" field. Lyrics string `json:"lyrics,omitempty"` // InitialKey holds the value of the "initial_key" field. InitialKey string `json:"initial_key,omitempty"` // Isrc holds the value of the "isrc" field. Isrc string `json:"isrc,omitempty"` // Subtitle holds the value of the "subtitle" field. Subtitle string `json:"subtitle,omitempty"` // MusicBrainzArtistID holds the value of the "music_brainz_artist_id" field. MusicBrainzArtistID string `json:"music_brainz_artist_id,omitempty"` // MusicBrainzDiscID holds the value of the "music_brainz_disc_id" field. MusicBrainzDiscID string `json:"music_brainz_disc_id,omitempty"` // MusicBrainzReleaseArtistID holds the value of the "music_brainz_release_artist_id" field. MusicBrainzReleaseArtistID string `json:"music_brainz_release_artist_id,omitempty"` // MusicBrainzReleaseCountry holds the value of the "music_brainz_release_country" field. MusicBrainzReleaseCountry string `json:"music_brainz_release_country,omitempty"` // MusicBrainzReleaseGroupID holds the value of the "music_brainz_release_group_id" field. MusicBrainzReleaseGroupID string `json:"music_brainz_release_group_id,omitempty"` // MusicBrainzReleaseID holds the value of the "music_brainz_release_id" field. MusicBrainzReleaseID string `json:"music_brainz_release_id,omitempty"` // MusicBrainzReleaseStatus holds the value of the "music_brainz_release_status" field. MusicBrainzReleaseStatus string `json:"music_brainz_release_status,omitempty"` // MusicBrainzReleaseType holds the value of the "music_brainz_release_type" field. MusicBrainzReleaseType string `json:"music_brainz_release_type,omitempty"` // MusicBrainzTrackID holds the value of the "music_brainz_track_id" field. MusicBrainzTrackID string `json:"music_brainz_track_id,omitempty"` // MusicIPID holds the value of the "music_ip_id" field. MusicIPID string `json:"music_ip_id,omitempty"` // RemixedBy holds the value of the "remixed_by" field. RemixedBy string `json:"remixed_by,omitempty"` // ReplayGainAlbumGain holds the value of the "replay_gain_album_gain" field. ReplayGainAlbumGain float64 `json:"replay_gain_album_gain,omitempty"` // ReplayGainAlbumPeak holds the value of the "replay_gain_album_peak" field. ReplayGainAlbumPeak float64 `json:"replay_gain_album_peak,omitempty"` // ReplayGainTrackGain holds the value of the "replay_gain_track_gain" field. ReplayGainTrackGain float64 `json:"replay_gain_track_gain,omitempty"` // ReplayGainTrackPeak holds the value of the "replay_gain_track_peak" field. ReplayGainTrackPeak float64 `json:"replay_gain_track_peak,omitempty"` // MimeType holds the value of the "mime_type" field. MimeType string `json:"mime_type,omitempty"` // CreatedDate holds the value of the "created_date" field. CreatedDate time.Time `json:"created_date,omitempty"` // ModifiedDate holds the value of the "modified_date" field. ModifiedDate time.Time `json:"modified_date,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SongQuery when eager-loading is set. Edges SongEdges `json:"edges"` // contains filtered or unexported fields }
Song is the model entity for the Song schema.
func (*Song) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Song) Update ¶
func (s *Song) Update() *SongUpdateOne
Update returns a builder for updating this Song. Note that, you need to call Song.Unwrap() before calling this method, if this Song was returned from a transaction, and the transaction was committed or rolled back.
type SongClient ¶
type SongClient struct {
// contains filtered or unexported fields
}
SongClient is a client for the Song schema.
func NewSongClient ¶
func NewSongClient(c config) *SongClient
NewSongClient returns a client for the Song from the given config.
func (*SongClient) Create ¶
func (c *SongClient) Create() *SongCreate
Create returns a create builder for Song.
func (*SongClient) Delete ¶
func (c *SongClient) Delete() *SongDelete
Delete returns a delete builder for Song.
func (*SongClient) DeleteOne ¶
func (c *SongClient) DeleteOne(s *Song) *SongDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SongClient) DeleteOneID ¶
func (c *SongClient) DeleteOneID(id int64) *SongDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SongClient) GetX ¶
func (c *SongClient) GetX(ctx context.Context, id int64) *Song
GetX is like Get, but panics if an error occurs.
func (*SongClient) Query ¶
func (c *SongClient) Query() *SongQuery
Create returns a query builder for Song.
func (*SongClient) QueryTags ¶
func (c *SongClient) QueryTags(s *Song) *TagQuery
QueryTags queries the tags edge of a Song.
func (*SongClient) Update ¶
func (c *SongClient) Update() *SongUpdate
Update returns an update builder for Song.
func (*SongClient) UpdateOne ¶
func (c *SongClient) UpdateOne(s *Song) *SongUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SongClient) UpdateOneID ¶
func (c *SongClient) UpdateOneID(id int64) *SongUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SongClient) Use ¶
func (c *SongClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `song.Hooks(f(g(h())))`.
type SongCreate ¶
type SongCreate struct {
// contains filtered or unexported fields
}
SongCreate is the builder for creating a Song entity.
func (*SongCreate) AddTagIDs ¶
func (sc *SongCreate) AddTagIDs(ids ...int64) *SongCreate
AddTagIDs adds the tags edge to Tag by ids.
func (*SongCreate) AddTags ¶
func (sc *SongCreate) AddTags(t ...*Tag) *SongCreate
AddTags adds the tags edges to Tag.
func (*SongCreate) Mutation ¶
func (sc *SongCreate) Mutation() *SongMutation
Mutation returns the SongMutation object of the builder.
func (*SongCreate) Save ¶
func (sc *SongCreate) Save(ctx context.Context) (*Song, error)
Save creates the Song in the database.
func (*SongCreate) SaveX ¶
func (sc *SongCreate) SaveX(ctx context.Context) *Song
SaveX calls Save and panics if Save returns an error.
func (*SongCreate) SetAlbum ¶
func (sc *SongCreate) SetAlbum(s string) *SongCreate
SetAlbum sets the album field.
func (*SongCreate) SetAlbumArtist ¶
func (sc *SongCreate) SetAlbumArtist(s string) *SongCreate
SetAlbumArtist sets the album_artist field.
func (*SongCreate) SetArtists ¶
func (sc *SongCreate) SetArtists(s []string) *SongCreate
SetArtists sets the artists field.
func (*SongCreate) SetArtistsSort ¶
func (sc *SongCreate) SetArtistsSort(s string) *SongCreate
SetArtistsSort sets the artists_sort field.
func (*SongCreate) SetBeatsPerMinute ¶
func (sc *SongCreate) SetBeatsPerMinute(u uint32) *SongCreate
SetBeatsPerMinute sets the beats_per_minute field.
func (*SongCreate) SetComment ¶
func (sc *SongCreate) SetComment(s string) *SongCreate
SetComment sets the comment field.
func (*SongCreate) SetComposers ¶
func (sc *SongCreate) SetComposers(s string) *SongCreate
SetComposers sets the composers field.
func (*SongCreate) SetConductor ¶
func (sc *SongCreate) SetConductor(s string) *SongCreate
SetConductor sets the conductor field.
func (*SongCreate) SetCopyright ¶
func (sc *SongCreate) SetCopyright(s string) *SongCreate
SetCopyright sets the copyright field.
func (*SongCreate) SetCreatedDate ¶
func (sc *SongCreate) SetCreatedDate(t time.Time) *SongCreate
SetCreatedDate sets the created_date field.
func (*SongCreate) SetDateTagged ¶
func (sc *SongCreate) SetDateTagged(t time.Time) *SongCreate
SetDateTagged sets the date_tagged field.
func (*SongCreate) SetDescription ¶
func (sc *SongCreate) SetDescription(s string) *SongCreate
SetDescription sets the description field.
func (*SongCreate) SetDiskNumber ¶
func (sc *SongCreate) SetDiskNumber(u uint32) *SongCreate
SetDiskNumber sets the disk_number field.
func (*SongCreate) SetDuration ¶
func (sc *SongCreate) SetDuration(u uint32) *SongCreate
SetDuration sets the duration field.
func (*SongCreate) SetFirstAlbumArtist ¶
func (sc *SongCreate) SetFirstAlbumArtist(s string) *SongCreate
SetFirstAlbumArtist sets the first_album_artist field.
func (*SongCreate) SetFirstAlbumArtistSort ¶
func (sc *SongCreate) SetFirstAlbumArtistSort(s string) *SongCreate
SetFirstAlbumArtistSort sets the first_album_artist_sort field.
func (*SongCreate) SetFirstArtist ¶
func (sc *SongCreate) SetFirstArtist(s string) *SongCreate
SetFirstArtist sets the first_artist field.
func (*SongCreate) SetFirstArtistSort ¶
func (sc *SongCreate) SetFirstArtistSort(s string) *SongCreate
SetFirstArtistSort sets the first_artist_sort field.
func (*SongCreate) SetFirstComposer ¶
func (sc *SongCreate) SetFirstComposer(s string) *SongCreate
SetFirstComposer sets the first_composer field.
func (*SongCreate) SetFirstComposerSort ¶
func (sc *SongCreate) SetFirstComposerSort(s string) *SongCreate
SetFirstComposerSort sets the first_composer_sort field.
func (*SongCreate) SetGenre ¶
func (sc *SongCreate) SetGenre(s string) *SongCreate
SetGenre sets the genre field.
func (*SongCreate) SetGrouping ¶
func (sc *SongCreate) SetGrouping(s string) *SongCreate
SetGrouping sets the grouping field.
func (*SongCreate) SetHash ¶
func (sc *SongCreate) SetHash(s string) *SongCreate
SetHash sets the hash field.
func (*SongCreate) SetInitialKey ¶
func (sc *SongCreate) SetInitialKey(s string) *SongCreate
SetInitialKey sets the initial_key field.
func (*SongCreate) SetIsrc ¶
func (sc *SongCreate) SetIsrc(s string) *SongCreate
SetIsrc sets the isrc field.
func (*SongCreate) SetLyrics ¶
func (sc *SongCreate) SetLyrics(s string) *SongCreate
SetLyrics sets the lyrics field.
func (*SongCreate) SetMimeType ¶
func (sc *SongCreate) SetMimeType(s string) *SongCreate
SetMimeType sets the mime_type field.
func (*SongCreate) SetModifiedDate ¶
func (sc *SongCreate) SetModifiedDate(t time.Time) *SongCreate
SetModifiedDate sets the modified_date field.
func (*SongCreate) SetMusicBrainzArtistID ¶
func (sc *SongCreate) SetMusicBrainzArtistID(s string) *SongCreate
SetMusicBrainzArtistID sets the music_brainz_artist_id field.
func (*SongCreate) SetMusicBrainzDiscID ¶
func (sc *SongCreate) SetMusicBrainzDiscID(s string) *SongCreate
SetMusicBrainzDiscID sets the music_brainz_disc_id field.
func (*SongCreate) SetMusicBrainzReleaseArtistID ¶
func (sc *SongCreate) SetMusicBrainzReleaseArtistID(s string) *SongCreate
SetMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field.
func (*SongCreate) SetMusicBrainzReleaseCountry ¶
func (sc *SongCreate) SetMusicBrainzReleaseCountry(s string) *SongCreate
SetMusicBrainzReleaseCountry sets the music_brainz_release_country field.
func (*SongCreate) SetMusicBrainzReleaseGroupID ¶
func (sc *SongCreate) SetMusicBrainzReleaseGroupID(s string) *SongCreate
SetMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field.
func (*SongCreate) SetMusicBrainzReleaseID ¶
func (sc *SongCreate) SetMusicBrainzReleaseID(s string) *SongCreate
SetMusicBrainzReleaseID sets the music_brainz_release_id field.
func (*SongCreate) SetMusicBrainzReleaseStatus ¶
func (sc *SongCreate) SetMusicBrainzReleaseStatus(s string) *SongCreate
SetMusicBrainzReleaseStatus sets the music_brainz_release_status field.
func (*SongCreate) SetMusicBrainzReleaseType ¶
func (sc *SongCreate) SetMusicBrainzReleaseType(s string) *SongCreate
SetMusicBrainzReleaseType sets the music_brainz_release_type field.
func (*SongCreate) SetMusicBrainzTrackID ¶
func (sc *SongCreate) SetMusicBrainzTrackID(s string) *SongCreate
SetMusicBrainzTrackID sets the music_brainz_track_id field.
func (*SongCreate) SetMusicIPID ¶
func (sc *SongCreate) SetMusicIPID(s string) *SongCreate
SetMusicIPID sets the music_ip_id field.
func (*SongCreate) SetNillableAlbum ¶
func (sc *SongCreate) SetNillableAlbum(s *string) *SongCreate
SetNillableAlbum sets the album field if the given value is not nil.
func (*SongCreate) SetNillableAlbumArtist ¶
func (sc *SongCreate) SetNillableAlbumArtist(s *string) *SongCreate
SetNillableAlbumArtist sets the album_artist field if the given value is not nil.
func (*SongCreate) SetNillableArtistsSort ¶
func (sc *SongCreate) SetNillableArtistsSort(s *string) *SongCreate
SetNillableArtistsSort sets the artists_sort field if the given value is not nil.
func (*SongCreate) SetNillableBeatsPerMinute ¶
func (sc *SongCreate) SetNillableBeatsPerMinute(u *uint32) *SongCreate
SetNillableBeatsPerMinute sets the beats_per_minute field if the given value is not nil.
func (*SongCreate) SetNillableComment ¶
func (sc *SongCreate) SetNillableComment(s *string) *SongCreate
SetNillableComment sets the comment field if the given value is not nil.
func (*SongCreate) SetNillableComposers ¶
func (sc *SongCreate) SetNillableComposers(s *string) *SongCreate
SetNillableComposers sets the composers field if the given value is not nil.
func (*SongCreate) SetNillableConductor ¶
func (sc *SongCreate) SetNillableConductor(s *string) *SongCreate
SetNillableConductor sets the conductor field if the given value is not nil.
func (*SongCreate) SetNillableCopyright ¶
func (sc *SongCreate) SetNillableCopyright(s *string) *SongCreate
SetNillableCopyright sets the copyright field if the given value is not nil.
func (*SongCreate) SetNillableCreatedDate ¶
func (sc *SongCreate) SetNillableCreatedDate(t *time.Time) *SongCreate
SetNillableCreatedDate sets the created_date field if the given value is not nil.
func (*SongCreate) SetNillableDateTagged ¶
func (sc *SongCreate) SetNillableDateTagged(t *time.Time) *SongCreate
SetNillableDateTagged sets the date_tagged field if the given value is not nil.
func (*SongCreate) SetNillableDescription ¶
func (sc *SongCreate) SetNillableDescription(s *string) *SongCreate
SetNillableDescription sets the description field if the given value is not nil.
func (*SongCreate) SetNillableDiskNumber ¶
func (sc *SongCreate) SetNillableDiskNumber(u *uint32) *SongCreate
SetNillableDiskNumber sets the disk_number field if the given value is not nil.
func (*SongCreate) SetNillableDuration ¶
func (sc *SongCreate) SetNillableDuration(u *uint32) *SongCreate
SetNillableDuration sets the duration field if the given value is not nil.
func (*SongCreate) SetNillableFirstAlbumArtist ¶
func (sc *SongCreate) SetNillableFirstAlbumArtist(s *string) *SongCreate
SetNillableFirstAlbumArtist sets the first_album_artist field if the given value is not nil.
func (*SongCreate) SetNillableFirstAlbumArtistSort ¶
func (sc *SongCreate) SetNillableFirstAlbumArtistSort(s *string) *SongCreate
SetNillableFirstAlbumArtistSort sets the first_album_artist_sort field if the given value is not nil.
func (*SongCreate) SetNillableFirstArtist ¶
func (sc *SongCreate) SetNillableFirstArtist(s *string) *SongCreate
SetNillableFirstArtist sets the first_artist field if the given value is not nil.
func (*SongCreate) SetNillableFirstArtistSort ¶
func (sc *SongCreate) SetNillableFirstArtistSort(s *string) *SongCreate
SetNillableFirstArtistSort sets the first_artist_sort field if the given value is not nil.
func (*SongCreate) SetNillableFirstComposer ¶
func (sc *SongCreate) SetNillableFirstComposer(s *string) *SongCreate
SetNillableFirstComposer sets the first_composer field if the given value is not nil.
func (*SongCreate) SetNillableFirstComposerSort ¶
func (sc *SongCreate) SetNillableFirstComposerSort(s *string) *SongCreate
SetNillableFirstComposerSort sets the first_composer_sort field if the given value is not nil.
func (*SongCreate) SetNillableGenre ¶
func (sc *SongCreate) SetNillableGenre(s *string) *SongCreate
SetNillableGenre sets the genre field if the given value is not nil.
func (*SongCreate) SetNillableGrouping ¶
func (sc *SongCreate) SetNillableGrouping(s *string) *SongCreate
SetNillableGrouping sets the grouping field if the given value is not nil.
func (*SongCreate) SetNillableInitialKey ¶
func (sc *SongCreate) SetNillableInitialKey(s *string) *SongCreate
SetNillableInitialKey sets the initial_key field if the given value is not nil.
func (*SongCreate) SetNillableIsrc ¶
func (sc *SongCreate) SetNillableIsrc(s *string) *SongCreate
SetNillableIsrc sets the isrc field if the given value is not nil.
func (*SongCreate) SetNillableLyrics ¶
func (sc *SongCreate) SetNillableLyrics(s *string) *SongCreate
SetNillableLyrics sets the lyrics field if the given value is not nil.
func (*SongCreate) SetNillableMimeType ¶
func (sc *SongCreate) SetNillableMimeType(s *string) *SongCreate
SetNillableMimeType sets the mime_type field if the given value is not nil.
func (*SongCreate) SetNillableModifiedDate ¶
func (sc *SongCreate) SetNillableModifiedDate(t *time.Time) *SongCreate
SetNillableModifiedDate sets the modified_date field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzArtistID ¶
func (sc *SongCreate) SetNillableMusicBrainzArtistID(s *string) *SongCreate
SetNillableMusicBrainzArtistID sets the music_brainz_artist_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzDiscID ¶
func (sc *SongCreate) SetNillableMusicBrainzDiscID(s *string) *SongCreate
SetNillableMusicBrainzDiscID sets the music_brainz_disc_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseArtistID ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseArtistID(s *string) *SongCreate
SetNillableMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseCountry ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseCountry(s *string) *SongCreate
SetNillableMusicBrainzReleaseCountry sets the music_brainz_release_country field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseGroupID ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseGroupID(s *string) *SongCreate
SetNillableMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseID ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseID(s *string) *SongCreate
SetNillableMusicBrainzReleaseID sets the music_brainz_release_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseStatus ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseStatus(s *string) *SongCreate
SetNillableMusicBrainzReleaseStatus sets the music_brainz_release_status field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzReleaseType ¶
func (sc *SongCreate) SetNillableMusicBrainzReleaseType(s *string) *SongCreate
SetNillableMusicBrainzReleaseType sets the music_brainz_release_type field if the given value is not nil.
func (*SongCreate) SetNillableMusicBrainzTrackID ¶
func (sc *SongCreate) SetNillableMusicBrainzTrackID(s *string) *SongCreate
SetNillableMusicBrainzTrackID sets the music_brainz_track_id field if the given value is not nil.
func (*SongCreate) SetNillableMusicIPID ¶
func (sc *SongCreate) SetNillableMusicIPID(s *string) *SongCreate
SetNillableMusicIPID sets the music_ip_id field if the given value is not nil.
func (*SongCreate) SetNillableOfDiskNumber ¶
func (sc *SongCreate) SetNillableOfDiskNumber(u *uint32) *SongCreate
SetNillableOfDiskNumber sets the of_disk_number field if the given value is not nil.
func (*SongCreate) SetNillableOfTrackNumber ¶
func (sc *SongCreate) SetNillableOfTrackNumber(u *uint32) *SongCreate
SetNillableOfTrackNumber sets the of_track_number field if the given value is not nil.
func (*SongCreate) SetNillablePlayCount ¶
func (sc *SongCreate) SetNillablePlayCount(u *uint32) *SongCreate
SetNillablePlayCount sets the play_count field if the given value is not nil.
func (*SongCreate) SetNillablePublisher ¶
func (sc *SongCreate) SetNillablePublisher(s *string) *SongCreate
SetNillablePublisher sets the publisher field if the given value is not nil.
func (*SongCreate) SetNillableRemixedBy ¶
func (sc *SongCreate) SetNillableRemixedBy(s *string) *SongCreate
SetNillableRemixedBy sets the remixed_by field if the given value is not nil.
func (*SongCreate) SetNillableReplayGainAlbumGain ¶
func (sc *SongCreate) SetNillableReplayGainAlbumGain(f *float64) *SongCreate
SetNillableReplayGainAlbumGain sets the replay_gain_album_gain field if the given value is not nil.
func (*SongCreate) SetNillableReplayGainAlbumPeak ¶
func (sc *SongCreate) SetNillableReplayGainAlbumPeak(f *float64) *SongCreate
SetNillableReplayGainAlbumPeak sets the replay_gain_album_peak field if the given value is not nil.
func (*SongCreate) SetNillableReplayGainTrackGain ¶
func (sc *SongCreate) SetNillableReplayGainTrackGain(f *float64) *SongCreate
SetNillableReplayGainTrackGain sets the replay_gain_track_gain field if the given value is not nil.
func (*SongCreate) SetNillableReplayGainTrackPeak ¶
func (sc *SongCreate) SetNillableReplayGainTrackPeak(f *float64) *SongCreate
SetNillableReplayGainTrackPeak sets the replay_gain_track_peak field if the given value is not nil.
func (*SongCreate) SetNillableSkippedCount ¶
func (sc *SongCreate) SetNillableSkippedCount(u *uint32) *SongCreate
SetNillableSkippedCount sets the skipped_count field if the given value is not nil.
func (*SongCreate) SetNillableSubtitle ¶
func (sc *SongCreate) SetNillableSubtitle(s *string) *SongCreate
SetNillableSubtitle sets the subtitle field if the given value is not nil.
func (*SongCreate) SetNillableTitle ¶
func (sc *SongCreate) SetNillableTitle(s *string) *SongCreate
SetNillableTitle sets the title field if the given value is not nil.
func (*SongCreate) SetNillableTitleSort ¶
func (sc *SongCreate) SetNillableTitleSort(s *string) *SongCreate
SetNillableTitleSort sets the title_sort field if the given value is not nil.
func (*SongCreate) SetNillableTrackNumber ¶
func (sc *SongCreate) SetNillableTrackNumber(u *uint32) *SongCreate
SetNillableTrackNumber sets the track_number field if the given value is not nil.
func (*SongCreate) SetNillableYear ¶
func (sc *SongCreate) SetNillableYear(u *uint32) *SongCreate
SetNillableYear sets the year field if the given value is not nil.
func (*SongCreate) SetOfDiskNumber ¶
func (sc *SongCreate) SetOfDiskNumber(u uint32) *SongCreate
SetOfDiskNumber sets the of_disk_number field.
func (*SongCreate) SetOfTrackNumber ¶
func (sc *SongCreate) SetOfTrackNumber(u uint32) *SongCreate
SetOfTrackNumber sets the of_track_number field.
func (*SongCreate) SetPath ¶
func (sc *SongCreate) SetPath(s string) *SongCreate
SetPath sets the path field.
func (*SongCreate) SetPlayCount ¶
func (sc *SongCreate) SetPlayCount(u uint32) *SongCreate
SetPlayCount sets the play_count field.
func (*SongCreate) SetPublisher ¶
func (sc *SongCreate) SetPublisher(s string) *SongCreate
SetPublisher sets the publisher field.
func (*SongCreate) SetRemixedBy ¶
func (sc *SongCreate) SetRemixedBy(s string) *SongCreate
SetRemixedBy sets the remixed_by field.
func (*SongCreate) SetReplayGainAlbumGain ¶
func (sc *SongCreate) SetReplayGainAlbumGain(f float64) *SongCreate
SetReplayGainAlbumGain sets the replay_gain_album_gain field.
func (*SongCreate) SetReplayGainAlbumPeak ¶
func (sc *SongCreate) SetReplayGainAlbumPeak(f float64) *SongCreate
SetReplayGainAlbumPeak sets the replay_gain_album_peak field.
func (*SongCreate) SetReplayGainTrackGain ¶
func (sc *SongCreate) SetReplayGainTrackGain(f float64) *SongCreate
SetReplayGainTrackGain sets the replay_gain_track_gain field.
func (*SongCreate) SetReplayGainTrackPeak ¶
func (sc *SongCreate) SetReplayGainTrackPeak(f float64) *SongCreate
SetReplayGainTrackPeak sets the replay_gain_track_peak field.
func (*SongCreate) SetSkippedCount ¶
func (sc *SongCreate) SetSkippedCount(u uint32) *SongCreate
SetSkippedCount sets the skipped_count field.
func (*SongCreate) SetSubtitle ¶
func (sc *SongCreate) SetSubtitle(s string) *SongCreate
SetSubtitle sets the subtitle field.
func (*SongCreate) SetTitle ¶
func (sc *SongCreate) SetTitle(s string) *SongCreate
SetTitle sets the title field.
func (*SongCreate) SetTitleSort ¶
func (sc *SongCreate) SetTitleSort(s string) *SongCreate
SetTitleSort sets the title_sort field.
func (*SongCreate) SetTrackNumber ¶
func (sc *SongCreate) SetTrackNumber(u uint32) *SongCreate
SetTrackNumber sets the track_number field.
func (*SongCreate) SetYear ¶
func (sc *SongCreate) SetYear(u uint32) *SongCreate
SetYear sets the year field.
type SongDelete ¶
type SongDelete struct {
// contains filtered or unexported fields
}
SongDelete is the builder for deleting a Song entity.
func (*SongDelete) Exec ¶
func (sd *SongDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SongDelete) ExecX ¶
func (sd *SongDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SongDelete) Where ¶
func (sd *SongDelete) Where(ps ...predicate.Song) *SongDelete
Where adds a new predicate to the delete builder.
type SongDeleteOne ¶
type SongDeleteOne struct {
// contains filtered or unexported fields
}
SongDeleteOne is the builder for deleting a single Song entity.
func (*SongDeleteOne) Exec ¶
func (sdo *SongDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SongDeleteOne) ExecX ¶
func (sdo *SongDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SongEdges ¶
type SongEdges struct { // Tags holds the value of the tags edge. Tags []*Tag // contains filtered or unexported fields }
SongEdges holds the relations/edges for other nodes in the graph.
type SongGroupBy ¶
type SongGroupBy struct {
// contains filtered or unexported fields
}
SongGroupBy is the builder for group-by Song entities.
func (*SongGroupBy) Aggregate ¶
func (sgb *SongGroupBy) Aggregate(fns ...AggregateFunc) *SongGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SongGroupBy) Bool ¶
func (sgb *SongGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) BoolX ¶
func (sgb *SongGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SongGroupBy) Bools ¶
func (sgb *SongGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) BoolsX ¶
func (sgb *SongGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SongGroupBy) Float64 ¶
func (sgb *SongGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) Float64X ¶
func (sgb *SongGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SongGroupBy) Float64s ¶
func (sgb *SongGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) Float64sX ¶
func (sgb *SongGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SongGroupBy) Int ¶
func (sgb *SongGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) IntX ¶
func (sgb *SongGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SongGroupBy) Ints ¶
func (sgb *SongGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) IntsX ¶
func (sgb *SongGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SongGroupBy) Scan ¶
func (sgb *SongGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*SongGroupBy) ScanX ¶
func (sgb *SongGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SongGroupBy) String ¶
func (sgb *SongGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*SongGroupBy) StringX ¶
func (sgb *SongGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SongMutation ¶
type SongMutation struct {
// contains filtered or unexported fields
}
SongMutation represents an operation that mutate the Songs nodes in the graph.
func (*SongMutation) AddBeatsPerMinute ¶
func (m *SongMutation) AddBeatsPerMinute(u uint32)
AddBeatsPerMinute adds u to beats_per_minute.
func (*SongMutation) AddDiskNumber ¶
func (m *SongMutation) AddDiskNumber(u uint32)
AddDiskNumber adds u to disk_number.
func (*SongMutation) AddDuration ¶
func (m *SongMutation) AddDuration(u uint32)
AddDuration adds u to duration.
func (*SongMutation) AddField ¶
func (m *SongMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*SongMutation) AddOfDiskNumber ¶
func (m *SongMutation) AddOfDiskNumber(u uint32)
AddOfDiskNumber adds u to of_disk_number.
func (*SongMutation) AddOfTrackNumber ¶
func (m *SongMutation) AddOfTrackNumber(u uint32)
AddOfTrackNumber adds u to of_track_number.
func (*SongMutation) AddPlayCount ¶
func (m *SongMutation) AddPlayCount(u uint32)
AddPlayCount adds u to play_count.
func (*SongMutation) AddReplayGainAlbumGain ¶
func (m *SongMutation) AddReplayGainAlbumGain(f float64)
AddReplayGainAlbumGain adds f to replay_gain_album_gain.
func (*SongMutation) AddReplayGainAlbumPeak ¶
func (m *SongMutation) AddReplayGainAlbumPeak(f float64)
AddReplayGainAlbumPeak adds f to replay_gain_album_peak.
func (*SongMutation) AddReplayGainTrackGain ¶
func (m *SongMutation) AddReplayGainTrackGain(f float64)
AddReplayGainTrackGain adds f to replay_gain_track_gain.
func (*SongMutation) AddReplayGainTrackPeak ¶
func (m *SongMutation) AddReplayGainTrackPeak(f float64)
AddReplayGainTrackPeak adds f to replay_gain_track_peak.
func (*SongMutation) AddSkippedCount ¶
func (m *SongMutation) AddSkippedCount(u uint32)
AddSkippedCount adds u to skipped_count.
func (*SongMutation) AddTagIDs ¶
func (m *SongMutation) AddTagIDs(ids ...int64)
AddTagIDs adds the tags edge to Tag by ids.
func (*SongMutation) AddTrackNumber ¶
func (m *SongMutation) AddTrackNumber(u uint32)
AddTrackNumber adds u to track_number.
func (*SongMutation) AddedBeatsPerMinute ¶
func (m *SongMutation) AddedBeatsPerMinute() (r uint32, exists bool)
AddedBeatsPerMinute returns the value that was added to the beats_per_minute field in this mutation.
func (*SongMutation) AddedDiskNumber ¶
func (m *SongMutation) AddedDiskNumber() (r uint32, exists bool)
AddedDiskNumber returns the value that was added to the disk_number field in this mutation.
func (*SongMutation) AddedDuration ¶
func (m *SongMutation) AddedDuration() (r uint32, exists bool)
AddedDuration returns the value that was added to the duration field in this mutation.
func (*SongMutation) AddedEdges ¶
func (m *SongMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SongMutation) AddedField ¶
func (m *SongMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*SongMutation) AddedFields ¶
func (m *SongMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*SongMutation) AddedIDs ¶
func (m *SongMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*SongMutation) AddedOfDiskNumber ¶
func (m *SongMutation) AddedOfDiskNumber() (r uint32, exists bool)
AddedOfDiskNumber returns the value that was added to the of_disk_number field in this mutation.
func (*SongMutation) AddedOfTrackNumber ¶
func (m *SongMutation) AddedOfTrackNumber() (r uint32, exists bool)
AddedOfTrackNumber returns the value that was added to the of_track_number field in this mutation.
func (*SongMutation) AddedPlayCount ¶
func (m *SongMutation) AddedPlayCount() (r uint32, exists bool)
AddedPlayCount returns the value that was added to the play_count field in this mutation.
func (*SongMutation) AddedReplayGainAlbumGain ¶
func (m *SongMutation) AddedReplayGainAlbumGain() (r float64, exists bool)
AddedReplayGainAlbumGain returns the value that was added to the replay_gain_album_gain field in this mutation.
func (*SongMutation) AddedReplayGainAlbumPeak ¶
func (m *SongMutation) AddedReplayGainAlbumPeak() (r float64, exists bool)
AddedReplayGainAlbumPeak returns the value that was added to the replay_gain_album_peak field in this mutation.
func (*SongMutation) AddedReplayGainTrackGain ¶
func (m *SongMutation) AddedReplayGainTrackGain() (r float64, exists bool)
AddedReplayGainTrackGain returns the value that was added to the replay_gain_track_gain field in this mutation.
func (*SongMutation) AddedReplayGainTrackPeak ¶
func (m *SongMutation) AddedReplayGainTrackPeak() (r float64, exists bool)
AddedReplayGainTrackPeak returns the value that was added to the replay_gain_track_peak field in this mutation.
func (*SongMutation) AddedSkippedCount ¶
func (m *SongMutation) AddedSkippedCount() (r uint32, exists bool)
AddedSkippedCount returns the value that was added to the skipped_count field in this mutation.
func (*SongMutation) AddedTrackNumber ¶
func (m *SongMutation) AddedTrackNumber() (r uint32, exists bool)
AddedTrackNumber returns the value that was added to the track_number field in this mutation.
func (*SongMutation) AddedYear ¶
func (m *SongMutation) AddedYear() (r uint32, exists bool)
AddedYear returns the value that was added to the year field in this mutation.
func (*SongMutation) Album ¶
func (m *SongMutation) Album() (r string, exists bool)
Album returns the album value in the mutation.
func (*SongMutation) AlbumArtist ¶
func (m *SongMutation) AlbumArtist() (r string, exists bool)
AlbumArtist returns the album_artist value in the mutation.
func (*SongMutation) AlbumArtistCleared ¶
func (m *SongMutation) AlbumArtistCleared() bool
AlbumArtistCleared returns if the field album_artist was cleared in this mutation.
func (*SongMutation) AlbumCleared ¶
func (m *SongMutation) AlbumCleared() bool
AlbumCleared returns if the field album was cleared in this mutation.
func (*SongMutation) Artists ¶
func (m *SongMutation) Artists() (r []string, exists bool)
Artists returns the artists value in the mutation.
func (*SongMutation) ArtistsCleared ¶
func (m *SongMutation) ArtistsCleared() bool
ArtistsCleared returns if the field artists was cleared in this mutation.
func (*SongMutation) ArtistsSort ¶
func (m *SongMutation) ArtistsSort() (r string, exists bool)
ArtistsSort returns the artists_sort value in the mutation.
func (*SongMutation) ArtistsSortCleared ¶
func (m *SongMutation) ArtistsSortCleared() bool
ArtistsSortCleared returns if the field artists_sort was cleared in this mutation.
func (*SongMutation) BeatsPerMinute ¶
func (m *SongMutation) BeatsPerMinute() (r uint32, exists bool)
BeatsPerMinute returns the beats_per_minute value in the mutation.
func (*SongMutation) BeatsPerMinuteCleared ¶
func (m *SongMutation) BeatsPerMinuteCleared() bool
BeatsPerMinuteCleared returns if the field beats_per_minute was cleared in this mutation.
func (*SongMutation) ClearAlbum ¶
func (m *SongMutation) ClearAlbum()
ClearAlbum clears the value of album.
func (*SongMutation) ClearAlbumArtist ¶
func (m *SongMutation) ClearAlbumArtist()
ClearAlbumArtist clears the value of album_artist.
func (*SongMutation) ClearArtists ¶
func (m *SongMutation) ClearArtists()
ClearArtists clears the value of artists.
func (*SongMutation) ClearArtistsSort ¶
func (m *SongMutation) ClearArtistsSort()
ClearArtistsSort clears the value of artists_sort.
func (*SongMutation) ClearBeatsPerMinute ¶
func (m *SongMutation) ClearBeatsPerMinute()
ClearBeatsPerMinute clears the value of beats_per_minute.
func (*SongMutation) ClearComment ¶
func (m *SongMutation) ClearComment()
ClearComment clears the value of comment.
func (*SongMutation) ClearComposers ¶
func (m *SongMutation) ClearComposers()
ClearComposers clears the value of composers.
func (*SongMutation) ClearConductor ¶
func (m *SongMutation) ClearConductor()
ClearConductor clears the value of conductor.
func (*SongMutation) ClearCopyright ¶
func (m *SongMutation) ClearCopyright()
ClearCopyright clears the value of copyright.
func (*SongMutation) ClearCreatedDate ¶
func (m *SongMutation) ClearCreatedDate()
ClearCreatedDate clears the value of created_date.
func (*SongMutation) ClearDateTagged ¶
func (m *SongMutation) ClearDateTagged()
ClearDateTagged clears the value of date_tagged.
func (*SongMutation) ClearDescription ¶
func (m *SongMutation) ClearDescription()
ClearDescription clears the value of description.
func (*SongMutation) ClearDiskNumber ¶
func (m *SongMutation) ClearDiskNumber()
ClearDiskNumber clears the value of disk_number.
func (*SongMutation) ClearDuration ¶
func (m *SongMutation) ClearDuration()
ClearDuration clears the value of duration.
func (*SongMutation) ClearEdge ¶
func (m *SongMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*SongMutation) ClearField ¶
func (m *SongMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*SongMutation) ClearFirstAlbumArtist ¶
func (m *SongMutation) ClearFirstAlbumArtist()
ClearFirstAlbumArtist clears the value of first_album_artist.
func (*SongMutation) ClearFirstAlbumArtistSort ¶
func (m *SongMutation) ClearFirstAlbumArtistSort()
ClearFirstAlbumArtistSort clears the value of first_album_artist_sort.
func (*SongMutation) ClearFirstArtist ¶
func (m *SongMutation) ClearFirstArtist()
ClearFirstArtist clears the value of first_artist.
func (*SongMutation) ClearFirstArtistSort ¶
func (m *SongMutation) ClearFirstArtistSort()
ClearFirstArtistSort clears the value of first_artist_sort.
func (*SongMutation) ClearFirstComposer ¶
func (m *SongMutation) ClearFirstComposer()
ClearFirstComposer clears the value of first_composer.
func (*SongMutation) ClearFirstComposerSort ¶
func (m *SongMutation) ClearFirstComposerSort()
ClearFirstComposerSort clears the value of first_composer_sort.
func (*SongMutation) ClearGenre ¶
func (m *SongMutation) ClearGenre()
ClearGenre clears the value of genre.
func (*SongMutation) ClearGrouping ¶
func (m *SongMutation) ClearGrouping()
ClearGrouping clears the value of grouping.
func (*SongMutation) ClearInitialKey ¶
func (m *SongMutation) ClearInitialKey()
ClearInitialKey clears the value of initial_key.
func (*SongMutation) ClearIsrc ¶
func (m *SongMutation) ClearIsrc()
ClearIsrc clears the value of isrc.
func (*SongMutation) ClearLyrics ¶
func (m *SongMutation) ClearLyrics()
ClearLyrics clears the value of lyrics.
func (*SongMutation) ClearMimeType ¶
func (m *SongMutation) ClearMimeType()
ClearMimeType clears the value of mime_type.
func (*SongMutation) ClearModifiedDate ¶
func (m *SongMutation) ClearModifiedDate()
ClearModifiedDate clears the value of modified_date.
func (*SongMutation) ClearMusicBrainzArtistID ¶
func (m *SongMutation) ClearMusicBrainzArtistID()
ClearMusicBrainzArtistID clears the value of music_brainz_artist_id.
func (*SongMutation) ClearMusicBrainzDiscID ¶
func (m *SongMutation) ClearMusicBrainzDiscID()
ClearMusicBrainzDiscID clears the value of music_brainz_disc_id.
func (*SongMutation) ClearMusicBrainzReleaseArtistID ¶
func (m *SongMutation) ClearMusicBrainzReleaseArtistID()
ClearMusicBrainzReleaseArtistID clears the value of music_brainz_release_artist_id.
func (*SongMutation) ClearMusicBrainzReleaseCountry ¶
func (m *SongMutation) ClearMusicBrainzReleaseCountry()
ClearMusicBrainzReleaseCountry clears the value of music_brainz_release_country.
func (*SongMutation) ClearMusicBrainzReleaseGroupID ¶
func (m *SongMutation) ClearMusicBrainzReleaseGroupID()
ClearMusicBrainzReleaseGroupID clears the value of music_brainz_release_group_id.
func (*SongMutation) ClearMusicBrainzReleaseID ¶
func (m *SongMutation) ClearMusicBrainzReleaseID()
ClearMusicBrainzReleaseID clears the value of music_brainz_release_id.
func (*SongMutation) ClearMusicBrainzReleaseStatus ¶
func (m *SongMutation) ClearMusicBrainzReleaseStatus()
ClearMusicBrainzReleaseStatus clears the value of music_brainz_release_status.
func (*SongMutation) ClearMusicBrainzReleaseType ¶
func (m *SongMutation) ClearMusicBrainzReleaseType()
ClearMusicBrainzReleaseType clears the value of music_brainz_release_type.
func (*SongMutation) ClearMusicBrainzTrackID ¶
func (m *SongMutation) ClearMusicBrainzTrackID()
ClearMusicBrainzTrackID clears the value of music_brainz_track_id.
func (*SongMutation) ClearMusicIPID ¶
func (m *SongMutation) ClearMusicIPID()
ClearMusicIPID clears the value of music_ip_id.
func (*SongMutation) ClearOfDiskNumber ¶
func (m *SongMutation) ClearOfDiskNumber()
ClearOfDiskNumber clears the value of of_disk_number.
func (*SongMutation) ClearOfTrackNumber ¶
func (m *SongMutation) ClearOfTrackNumber()
ClearOfTrackNumber clears the value of of_track_number.
func (*SongMutation) ClearPublisher ¶
func (m *SongMutation) ClearPublisher()
ClearPublisher clears the value of publisher.
func (*SongMutation) ClearRemixedBy ¶
func (m *SongMutation) ClearRemixedBy()
ClearRemixedBy clears the value of remixed_by.
func (*SongMutation) ClearReplayGainAlbumGain ¶
func (m *SongMutation) ClearReplayGainAlbumGain()
ClearReplayGainAlbumGain clears the value of replay_gain_album_gain.
func (*SongMutation) ClearReplayGainAlbumPeak ¶
func (m *SongMutation) ClearReplayGainAlbumPeak()
ClearReplayGainAlbumPeak clears the value of replay_gain_album_peak.
func (*SongMutation) ClearReplayGainTrackGain ¶
func (m *SongMutation) ClearReplayGainTrackGain()
ClearReplayGainTrackGain clears the value of replay_gain_track_gain.
func (*SongMutation) ClearReplayGainTrackPeak ¶
func (m *SongMutation) ClearReplayGainTrackPeak()
ClearReplayGainTrackPeak clears the value of replay_gain_track_peak.
func (*SongMutation) ClearSubtitle ¶
func (m *SongMutation) ClearSubtitle()
ClearSubtitle clears the value of subtitle.
func (*SongMutation) ClearTitle ¶
func (m *SongMutation) ClearTitle()
ClearTitle clears the value of title.
func (*SongMutation) ClearTitleSort ¶
func (m *SongMutation) ClearTitleSort()
ClearTitleSort clears the value of title_sort.
func (*SongMutation) ClearTrackNumber ¶
func (m *SongMutation) ClearTrackNumber()
ClearTrackNumber clears the value of track_number.
func (*SongMutation) ClearYear ¶
func (m *SongMutation) ClearYear()
ClearYear clears the value of year.
func (*SongMutation) ClearedEdges ¶
func (m *SongMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SongMutation) ClearedFields ¶
func (m *SongMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SongMutation) Client ¶
func (m SongMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SongMutation) Comment ¶
func (m *SongMutation) Comment() (r string, exists bool)
Comment returns the comment value in the mutation.
func (*SongMutation) CommentCleared ¶
func (m *SongMutation) CommentCleared() bool
CommentCleared returns if the field comment was cleared in this mutation.
func (*SongMutation) Composers ¶
func (m *SongMutation) Composers() (r string, exists bool)
Composers returns the composers value in the mutation.
func (*SongMutation) ComposersCleared ¶
func (m *SongMutation) ComposersCleared() bool
ComposersCleared returns if the field composers was cleared in this mutation.
func (*SongMutation) Conductor ¶
func (m *SongMutation) Conductor() (r string, exists bool)
Conductor returns the conductor value in the mutation.
func (*SongMutation) ConductorCleared ¶
func (m *SongMutation) ConductorCleared() bool
ConductorCleared returns if the field conductor was cleared in this mutation.
func (*SongMutation) Copyright ¶
func (m *SongMutation) Copyright() (r string, exists bool)
Copyright returns the copyright value in the mutation.
func (*SongMutation) CopyrightCleared ¶
func (m *SongMutation) CopyrightCleared() bool
CopyrightCleared returns if the field copyright was cleared in this mutation.
func (*SongMutation) CreatedDate ¶
func (m *SongMutation) CreatedDate() (r time.Time, exists bool)
CreatedDate returns the created_date value in the mutation.
func (*SongMutation) CreatedDateCleared ¶
func (m *SongMutation) CreatedDateCleared() bool
CreatedDateCleared returns if the field created_date was cleared in this mutation.
func (*SongMutation) DateTagged ¶
func (m *SongMutation) DateTagged() (r time.Time, exists bool)
DateTagged returns the date_tagged value in the mutation.
func (*SongMutation) DateTaggedCleared ¶
func (m *SongMutation) DateTaggedCleared() bool
DateTaggedCleared returns if the field date_tagged was cleared in this mutation.
func (*SongMutation) Description ¶
func (m *SongMutation) Description() (r string, exists bool)
Description returns the description value in the mutation.
func (*SongMutation) DescriptionCleared ¶
func (m *SongMutation) DescriptionCleared() bool
DescriptionCleared returns if the field description was cleared in this mutation.
func (*SongMutation) DiskNumber ¶
func (m *SongMutation) DiskNumber() (r uint32, exists bool)
DiskNumber returns the disk_number value in the mutation.
func (*SongMutation) DiskNumberCleared ¶
func (m *SongMutation) DiskNumberCleared() bool
DiskNumberCleared returns if the field disk_number was cleared in this mutation.
func (*SongMutation) Duration ¶
func (m *SongMutation) Duration() (r uint32, exists bool)
Duration returns the duration value in the mutation.
func (*SongMutation) DurationCleared ¶
func (m *SongMutation) DurationCleared() bool
DurationCleared returns if the field duration was cleared in this mutation.
func (*SongMutation) EdgeCleared ¶
func (m *SongMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*SongMutation) Field ¶
func (m *SongMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*SongMutation) FieldCleared ¶
func (m *SongMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*SongMutation) Fields ¶
func (m *SongMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*SongMutation) FirstAlbumArtist ¶
func (m *SongMutation) FirstAlbumArtist() (r string, exists bool)
FirstAlbumArtist returns the first_album_artist value in the mutation.
func (*SongMutation) FirstAlbumArtistCleared ¶
func (m *SongMutation) FirstAlbumArtistCleared() bool
FirstAlbumArtistCleared returns if the field first_album_artist was cleared in this mutation.
func (*SongMutation) FirstAlbumArtistSort ¶
func (m *SongMutation) FirstAlbumArtistSort() (r string, exists bool)
FirstAlbumArtistSort returns the first_album_artist_sort value in the mutation.
func (*SongMutation) FirstAlbumArtistSortCleared ¶
func (m *SongMutation) FirstAlbumArtistSortCleared() bool
FirstAlbumArtistSortCleared returns if the field first_album_artist_sort was cleared in this mutation.
func (*SongMutation) FirstArtist ¶
func (m *SongMutation) FirstArtist() (r string, exists bool)
FirstArtist returns the first_artist value in the mutation.
func (*SongMutation) FirstArtistCleared ¶
func (m *SongMutation) FirstArtistCleared() bool
FirstArtistCleared returns if the field first_artist was cleared in this mutation.
func (*SongMutation) FirstArtistSort ¶
func (m *SongMutation) FirstArtistSort() (r string, exists bool)
FirstArtistSort returns the first_artist_sort value in the mutation.
func (*SongMutation) FirstArtistSortCleared ¶
func (m *SongMutation) FirstArtistSortCleared() bool
FirstArtistSortCleared returns if the field first_artist_sort was cleared in this mutation.
func (*SongMutation) FirstComposer ¶
func (m *SongMutation) FirstComposer() (r string, exists bool)
FirstComposer returns the first_composer value in the mutation.
func (*SongMutation) FirstComposerCleared ¶
func (m *SongMutation) FirstComposerCleared() bool
FirstComposerCleared returns if the field first_composer was cleared in this mutation.
func (*SongMutation) FirstComposerSort ¶
func (m *SongMutation) FirstComposerSort() (r string, exists bool)
FirstComposerSort returns the first_composer_sort value in the mutation.
func (*SongMutation) FirstComposerSortCleared ¶
func (m *SongMutation) FirstComposerSortCleared() bool
FirstComposerSortCleared returns if the field first_composer_sort was cleared in this mutation.
func (*SongMutation) Genre ¶
func (m *SongMutation) Genre() (r string, exists bool)
Genre returns the genre value in the mutation.
func (*SongMutation) GenreCleared ¶
func (m *SongMutation) GenreCleared() bool
GenreCleared returns if the field genre was cleared in this mutation.
func (*SongMutation) Grouping ¶
func (m *SongMutation) Grouping() (r string, exists bool)
Grouping returns the grouping value in the mutation.
func (*SongMutation) GroupingCleared ¶
func (m *SongMutation) GroupingCleared() bool
GroupingCleared returns if the field grouping was cleared in this mutation.
func (*SongMutation) Hash ¶
func (m *SongMutation) Hash() (r string, exists bool)
Hash returns the hash value in the mutation.
func (*SongMutation) ID ¶
func (m *SongMutation) ID() (id int64, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*SongMutation) InitialKey ¶
func (m *SongMutation) InitialKey() (r string, exists bool)
InitialKey returns the initial_key value in the mutation.
func (*SongMutation) InitialKeyCleared ¶
func (m *SongMutation) InitialKeyCleared() bool
InitialKeyCleared returns if the field initial_key was cleared in this mutation.
func (*SongMutation) Isrc ¶
func (m *SongMutation) Isrc() (r string, exists bool)
Isrc returns the isrc value in the mutation.
func (*SongMutation) IsrcCleared ¶
func (m *SongMutation) IsrcCleared() bool
IsrcCleared returns if the field isrc was cleared in this mutation.
func (*SongMutation) Lyrics ¶
func (m *SongMutation) Lyrics() (r string, exists bool)
Lyrics returns the lyrics value in the mutation.
func (*SongMutation) LyricsCleared ¶
func (m *SongMutation) LyricsCleared() bool
LyricsCleared returns if the field lyrics was cleared in this mutation.
func (*SongMutation) MimeType ¶
func (m *SongMutation) MimeType() (r string, exists bool)
MimeType returns the mime_type value in the mutation.
func (*SongMutation) MimeTypeCleared ¶
func (m *SongMutation) MimeTypeCleared() bool
MimeTypeCleared returns if the field mime_type was cleared in this mutation.
func (*SongMutation) ModifiedDate ¶
func (m *SongMutation) ModifiedDate() (r time.Time, exists bool)
ModifiedDate returns the modified_date value in the mutation.
func (*SongMutation) ModifiedDateCleared ¶
func (m *SongMutation) ModifiedDateCleared() bool
ModifiedDateCleared returns if the field modified_date was cleared in this mutation.
func (*SongMutation) MusicBrainzArtistID ¶
func (m *SongMutation) MusicBrainzArtistID() (r string, exists bool)
MusicBrainzArtistID returns the music_brainz_artist_id value in the mutation.
func (*SongMutation) MusicBrainzArtistIDCleared ¶
func (m *SongMutation) MusicBrainzArtistIDCleared() bool
MusicBrainzArtistIDCleared returns if the field music_brainz_artist_id was cleared in this mutation.
func (*SongMutation) MusicBrainzDiscID ¶
func (m *SongMutation) MusicBrainzDiscID() (r string, exists bool)
MusicBrainzDiscID returns the music_brainz_disc_id value in the mutation.
func (*SongMutation) MusicBrainzDiscIDCleared ¶
func (m *SongMutation) MusicBrainzDiscIDCleared() bool
MusicBrainzDiscIDCleared returns if the field music_brainz_disc_id was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseArtistID ¶
func (m *SongMutation) MusicBrainzReleaseArtistID() (r string, exists bool)
MusicBrainzReleaseArtistID returns the music_brainz_release_artist_id value in the mutation.
func (*SongMutation) MusicBrainzReleaseArtistIDCleared ¶
func (m *SongMutation) MusicBrainzReleaseArtistIDCleared() bool
MusicBrainzReleaseArtistIDCleared returns if the field music_brainz_release_artist_id was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseCountry ¶
func (m *SongMutation) MusicBrainzReleaseCountry() (r string, exists bool)
MusicBrainzReleaseCountry returns the music_brainz_release_country value in the mutation.
func (*SongMutation) MusicBrainzReleaseCountryCleared ¶
func (m *SongMutation) MusicBrainzReleaseCountryCleared() bool
MusicBrainzReleaseCountryCleared returns if the field music_brainz_release_country was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseGroupID ¶
func (m *SongMutation) MusicBrainzReleaseGroupID() (r string, exists bool)
MusicBrainzReleaseGroupID returns the music_brainz_release_group_id value in the mutation.
func (*SongMutation) MusicBrainzReleaseGroupIDCleared ¶
func (m *SongMutation) MusicBrainzReleaseGroupIDCleared() bool
MusicBrainzReleaseGroupIDCleared returns if the field music_brainz_release_group_id was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseID ¶
func (m *SongMutation) MusicBrainzReleaseID() (r string, exists bool)
MusicBrainzReleaseID returns the music_brainz_release_id value in the mutation.
func (*SongMutation) MusicBrainzReleaseIDCleared ¶
func (m *SongMutation) MusicBrainzReleaseIDCleared() bool
MusicBrainzReleaseIDCleared returns if the field music_brainz_release_id was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseStatus ¶
func (m *SongMutation) MusicBrainzReleaseStatus() (r string, exists bool)
MusicBrainzReleaseStatus returns the music_brainz_release_status value in the mutation.
func (*SongMutation) MusicBrainzReleaseStatusCleared ¶
func (m *SongMutation) MusicBrainzReleaseStatusCleared() bool
MusicBrainzReleaseStatusCleared returns if the field music_brainz_release_status was cleared in this mutation.
func (*SongMutation) MusicBrainzReleaseType ¶
func (m *SongMutation) MusicBrainzReleaseType() (r string, exists bool)
MusicBrainzReleaseType returns the music_brainz_release_type value in the mutation.
func (*SongMutation) MusicBrainzReleaseTypeCleared ¶
func (m *SongMutation) MusicBrainzReleaseTypeCleared() bool
MusicBrainzReleaseTypeCleared returns if the field music_brainz_release_type was cleared in this mutation.
func (*SongMutation) MusicBrainzTrackID ¶
func (m *SongMutation) MusicBrainzTrackID() (r string, exists bool)
MusicBrainzTrackID returns the music_brainz_track_id value in the mutation.
func (*SongMutation) MusicBrainzTrackIDCleared ¶
func (m *SongMutation) MusicBrainzTrackIDCleared() bool
MusicBrainzTrackIDCleared returns if the field music_brainz_track_id was cleared in this mutation.
func (*SongMutation) MusicIPID ¶
func (m *SongMutation) MusicIPID() (r string, exists bool)
MusicIPID returns the music_ip_id value in the mutation.
func (*SongMutation) MusicIPIDCleared ¶
func (m *SongMutation) MusicIPIDCleared() bool
MusicIPIDCleared returns if the field music_ip_id was cleared in this mutation.
func (*SongMutation) OfDiskNumber ¶
func (m *SongMutation) OfDiskNumber() (r uint32, exists bool)
OfDiskNumber returns the of_disk_number value in the mutation.
func (*SongMutation) OfDiskNumberCleared ¶
func (m *SongMutation) OfDiskNumberCleared() bool
OfDiskNumberCleared returns if the field of_disk_number was cleared in this mutation.
func (*SongMutation) OfTrackNumber ¶
func (m *SongMutation) OfTrackNumber() (r uint32, exists bool)
OfTrackNumber returns the of_track_number value in the mutation.
func (*SongMutation) OfTrackNumberCleared ¶
func (m *SongMutation) OfTrackNumberCleared() bool
OfTrackNumberCleared returns if the field of_track_number was cleared in this mutation.
func (*SongMutation) OldAlbum ¶
func (m *SongMutation) OldAlbum(ctx context.Context) (v string, err error)
OldAlbum returns the old album value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldAlbumArtist ¶
func (m *SongMutation) OldAlbumArtist(ctx context.Context) (v string, err error)
OldAlbumArtist returns the old album_artist value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldArtists ¶
func (m *SongMutation) OldArtists(ctx context.Context) (v []string, err error)
OldArtists returns the old artists value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldArtistsSort ¶
func (m *SongMutation) OldArtistsSort(ctx context.Context) (v string, err error)
OldArtistsSort returns the old artists_sort value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldBeatsPerMinute ¶
func (m *SongMutation) OldBeatsPerMinute(ctx context.Context) (v uint32, err error)
OldBeatsPerMinute returns the old beats_per_minute value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldComment ¶
func (m *SongMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old comment value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldComposers ¶
func (m *SongMutation) OldComposers(ctx context.Context) (v string, err error)
OldComposers returns the old composers value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldConductor ¶
func (m *SongMutation) OldConductor(ctx context.Context) (v string, err error)
OldConductor returns the old conductor value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldCopyright ¶
func (m *SongMutation) OldCopyright(ctx context.Context) (v string, err error)
OldCopyright returns the old copyright value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldCreatedDate ¶
OldCreatedDate returns the old created_date value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldDateTagged ¶
OldDateTagged returns the old date_tagged value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldDescription ¶
func (m *SongMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old description value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldDiskNumber ¶
func (m *SongMutation) OldDiskNumber(ctx context.Context) (v uint32, err error)
OldDiskNumber returns the old disk_number value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldDuration ¶
func (m *SongMutation) OldDuration(ctx context.Context) (v uint32, err error)
OldDuration returns the old duration value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database was failed.
func (*SongMutation) OldFirstAlbumArtist ¶
func (m *SongMutation) OldFirstAlbumArtist(ctx context.Context) (v string, err error)
OldFirstAlbumArtist returns the old first_album_artist value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldFirstAlbumArtistSort ¶
func (m *SongMutation) OldFirstAlbumArtistSort(ctx context.Context) (v string, err error)
OldFirstAlbumArtistSort returns the old first_album_artist_sort value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldFirstArtist ¶
func (m *SongMutation) OldFirstArtist(ctx context.Context) (v string, err error)
OldFirstArtist returns the old first_artist value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldFirstArtistSort ¶
func (m *SongMutation) OldFirstArtistSort(ctx context.Context) (v string, err error)
OldFirstArtistSort returns the old first_artist_sort value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldFirstComposer ¶
func (m *SongMutation) OldFirstComposer(ctx context.Context) (v string, err error)
OldFirstComposer returns the old first_composer value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldFirstComposerSort ¶
func (m *SongMutation) OldFirstComposerSort(ctx context.Context) (v string, err error)
OldFirstComposerSort returns the old first_composer_sort value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldGenre ¶
func (m *SongMutation) OldGenre(ctx context.Context) (v string, err error)
OldGenre returns the old genre value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldGrouping ¶
func (m *SongMutation) OldGrouping(ctx context.Context) (v string, err error)
OldGrouping returns the old grouping value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldHash ¶
func (m *SongMutation) OldHash(ctx context.Context) (v string, err error)
OldHash returns the old hash value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldInitialKey ¶
func (m *SongMutation) OldInitialKey(ctx context.Context) (v string, err error)
OldInitialKey returns the old initial_key value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldIsrc ¶
func (m *SongMutation) OldIsrc(ctx context.Context) (v string, err error)
OldIsrc returns the old isrc value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldLyrics ¶
func (m *SongMutation) OldLyrics(ctx context.Context) (v string, err error)
OldLyrics returns the old lyrics value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMimeType ¶
func (m *SongMutation) OldMimeType(ctx context.Context) (v string, err error)
OldMimeType returns the old mime_type value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldModifiedDate ¶
OldModifiedDate returns the old modified_date value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzArtistID ¶
func (m *SongMutation) OldMusicBrainzArtistID(ctx context.Context) (v string, err error)
OldMusicBrainzArtistID returns the old music_brainz_artist_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzDiscID ¶
func (m *SongMutation) OldMusicBrainzDiscID(ctx context.Context) (v string, err error)
OldMusicBrainzDiscID returns the old music_brainz_disc_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseArtistID ¶
func (m *SongMutation) OldMusicBrainzReleaseArtistID(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseArtistID returns the old music_brainz_release_artist_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseCountry ¶
func (m *SongMutation) OldMusicBrainzReleaseCountry(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseCountry returns the old music_brainz_release_country value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseGroupID ¶
func (m *SongMutation) OldMusicBrainzReleaseGroupID(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseGroupID returns the old music_brainz_release_group_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseID ¶
func (m *SongMutation) OldMusicBrainzReleaseID(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseID returns the old music_brainz_release_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseStatus ¶
func (m *SongMutation) OldMusicBrainzReleaseStatus(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseStatus returns the old music_brainz_release_status value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzReleaseType ¶
func (m *SongMutation) OldMusicBrainzReleaseType(ctx context.Context) (v string, err error)
OldMusicBrainzReleaseType returns the old music_brainz_release_type value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicBrainzTrackID ¶
func (m *SongMutation) OldMusicBrainzTrackID(ctx context.Context) (v string, err error)
OldMusicBrainzTrackID returns the old music_brainz_track_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldMusicIPID ¶
func (m *SongMutation) OldMusicIPID(ctx context.Context) (v string, err error)
OldMusicIPID returns the old music_ip_id value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldOfDiskNumber ¶
func (m *SongMutation) OldOfDiskNumber(ctx context.Context) (v uint32, err error)
OldOfDiskNumber returns the old of_disk_number value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldOfTrackNumber ¶
func (m *SongMutation) OldOfTrackNumber(ctx context.Context) (v uint32, err error)
OldOfTrackNumber returns the old of_track_number value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldPath ¶
func (m *SongMutation) OldPath(ctx context.Context) (v string, err error)
OldPath returns the old path value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldPlayCount ¶
func (m *SongMutation) OldPlayCount(ctx context.Context) (v uint32, err error)
OldPlayCount returns the old play_count value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldPublisher ¶
func (m *SongMutation) OldPublisher(ctx context.Context) (v string, err error)
OldPublisher returns the old publisher value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldRemixedBy ¶
func (m *SongMutation) OldRemixedBy(ctx context.Context) (v string, err error)
OldRemixedBy returns the old remixed_by value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldReplayGainAlbumGain ¶
func (m *SongMutation) OldReplayGainAlbumGain(ctx context.Context) (v float64, err error)
OldReplayGainAlbumGain returns the old replay_gain_album_gain value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldReplayGainAlbumPeak ¶
func (m *SongMutation) OldReplayGainAlbumPeak(ctx context.Context) (v float64, err error)
OldReplayGainAlbumPeak returns the old replay_gain_album_peak value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldReplayGainTrackGain ¶
func (m *SongMutation) OldReplayGainTrackGain(ctx context.Context) (v float64, err error)
OldReplayGainTrackGain returns the old replay_gain_track_gain value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldReplayGainTrackPeak ¶
func (m *SongMutation) OldReplayGainTrackPeak(ctx context.Context) (v float64, err error)
OldReplayGainTrackPeak returns the old replay_gain_track_peak value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldSkippedCount ¶
func (m *SongMutation) OldSkippedCount(ctx context.Context) (v uint32, err error)
OldSkippedCount returns the old skipped_count value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldSubtitle ¶
func (m *SongMutation) OldSubtitle(ctx context.Context) (v string, err error)
OldSubtitle returns the old subtitle value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldTitle ¶
func (m *SongMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old title value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldTitleSort ¶
func (m *SongMutation) OldTitleSort(ctx context.Context) (v string, err error)
OldTitleSort returns the old title_sort value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldTrackNumber ¶
func (m *SongMutation) OldTrackNumber(ctx context.Context) (v uint32, err error)
OldTrackNumber returns the old track_number value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) OldYear ¶
func (m *SongMutation) OldYear(ctx context.Context) (v uint32, err error)
OldYear returns the old year value of the Song. If the Song object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*SongMutation) Path ¶
func (m *SongMutation) Path() (r string, exists bool)
Path returns the path value in the mutation.
func (*SongMutation) PlayCount ¶
func (m *SongMutation) PlayCount() (r uint32, exists bool)
PlayCount returns the play_count value in the mutation.
func (*SongMutation) Publisher ¶
func (m *SongMutation) Publisher() (r string, exists bool)
Publisher returns the publisher value in the mutation.
func (*SongMutation) PublisherCleared ¶
func (m *SongMutation) PublisherCleared() bool
PublisherCleared returns if the field publisher was cleared in this mutation.
func (*SongMutation) RemixedBy ¶
func (m *SongMutation) RemixedBy() (r string, exists bool)
RemixedBy returns the remixed_by value in the mutation.
func (*SongMutation) RemixedByCleared ¶
func (m *SongMutation) RemixedByCleared() bool
RemixedByCleared returns if the field remixed_by was cleared in this mutation.
func (*SongMutation) RemoveTagIDs ¶
func (m *SongMutation) RemoveTagIDs(ids ...int64)
RemoveTagIDs removes the tags edge to Tag by ids.
func (*SongMutation) RemovedEdges ¶
func (m *SongMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SongMutation) RemovedIDs ¶
func (m *SongMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*SongMutation) RemovedTagsIDs ¶
func (m *SongMutation) RemovedTagsIDs() (ids []int64)
RemovedTags returns the removed ids of tags.
func (*SongMutation) ReplayGainAlbumGain ¶
func (m *SongMutation) ReplayGainAlbumGain() (r float64, exists bool)
ReplayGainAlbumGain returns the replay_gain_album_gain value in the mutation.
func (*SongMutation) ReplayGainAlbumGainCleared ¶
func (m *SongMutation) ReplayGainAlbumGainCleared() bool
ReplayGainAlbumGainCleared returns if the field replay_gain_album_gain was cleared in this mutation.
func (*SongMutation) ReplayGainAlbumPeak ¶
func (m *SongMutation) ReplayGainAlbumPeak() (r float64, exists bool)
ReplayGainAlbumPeak returns the replay_gain_album_peak value in the mutation.
func (*SongMutation) ReplayGainAlbumPeakCleared ¶
func (m *SongMutation) ReplayGainAlbumPeakCleared() bool
ReplayGainAlbumPeakCleared returns if the field replay_gain_album_peak was cleared in this mutation.
func (*SongMutation) ReplayGainTrackGain ¶
func (m *SongMutation) ReplayGainTrackGain() (r float64, exists bool)
ReplayGainTrackGain returns the replay_gain_track_gain value in the mutation.
func (*SongMutation) ReplayGainTrackGainCleared ¶
func (m *SongMutation) ReplayGainTrackGainCleared() bool
ReplayGainTrackGainCleared returns if the field replay_gain_track_gain was cleared in this mutation.
func (*SongMutation) ReplayGainTrackPeak ¶
func (m *SongMutation) ReplayGainTrackPeak() (r float64, exists bool)
ReplayGainTrackPeak returns the replay_gain_track_peak value in the mutation.
func (*SongMutation) ReplayGainTrackPeakCleared ¶
func (m *SongMutation) ReplayGainTrackPeakCleared() bool
ReplayGainTrackPeakCleared returns if the field replay_gain_track_peak was cleared in this mutation.
func (*SongMutation) ResetAlbum ¶
func (m *SongMutation) ResetAlbum()
ResetAlbum reset all changes of the "album" field.
func (*SongMutation) ResetAlbumArtist ¶
func (m *SongMutation) ResetAlbumArtist()
ResetAlbumArtist reset all changes of the "album_artist" field.
func (*SongMutation) ResetArtists ¶
func (m *SongMutation) ResetArtists()
ResetArtists reset all changes of the "artists" field.
func (*SongMutation) ResetArtistsSort ¶
func (m *SongMutation) ResetArtistsSort()
ResetArtistsSort reset all changes of the "artists_sort" field.
func (*SongMutation) ResetBeatsPerMinute ¶
func (m *SongMutation) ResetBeatsPerMinute()
ResetBeatsPerMinute reset all changes of the "beats_per_minute" field.
func (*SongMutation) ResetComment ¶
func (m *SongMutation) ResetComment()
ResetComment reset all changes of the "comment" field.
func (*SongMutation) ResetComposers ¶
func (m *SongMutation) ResetComposers()
ResetComposers reset all changes of the "composers" field.
func (*SongMutation) ResetConductor ¶
func (m *SongMutation) ResetConductor()
ResetConductor reset all changes of the "conductor" field.
func (*SongMutation) ResetCopyright ¶
func (m *SongMutation) ResetCopyright()
ResetCopyright reset all changes of the "copyright" field.
func (*SongMutation) ResetCreatedDate ¶
func (m *SongMutation) ResetCreatedDate()
ResetCreatedDate reset all changes of the "created_date" field.
func (*SongMutation) ResetDateTagged ¶
func (m *SongMutation) ResetDateTagged()
ResetDateTagged reset all changes of the "date_tagged" field.
func (*SongMutation) ResetDescription ¶
func (m *SongMutation) ResetDescription()
ResetDescription reset all changes of the "description" field.
func (*SongMutation) ResetDiskNumber ¶
func (m *SongMutation) ResetDiskNumber()
ResetDiskNumber reset all changes of the "disk_number" field.
func (*SongMutation) ResetDuration ¶
func (m *SongMutation) ResetDuration()
ResetDuration reset all changes of the "duration" field.
func (*SongMutation) ResetEdge ¶
func (m *SongMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*SongMutation) ResetField ¶
func (m *SongMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*SongMutation) ResetFirstAlbumArtist ¶
func (m *SongMutation) ResetFirstAlbumArtist()
ResetFirstAlbumArtist reset all changes of the "first_album_artist" field.
func (*SongMutation) ResetFirstAlbumArtistSort ¶
func (m *SongMutation) ResetFirstAlbumArtistSort()
ResetFirstAlbumArtistSort reset all changes of the "first_album_artist_sort" field.
func (*SongMutation) ResetFirstArtist ¶
func (m *SongMutation) ResetFirstArtist()
ResetFirstArtist reset all changes of the "first_artist" field.
func (*SongMutation) ResetFirstArtistSort ¶
func (m *SongMutation) ResetFirstArtistSort()
ResetFirstArtistSort reset all changes of the "first_artist_sort" field.
func (*SongMutation) ResetFirstComposer ¶
func (m *SongMutation) ResetFirstComposer()
ResetFirstComposer reset all changes of the "first_composer" field.
func (*SongMutation) ResetFirstComposerSort ¶
func (m *SongMutation) ResetFirstComposerSort()
ResetFirstComposerSort reset all changes of the "first_composer_sort" field.
func (*SongMutation) ResetGenre ¶
func (m *SongMutation) ResetGenre()
ResetGenre reset all changes of the "genre" field.
func (*SongMutation) ResetGrouping ¶
func (m *SongMutation) ResetGrouping()
ResetGrouping reset all changes of the "grouping" field.
func (*SongMutation) ResetHash ¶
func (m *SongMutation) ResetHash()
ResetHash reset all changes of the "hash" field.
func (*SongMutation) ResetInitialKey ¶
func (m *SongMutation) ResetInitialKey()
ResetInitialKey reset all changes of the "initial_key" field.
func (*SongMutation) ResetIsrc ¶
func (m *SongMutation) ResetIsrc()
ResetIsrc reset all changes of the "isrc" field.
func (*SongMutation) ResetLyrics ¶
func (m *SongMutation) ResetLyrics()
ResetLyrics reset all changes of the "lyrics" field.
func (*SongMutation) ResetMimeType ¶
func (m *SongMutation) ResetMimeType()
ResetMimeType reset all changes of the "mime_type" field.
func (*SongMutation) ResetModifiedDate ¶
func (m *SongMutation) ResetModifiedDate()
ResetModifiedDate reset all changes of the "modified_date" field.
func (*SongMutation) ResetMusicBrainzArtistID ¶
func (m *SongMutation) ResetMusicBrainzArtistID()
ResetMusicBrainzArtistID reset all changes of the "music_brainz_artist_id" field.
func (*SongMutation) ResetMusicBrainzDiscID ¶
func (m *SongMutation) ResetMusicBrainzDiscID()
ResetMusicBrainzDiscID reset all changes of the "music_brainz_disc_id" field.
func (*SongMutation) ResetMusicBrainzReleaseArtistID ¶
func (m *SongMutation) ResetMusicBrainzReleaseArtistID()
ResetMusicBrainzReleaseArtistID reset all changes of the "music_brainz_release_artist_id" field.
func (*SongMutation) ResetMusicBrainzReleaseCountry ¶
func (m *SongMutation) ResetMusicBrainzReleaseCountry()
ResetMusicBrainzReleaseCountry reset all changes of the "music_brainz_release_country" field.
func (*SongMutation) ResetMusicBrainzReleaseGroupID ¶
func (m *SongMutation) ResetMusicBrainzReleaseGroupID()
ResetMusicBrainzReleaseGroupID reset all changes of the "music_brainz_release_group_id" field.
func (*SongMutation) ResetMusicBrainzReleaseID ¶
func (m *SongMutation) ResetMusicBrainzReleaseID()
ResetMusicBrainzReleaseID reset all changes of the "music_brainz_release_id" field.
func (*SongMutation) ResetMusicBrainzReleaseStatus ¶
func (m *SongMutation) ResetMusicBrainzReleaseStatus()
ResetMusicBrainzReleaseStatus reset all changes of the "music_brainz_release_status" field.
func (*SongMutation) ResetMusicBrainzReleaseType ¶
func (m *SongMutation) ResetMusicBrainzReleaseType()
ResetMusicBrainzReleaseType reset all changes of the "music_brainz_release_type" field.
func (*SongMutation) ResetMusicBrainzTrackID ¶
func (m *SongMutation) ResetMusicBrainzTrackID()
ResetMusicBrainzTrackID reset all changes of the "music_brainz_track_id" field.
func (*SongMutation) ResetMusicIPID ¶
func (m *SongMutation) ResetMusicIPID()
ResetMusicIPID reset all changes of the "music_ip_id" field.
func (*SongMutation) ResetOfDiskNumber ¶
func (m *SongMutation) ResetOfDiskNumber()
ResetOfDiskNumber reset all changes of the "of_disk_number" field.
func (*SongMutation) ResetOfTrackNumber ¶
func (m *SongMutation) ResetOfTrackNumber()
ResetOfTrackNumber reset all changes of the "of_track_number" field.
func (*SongMutation) ResetPath ¶
func (m *SongMutation) ResetPath()
ResetPath reset all changes of the "path" field.
func (*SongMutation) ResetPlayCount ¶
func (m *SongMutation) ResetPlayCount()
ResetPlayCount reset all changes of the "play_count" field.
func (*SongMutation) ResetPublisher ¶
func (m *SongMutation) ResetPublisher()
ResetPublisher reset all changes of the "publisher" field.
func (*SongMutation) ResetRemixedBy ¶
func (m *SongMutation) ResetRemixedBy()
ResetRemixedBy reset all changes of the "remixed_by" field.
func (*SongMutation) ResetReplayGainAlbumGain ¶
func (m *SongMutation) ResetReplayGainAlbumGain()
ResetReplayGainAlbumGain reset all changes of the "replay_gain_album_gain" field.
func (*SongMutation) ResetReplayGainAlbumPeak ¶
func (m *SongMutation) ResetReplayGainAlbumPeak()
ResetReplayGainAlbumPeak reset all changes of the "replay_gain_album_peak" field.
func (*SongMutation) ResetReplayGainTrackGain ¶
func (m *SongMutation) ResetReplayGainTrackGain()
ResetReplayGainTrackGain reset all changes of the "replay_gain_track_gain" field.
func (*SongMutation) ResetReplayGainTrackPeak ¶
func (m *SongMutation) ResetReplayGainTrackPeak()
ResetReplayGainTrackPeak reset all changes of the "replay_gain_track_peak" field.
func (*SongMutation) ResetSkippedCount ¶
func (m *SongMutation) ResetSkippedCount()
ResetSkippedCount reset all changes of the "skipped_count" field.
func (*SongMutation) ResetSubtitle ¶
func (m *SongMutation) ResetSubtitle()
ResetSubtitle reset all changes of the "subtitle" field.
func (*SongMutation) ResetTags ¶
func (m *SongMutation) ResetTags()
ResetTags reset all changes of the "tags" edge.
func (*SongMutation) ResetTitle ¶
func (m *SongMutation) ResetTitle()
ResetTitle reset all changes of the "title" field.
func (*SongMutation) ResetTitleSort ¶
func (m *SongMutation) ResetTitleSort()
ResetTitleSort reset all changes of the "title_sort" field.
func (*SongMutation) ResetTrackNumber ¶
func (m *SongMutation) ResetTrackNumber()
ResetTrackNumber reset all changes of the "track_number" field.
func (*SongMutation) ResetYear ¶
func (m *SongMutation) ResetYear()
ResetYear reset all changes of the "year" field.
func (*SongMutation) SetAlbum ¶
func (m *SongMutation) SetAlbum(s string)
SetAlbum sets the album field.
func (*SongMutation) SetAlbumArtist ¶
func (m *SongMutation) SetAlbumArtist(s string)
SetAlbumArtist sets the album_artist field.
func (*SongMutation) SetArtists ¶
func (m *SongMutation) SetArtists(s []string)
SetArtists sets the artists field.
func (*SongMutation) SetArtistsSort ¶
func (m *SongMutation) SetArtistsSort(s string)
SetArtistsSort sets the artists_sort field.
func (*SongMutation) SetBeatsPerMinute ¶
func (m *SongMutation) SetBeatsPerMinute(u uint32)
SetBeatsPerMinute sets the beats_per_minute field.
func (*SongMutation) SetComment ¶
func (m *SongMutation) SetComment(s string)
SetComment sets the comment field.
func (*SongMutation) SetComposers ¶
func (m *SongMutation) SetComposers(s string)
SetComposers sets the composers field.
func (*SongMutation) SetConductor ¶
func (m *SongMutation) SetConductor(s string)
SetConductor sets the conductor field.
func (*SongMutation) SetCopyright ¶
func (m *SongMutation) SetCopyright(s string)
SetCopyright sets the copyright field.
func (*SongMutation) SetCreatedDate ¶
func (m *SongMutation) SetCreatedDate(t time.Time)
SetCreatedDate sets the created_date field.
func (*SongMutation) SetDateTagged ¶
func (m *SongMutation) SetDateTagged(t time.Time)
SetDateTagged sets the date_tagged field.
func (*SongMutation) SetDescription ¶
func (m *SongMutation) SetDescription(s string)
SetDescription sets the description field.
func (*SongMutation) SetDiskNumber ¶
func (m *SongMutation) SetDiskNumber(u uint32)
SetDiskNumber sets the disk_number field.
func (*SongMutation) SetDuration ¶
func (m *SongMutation) SetDuration(u uint32)
SetDuration sets the duration field.
func (*SongMutation) SetField ¶
func (m *SongMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*SongMutation) SetFirstAlbumArtist ¶
func (m *SongMutation) SetFirstAlbumArtist(s string)
SetFirstAlbumArtist sets the first_album_artist field.
func (*SongMutation) SetFirstAlbumArtistSort ¶
func (m *SongMutation) SetFirstAlbumArtistSort(s string)
SetFirstAlbumArtistSort sets the first_album_artist_sort field.
func (*SongMutation) SetFirstArtist ¶
func (m *SongMutation) SetFirstArtist(s string)
SetFirstArtist sets the first_artist field.
func (*SongMutation) SetFirstArtistSort ¶
func (m *SongMutation) SetFirstArtistSort(s string)
SetFirstArtistSort sets the first_artist_sort field.
func (*SongMutation) SetFirstComposer ¶
func (m *SongMutation) SetFirstComposer(s string)
SetFirstComposer sets the first_composer field.
func (*SongMutation) SetFirstComposerSort ¶
func (m *SongMutation) SetFirstComposerSort(s string)
SetFirstComposerSort sets the first_composer_sort field.
func (*SongMutation) SetGenre ¶
func (m *SongMutation) SetGenre(s string)
SetGenre sets the genre field.
func (*SongMutation) SetGrouping ¶
func (m *SongMutation) SetGrouping(s string)
SetGrouping sets the grouping field.
func (*SongMutation) SetHash ¶
func (m *SongMutation) SetHash(s string)
SetHash sets the hash field.
func (*SongMutation) SetInitialKey ¶
func (m *SongMutation) SetInitialKey(s string)
SetInitialKey sets the initial_key field.
func (*SongMutation) SetIsrc ¶
func (m *SongMutation) SetIsrc(s string)
SetIsrc sets the isrc field.
func (*SongMutation) SetLyrics ¶
func (m *SongMutation) SetLyrics(s string)
SetLyrics sets the lyrics field.
func (*SongMutation) SetMimeType ¶
func (m *SongMutation) SetMimeType(s string)
SetMimeType sets the mime_type field.
func (*SongMutation) SetModifiedDate ¶
func (m *SongMutation) SetModifiedDate(t time.Time)
SetModifiedDate sets the modified_date field.
func (*SongMutation) SetMusicBrainzArtistID ¶
func (m *SongMutation) SetMusicBrainzArtistID(s string)
SetMusicBrainzArtistID sets the music_brainz_artist_id field.
func (*SongMutation) SetMusicBrainzDiscID ¶
func (m *SongMutation) SetMusicBrainzDiscID(s string)
SetMusicBrainzDiscID sets the music_brainz_disc_id field.
func (*SongMutation) SetMusicBrainzReleaseArtistID ¶
func (m *SongMutation) SetMusicBrainzReleaseArtistID(s string)
SetMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field.
func (*SongMutation) SetMusicBrainzReleaseCountry ¶
func (m *SongMutation) SetMusicBrainzReleaseCountry(s string)
SetMusicBrainzReleaseCountry sets the music_brainz_release_country field.
func (*SongMutation) SetMusicBrainzReleaseGroupID ¶
func (m *SongMutation) SetMusicBrainzReleaseGroupID(s string)
SetMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field.
func (*SongMutation) SetMusicBrainzReleaseID ¶
func (m *SongMutation) SetMusicBrainzReleaseID(s string)
SetMusicBrainzReleaseID sets the music_brainz_release_id field.
func (*SongMutation) SetMusicBrainzReleaseStatus ¶
func (m *SongMutation) SetMusicBrainzReleaseStatus(s string)
SetMusicBrainzReleaseStatus sets the music_brainz_release_status field.
func (*SongMutation) SetMusicBrainzReleaseType ¶
func (m *SongMutation) SetMusicBrainzReleaseType(s string)
SetMusicBrainzReleaseType sets the music_brainz_release_type field.
func (*SongMutation) SetMusicBrainzTrackID ¶
func (m *SongMutation) SetMusicBrainzTrackID(s string)
SetMusicBrainzTrackID sets the music_brainz_track_id field.
func (*SongMutation) SetMusicIPID ¶
func (m *SongMutation) SetMusicIPID(s string)
SetMusicIPID sets the music_ip_id field.
func (*SongMutation) SetOfDiskNumber ¶
func (m *SongMutation) SetOfDiskNumber(u uint32)
SetOfDiskNumber sets the of_disk_number field.
func (*SongMutation) SetOfTrackNumber ¶
func (m *SongMutation) SetOfTrackNumber(u uint32)
SetOfTrackNumber sets the of_track_number field.
func (*SongMutation) SetPath ¶
func (m *SongMutation) SetPath(s string)
SetPath sets the path field.
func (*SongMutation) SetPlayCount ¶
func (m *SongMutation) SetPlayCount(u uint32)
SetPlayCount sets the play_count field.
func (*SongMutation) SetPublisher ¶
func (m *SongMutation) SetPublisher(s string)
SetPublisher sets the publisher field.
func (*SongMutation) SetRemixedBy ¶
func (m *SongMutation) SetRemixedBy(s string)
SetRemixedBy sets the remixed_by field.
func (*SongMutation) SetReplayGainAlbumGain ¶
func (m *SongMutation) SetReplayGainAlbumGain(f float64)
SetReplayGainAlbumGain sets the replay_gain_album_gain field.
func (*SongMutation) SetReplayGainAlbumPeak ¶
func (m *SongMutation) SetReplayGainAlbumPeak(f float64)
SetReplayGainAlbumPeak sets the replay_gain_album_peak field.
func (*SongMutation) SetReplayGainTrackGain ¶
func (m *SongMutation) SetReplayGainTrackGain(f float64)
SetReplayGainTrackGain sets the replay_gain_track_gain field.
func (*SongMutation) SetReplayGainTrackPeak ¶
func (m *SongMutation) SetReplayGainTrackPeak(f float64)
SetReplayGainTrackPeak sets the replay_gain_track_peak field.
func (*SongMutation) SetSkippedCount ¶
func (m *SongMutation) SetSkippedCount(u uint32)
SetSkippedCount sets the skipped_count field.
func (*SongMutation) SetSubtitle ¶
func (m *SongMutation) SetSubtitle(s string)
SetSubtitle sets the subtitle field.
func (*SongMutation) SetTitle ¶
func (m *SongMutation) SetTitle(s string)
SetTitle sets the title field.
func (*SongMutation) SetTitleSort ¶
func (m *SongMutation) SetTitleSort(s string)
SetTitleSort sets the title_sort field.
func (*SongMutation) SetTrackNumber ¶
func (m *SongMutation) SetTrackNumber(u uint32)
SetTrackNumber sets the track_number field.
func (*SongMutation) SetYear ¶
func (m *SongMutation) SetYear(u uint32)
SetYear sets the year field.
func (*SongMutation) SkippedCount ¶
func (m *SongMutation) SkippedCount() (r uint32, exists bool)
SkippedCount returns the skipped_count value in the mutation.
func (*SongMutation) Subtitle ¶
func (m *SongMutation) Subtitle() (r string, exists bool)
Subtitle returns the subtitle value in the mutation.
func (*SongMutation) SubtitleCleared ¶
func (m *SongMutation) SubtitleCleared() bool
SubtitleCleared returns if the field subtitle was cleared in this mutation.
func (*SongMutation) TagsIDs ¶
func (m *SongMutation) TagsIDs() (ids []int64)
TagsIDs returns the tags ids in the mutation.
func (*SongMutation) Title ¶
func (m *SongMutation) Title() (r string, exists bool)
Title returns the title value in the mutation.
func (*SongMutation) TitleCleared ¶
func (m *SongMutation) TitleCleared() bool
TitleCleared returns if the field title was cleared in this mutation.
func (*SongMutation) TitleSort ¶
func (m *SongMutation) TitleSort() (r string, exists bool)
TitleSort returns the title_sort value in the mutation.
func (*SongMutation) TitleSortCleared ¶
func (m *SongMutation) TitleSortCleared() bool
TitleSortCleared returns if the field title_sort was cleared in this mutation.
func (*SongMutation) TrackNumber ¶
func (m *SongMutation) TrackNumber() (r uint32, exists bool)
TrackNumber returns the track_number value in the mutation.
func (*SongMutation) TrackNumberCleared ¶
func (m *SongMutation) TrackNumberCleared() bool
TrackNumberCleared returns if the field track_number was cleared in this mutation.
func (SongMutation) Tx ¶
func (m SongMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SongMutation) Type ¶
func (m *SongMutation) Type() string
Type returns the node type of this mutation (Song).
func (*SongMutation) Year ¶
func (m *SongMutation) Year() (r uint32, exists bool)
Year returns the year value in the mutation.
func (*SongMutation) YearCleared ¶
func (m *SongMutation) YearCleared() bool
YearCleared returns if the field year was cleared in this mutation.
type SongQuery ¶
type SongQuery struct {
// contains filtered or unexported fields
}
SongQuery is the builder for querying Song entities.
func (*SongQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SongQuery) First ¶
First returns the first Song entity in the query. Returns *NotFoundError when no song was found.
func (*SongQuery) FirstID ¶
FirstID returns the first Song id in the query. Returns *NotFoundError when no id was found.
func (*SongQuery) GroupBy ¶
func (sq *SongQuery) GroupBy(field string, fields ...string) *SongGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Path string `json:"path,omitempty"` Count int `json:"count,omitempty"` } client.Song.Query(). GroupBy(song.FieldPath). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SongQuery) Only ¶
Only returns the only Song entity in the query, returns an error if not exactly one entity was returned.
func (*SongQuery) OnlyID ¶
OnlyID returns the only Song id in the query, returns an error if not exactly one id was returned.
func (*SongQuery) Select ¶
func (sq *SongQuery) Select(field string, fields ...string) *SongSelect
Select one or more fields from the given query.
Example:
var v []struct { Path string `json:"path,omitempty"` } client.Song.Query(). Select(song.FieldPath). Scan(ctx, &v)
type SongSelect ¶
type SongSelect struct {
// contains filtered or unexported fields
}
SongSelect is the builder for select fields of Song entities.
func (*SongSelect) Bool ¶
func (ss *SongSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*SongSelect) BoolX ¶
func (ss *SongSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SongSelect) Bools ¶
func (ss *SongSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*SongSelect) BoolsX ¶
func (ss *SongSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SongSelect) Float64 ¶
func (ss *SongSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*SongSelect) Float64X ¶
func (ss *SongSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SongSelect) Float64s ¶
func (ss *SongSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*SongSelect) Float64sX ¶
func (ss *SongSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SongSelect) Int ¶
func (ss *SongSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*SongSelect) IntX ¶
func (ss *SongSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SongSelect) Ints ¶
func (ss *SongSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*SongSelect) IntsX ¶
func (ss *SongSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SongSelect) Scan ¶
func (ss *SongSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*SongSelect) ScanX ¶
func (ss *SongSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SongSelect) String ¶
func (ss *SongSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*SongSelect) StringX ¶
func (ss *SongSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SongUpdate ¶
type SongUpdate struct {
// contains filtered or unexported fields
}
SongUpdate is the builder for updating Song entities.
func (*SongUpdate) AddBeatsPerMinute ¶
func (su *SongUpdate) AddBeatsPerMinute(u uint32) *SongUpdate
AddBeatsPerMinute adds u to beats_per_minute.
func (*SongUpdate) AddDiskNumber ¶
func (su *SongUpdate) AddDiskNumber(u uint32) *SongUpdate
AddDiskNumber adds u to disk_number.
func (*SongUpdate) AddDuration ¶
func (su *SongUpdate) AddDuration(u uint32) *SongUpdate
AddDuration adds u to duration.
func (*SongUpdate) AddOfDiskNumber ¶
func (su *SongUpdate) AddOfDiskNumber(u uint32) *SongUpdate
AddOfDiskNumber adds u to of_disk_number.
func (*SongUpdate) AddOfTrackNumber ¶
func (su *SongUpdate) AddOfTrackNumber(u uint32) *SongUpdate
AddOfTrackNumber adds u to of_track_number.
func (*SongUpdate) AddPlayCount ¶
func (su *SongUpdate) AddPlayCount(u uint32) *SongUpdate
AddPlayCount adds u to play_count.
func (*SongUpdate) AddReplayGainAlbumGain ¶
func (su *SongUpdate) AddReplayGainAlbumGain(f float64) *SongUpdate
AddReplayGainAlbumGain adds f to replay_gain_album_gain.
func (*SongUpdate) AddReplayGainAlbumPeak ¶
func (su *SongUpdate) AddReplayGainAlbumPeak(f float64) *SongUpdate
AddReplayGainAlbumPeak adds f to replay_gain_album_peak.
func (*SongUpdate) AddReplayGainTrackGain ¶
func (su *SongUpdate) AddReplayGainTrackGain(f float64) *SongUpdate
AddReplayGainTrackGain adds f to replay_gain_track_gain.
func (*SongUpdate) AddReplayGainTrackPeak ¶
func (su *SongUpdate) AddReplayGainTrackPeak(f float64) *SongUpdate
AddReplayGainTrackPeak adds f to replay_gain_track_peak.
func (*SongUpdate) AddSkippedCount ¶
func (su *SongUpdate) AddSkippedCount(u uint32) *SongUpdate
AddSkippedCount adds u to skipped_count.
func (*SongUpdate) AddTagIDs ¶
func (su *SongUpdate) AddTagIDs(ids ...int64) *SongUpdate
AddTagIDs adds the tags edge to Tag by ids.
func (*SongUpdate) AddTags ¶
func (su *SongUpdate) AddTags(t ...*Tag) *SongUpdate
AddTags adds the tags edges to Tag.
func (*SongUpdate) AddTrackNumber ¶
func (su *SongUpdate) AddTrackNumber(u uint32) *SongUpdate
AddTrackNumber adds u to track_number.
func (*SongUpdate) AddYear ¶
func (su *SongUpdate) AddYear(u uint32) *SongUpdate
AddYear adds u to year.
func (*SongUpdate) ClearAlbum ¶
func (su *SongUpdate) ClearAlbum() *SongUpdate
ClearAlbum clears the value of album.
func (*SongUpdate) ClearAlbumArtist ¶
func (su *SongUpdate) ClearAlbumArtist() *SongUpdate
ClearAlbumArtist clears the value of album_artist.
func (*SongUpdate) ClearArtists ¶
func (su *SongUpdate) ClearArtists() *SongUpdate
ClearArtists clears the value of artists.
func (*SongUpdate) ClearArtistsSort ¶
func (su *SongUpdate) ClearArtistsSort() *SongUpdate
ClearArtistsSort clears the value of artists_sort.
func (*SongUpdate) ClearBeatsPerMinute ¶
func (su *SongUpdate) ClearBeatsPerMinute() *SongUpdate
ClearBeatsPerMinute clears the value of beats_per_minute.
func (*SongUpdate) ClearComment ¶
func (su *SongUpdate) ClearComment() *SongUpdate
ClearComment clears the value of comment.
func (*SongUpdate) ClearComposers ¶
func (su *SongUpdate) ClearComposers() *SongUpdate
ClearComposers clears the value of composers.
func (*SongUpdate) ClearConductor ¶
func (su *SongUpdate) ClearConductor() *SongUpdate
ClearConductor clears the value of conductor.
func (*SongUpdate) ClearCopyright ¶
func (su *SongUpdate) ClearCopyright() *SongUpdate
ClearCopyright clears the value of copyright.
func (*SongUpdate) ClearCreatedDate ¶
func (su *SongUpdate) ClearCreatedDate() *SongUpdate
ClearCreatedDate clears the value of created_date.
func (*SongUpdate) ClearDateTagged ¶
func (su *SongUpdate) ClearDateTagged() *SongUpdate
ClearDateTagged clears the value of date_tagged.
func (*SongUpdate) ClearDescription ¶
func (su *SongUpdate) ClearDescription() *SongUpdate
ClearDescription clears the value of description.
func (*SongUpdate) ClearDiskNumber ¶
func (su *SongUpdate) ClearDiskNumber() *SongUpdate
ClearDiskNumber clears the value of disk_number.
func (*SongUpdate) ClearDuration ¶
func (su *SongUpdate) ClearDuration() *SongUpdate
ClearDuration clears the value of duration.
func (*SongUpdate) ClearFirstAlbumArtist ¶
func (su *SongUpdate) ClearFirstAlbumArtist() *SongUpdate
ClearFirstAlbumArtist clears the value of first_album_artist.
func (*SongUpdate) ClearFirstAlbumArtistSort ¶
func (su *SongUpdate) ClearFirstAlbumArtistSort() *SongUpdate
ClearFirstAlbumArtistSort clears the value of first_album_artist_sort.
func (*SongUpdate) ClearFirstArtist ¶
func (su *SongUpdate) ClearFirstArtist() *SongUpdate
ClearFirstArtist clears the value of first_artist.
func (*SongUpdate) ClearFirstArtistSort ¶
func (su *SongUpdate) ClearFirstArtistSort() *SongUpdate
ClearFirstArtistSort clears the value of first_artist_sort.
func (*SongUpdate) ClearFirstComposer ¶
func (su *SongUpdate) ClearFirstComposer() *SongUpdate
ClearFirstComposer clears the value of first_composer.
func (*SongUpdate) ClearFirstComposerSort ¶
func (su *SongUpdate) ClearFirstComposerSort() *SongUpdate
ClearFirstComposerSort clears the value of first_composer_sort.
func (*SongUpdate) ClearGenre ¶
func (su *SongUpdate) ClearGenre() *SongUpdate
ClearGenre clears the value of genre.
func (*SongUpdate) ClearGrouping ¶
func (su *SongUpdate) ClearGrouping() *SongUpdate
ClearGrouping clears the value of grouping.
func (*SongUpdate) ClearInitialKey ¶
func (su *SongUpdate) ClearInitialKey() *SongUpdate
ClearInitialKey clears the value of initial_key.
func (*SongUpdate) ClearIsrc ¶
func (su *SongUpdate) ClearIsrc() *SongUpdate
ClearIsrc clears the value of isrc.
func (*SongUpdate) ClearLyrics ¶
func (su *SongUpdate) ClearLyrics() *SongUpdate
ClearLyrics clears the value of lyrics.
func (*SongUpdate) ClearMimeType ¶
func (su *SongUpdate) ClearMimeType() *SongUpdate
ClearMimeType clears the value of mime_type.
func (*SongUpdate) ClearModifiedDate ¶
func (su *SongUpdate) ClearModifiedDate() *SongUpdate
ClearModifiedDate clears the value of modified_date.
func (*SongUpdate) ClearMusicBrainzArtistID ¶
func (su *SongUpdate) ClearMusicBrainzArtistID() *SongUpdate
ClearMusicBrainzArtistID clears the value of music_brainz_artist_id.
func (*SongUpdate) ClearMusicBrainzDiscID ¶
func (su *SongUpdate) ClearMusicBrainzDiscID() *SongUpdate
ClearMusicBrainzDiscID clears the value of music_brainz_disc_id.
func (*SongUpdate) ClearMusicBrainzReleaseArtistID ¶
func (su *SongUpdate) ClearMusicBrainzReleaseArtistID() *SongUpdate
ClearMusicBrainzReleaseArtistID clears the value of music_brainz_release_artist_id.
func (*SongUpdate) ClearMusicBrainzReleaseCountry ¶
func (su *SongUpdate) ClearMusicBrainzReleaseCountry() *SongUpdate
ClearMusicBrainzReleaseCountry clears the value of music_brainz_release_country.
func (*SongUpdate) ClearMusicBrainzReleaseGroupID ¶
func (su *SongUpdate) ClearMusicBrainzReleaseGroupID() *SongUpdate
ClearMusicBrainzReleaseGroupID clears the value of music_brainz_release_group_id.
func (*SongUpdate) ClearMusicBrainzReleaseID ¶
func (su *SongUpdate) ClearMusicBrainzReleaseID() *SongUpdate
ClearMusicBrainzReleaseID clears the value of music_brainz_release_id.
func (*SongUpdate) ClearMusicBrainzReleaseStatus ¶
func (su *SongUpdate) ClearMusicBrainzReleaseStatus() *SongUpdate
ClearMusicBrainzReleaseStatus clears the value of music_brainz_release_status.
func (*SongUpdate) ClearMusicBrainzReleaseType ¶
func (su *SongUpdate) ClearMusicBrainzReleaseType() *SongUpdate
ClearMusicBrainzReleaseType clears the value of music_brainz_release_type.
func (*SongUpdate) ClearMusicBrainzTrackID ¶
func (su *SongUpdate) ClearMusicBrainzTrackID() *SongUpdate
ClearMusicBrainzTrackID clears the value of music_brainz_track_id.
func (*SongUpdate) ClearMusicIPID ¶
func (su *SongUpdate) ClearMusicIPID() *SongUpdate
ClearMusicIPID clears the value of music_ip_id.
func (*SongUpdate) ClearOfDiskNumber ¶
func (su *SongUpdate) ClearOfDiskNumber() *SongUpdate
ClearOfDiskNumber clears the value of of_disk_number.
func (*SongUpdate) ClearOfTrackNumber ¶
func (su *SongUpdate) ClearOfTrackNumber() *SongUpdate
ClearOfTrackNumber clears the value of of_track_number.
func (*SongUpdate) ClearPublisher ¶
func (su *SongUpdate) ClearPublisher() *SongUpdate
ClearPublisher clears the value of publisher.
func (*SongUpdate) ClearRemixedBy ¶
func (su *SongUpdate) ClearRemixedBy() *SongUpdate
ClearRemixedBy clears the value of remixed_by.
func (*SongUpdate) ClearReplayGainAlbumGain ¶
func (su *SongUpdate) ClearReplayGainAlbumGain() *SongUpdate
ClearReplayGainAlbumGain clears the value of replay_gain_album_gain.
func (*SongUpdate) ClearReplayGainAlbumPeak ¶
func (su *SongUpdate) ClearReplayGainAlbumPeak() *SongUpdate
ClearReplayGainAlbumPeak clears the value of replay_gain_album_peak.
func (*SongUpdate) ClearReplayGainTrackGain ¶
func (su *SongUpdate) ClearReplayGainTrackGain() *SongUpdate
ClearReplayGainTrackGain clears the value of replay_gain_track_gain.
func (*SongUpdate) ClearReplayGainTrackPeak ¶
func (su *SongUpdate) ClearReplayGainTrackPeak() *SongUpdate
ClearReplayGainTrackPeak clears the value of replay_gain_track_peak.
func (*SongUpdate) ClearSubtitle ¶
func (su *SongUpdate) ClearSubtitle() *SongUpdate
ClearSubtitle clears the value of subtitle.
func (*SongUpdate) ClearTitle ¶
func (su *SongUpdate) ClearTitle() *SongUpdate
ClearTitle clears the value of title.
func (*SongUpdate) ClearTitleSort ¶
func (su *SongUpdate) ClearTitleSort() *SongUpdate
ClearTitleSort clears the value of title_sort.
func (*SongUpdate) ClearTrackNumber ¶
func (su *SongUpdate) ClearTrackNumber() *SongUpdate
ClearTrackNumber clears the value of track_number.
func (*SongUpdate) ClearYear ¶
func (su *SongUpdate) ClearYear() *SongUpdate
ClearYear clears the value of year.
func (*SongUpdate) Exec ¶
func (su *SongUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SongUpdate) ExecX ¶
func (su *SongUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SongUpdate) Mutation ¶
func (su *SongUpdate) Mutation() *SongMutation
Mutation returns the SongMutation object of the builder.
func (*SongUpdate) RemoveTagIDs ¶
func (su *SongUpdate) RemoveTagIDs(ids ...int64) *SongUpdate
RemoveTagIDs removes the tags edge to Tag by ids.
func (*SongUpdate) RemoveTags ¶
func (su *SongUpdate) RemoveTags(t ...*Tag) *SongUpdate
RemoveTags removes tags edges to Tag.
func (*SongUpdate) Save ¶
func (su *SongUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*SongUpdate) SaveX ¶
func (su *SongUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SongUpdate) SetAlbum ¶
func (su *SongUpdate) SetAlbum(s string) *SongUpdate
SetAlbum sets the album field.
func (*SongUpdate) SetAlbumArtist ¶
func (su *SongUpdate) SetAlbumArtist(s string) *SongUpdate
SetAlbumArtist sets the album_artist field.
func (*SongUpdate) SetArtists ¶
func (su *SongUpdate) SetArtists(s []string) *SongUpdate
SetArtists sets the artists field.
func (*SongUpdate) SetArtistsSort ¶
func (su *SongUpdate) SetArtistsSort(s string) *SongUpdate
SetArtistsSort sets the artists_sort field.
func (*SongUpdate) SetBeatsPerMinute ¶
func (su *SongUpdate) SetBeatsPerMinute(u uint32) *SongUpdate
SetBeatsPerMinute sets the beats_per_minute field.
func (*SongUpdate) SetComment ¶
func (su *SongUpdate) SetComment(s string) *SongUpdate
SetComment sets the comment field.
func (*SongUpdate) SetComposers ¶
func (su *SongUpdate) SetComposers(s string) *SongUpdate
SetComposers sets the composers field.
func (*SongUpdate) SetConductor ¶
func (su *SongUpdate) SetConductor(s string) *SongUpdate
SetConductor sets the conductor field.
func (*SongUpdate) SetCopyright ¶
func (su *SongUpdate) SetCopyright(s string) *SongUpdate
SetCopyright sets the copyright field.
func (*SongUpdate) SetCreatedDate ¶
func (su *SongUpdate) SetCreatedDate(t time.Time) *SongUpdate
SetCreatedDate sets the created_date field.
func (*SongUpdate) SetDateTagged ¶
func (su *SongUpdate) SetDateTagged(t time.Time) *SongUpdate
SetDateTagged sets the date_tagged field.
func (*SongUpdate) SetDescription ¶
func (su *SongUpdate) SetDescription(s string) *SongUpdate
SetDescription sets the description field.
func (*SongUpdate) SetDiskNumber ¶
func (su *SongUpdate) SetDiskNumber(u uint32) *SongUpdate
SetDiskNumber sets the disk_number field.
func (*SongUpdate) SetDuration ¶
func (su *SongUpdate) SetDuration(u uint32) *SongUpdate
SetDuration sets the duration field.
func (*SongUpdate) SetFirstAlbumArtist ¶
func (su *SongUpdate) SetFirstAlbumArtist(s string) *SongUpdate
SetFirstAlbumArtist sets the first_album_artist field.
func (*SongUpdate) SetFirstAlbumArtistSort ¶
func (su *SongUpdate) SetFirstAlbumArtistSort(s string) *SongUpdate
SetFirstAlbumArtistSort sets the first_album_artist_sort field.
func (*SongUpdate) SetFirstArtist ¶
func (su *SongUpdate) SetFirstArtist(s string) *SongUpdate
SetFirstArtist sets the first_artist field.
func (*SongUpdate) SetFirstArtistSort ¶
func (su *SongUpdate) SetFirstArtistSort(s string) *SongUpdate
SetFirstArtistSort sets the first_artist_sort field.
func (*SongUpdate) SetFirstComposer ¶
func (su *SongUpdate) SetFirstComposer(s string) *SongUpdate
SetFirstComposer sets the first_composer field.
func (*SongUpdate) SetFirstComposerSort ¶
func (su *SongUpdate) SetFirstComposerSort(s string) *SongUpdate
SetFirstComposerSort sets the first_composer_sort field.
func (*SongUpdate) SetGenre ¶
func (su *SongUpdate) SetGenre(s string) *SongUpdate
SetGenre sets the genre field.
func (*SongUpdate) SetGrouping ¶
func (su *SongUpdate) SetGrouping(s string) *SongUpdate
SetGrouping sets the grouping field.
func (*SongUpdate) SetHash ¶
func (su *SongUpdate) SetHash(s string) *SongUpdate
SetHash sets the hash field.
func (*SongUpdate) SetInitialKey ¶
func (su *SongUpdate) SetInitialKey(s string) *SongUpdate
SetInitialKey sets the initial_key field.
func (*SongUpdate) SetIsrc ¶
func (su *SongUpdate) SetIsrc(s string) *SongUpdate
SetIsrc sets the isrc field.
func (*SongUpdate) SetLyrics ¶
func (su *SongUpdate) SetLyrics(s string) *SongUpdate
SetLyrics sets the lyrics field.
func (*SongUpdate) SetMimeType ¶
func (su *SongUpdate) SetMimeType(s string) *SongUpdate
SetMimeType sets the mime_type field.
func (*SongUpdate) SetModifiedDate ¶
func (su *SongUpdate) SetModifiedDate(t time.Time) *SongUpdate
SetModifiedDate sets the modified_date field.
func (*SongUpdate) SetMusicBrainzArtistID ¶
func (su *SongUpdate) SetMusicBrainzArtistID(s string) *SongUpdate
SetMusicBrainzArtistID sets the music_brainz_artist_id field.
func (*SongUpdate) SetMusicBrainzDiscID ¶
func (su *SongUpdate) SetMusicBrainzDiscID(s string) *SongUpdate
SetMusicBrainzDiscID sets the music_brainz_disc_id field.
func (*SongUpdate) SetMusicBrainzReleaseArtistID ¶
func (su *SongUpdate) SetMusicBrainzReleaseArtistID(s string) *SongUpdate
SetMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field.
func (*SongUpdate) SetMusicBrainzReleaseCountry ¶
func (su *SongUpdate) SetMusicBrainzReleaseCountry(s string) *SongUpdate
SetMusicBrainzReleaseCountry sets the music_brainz_release_country field.
func (*SongUpdate) SetMusicBrainzReleaseGroupID ¶
func (su *SongUpdate) SetMusicBrainzReleaseGroupID(s string) *SongUpdate
SetMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field.
func (*SongUpdate) SetMusicBrainzReleaseID ¶
func (su *SongUpdate) SetMusicBrainzReleaseID(s string) *SongUpdate
SetMusicBrainzReleaseID sets the music_brainz_release_id field.
func (*SongUpdate) SetMusicBrainzReleaseStatus ¶
func (su *SongUpdate) SetMusicBrainzReleaseStatus(s string) *SongUpdate
SetMusicBrainzReleaseStatus sets the music_brainz_release_status field.
func (*SongUpdate) SetMusicBrainzReleaseType ¶
func (su *SongUpdate) SetMusicBrainzReleaseType(s string) *SongUpdate
SetMusicBrainzReleaseType sets the music_brainz_release_type field.
func (*SongUpdate) SetMusicBrainzTrackID ¶
func (su *SongUpdate) SetMusicBrainzTrackID(s string) *SongUpdate
SetMusicBrainzTrackID sets the music_brainz_track_id field.
func (*SongUpdate) SetMusicIPID ¶
func (su *SongUpdate) SetMusicIPID(s string) *SongUpdate
SetMusicIPID sets the music_ip_id field.
func (*SongUpdate) SetNillableAlbum ¶
func (su *SongUpdate) SetNillableAlbum(s *string) *SongUpdate
SetNillableAlbum sets the album field if the given value is not nil.
func (*SongUpdate) SetNillableAlbumArtist ¶
func (su *SongUpdate) SetNillableAlbumArtist(s *string) *SongUpdate
SetNillableAlbumArtist sets the album_artist field if the given value is not nil.
func (*SongUpdate) SetNillableArtistsSort ¶
func (su *SongUpdate) SetNillableArtistsSort(s *string) *SongUpdate
SetNillableArtistsSort sets the artists_sort field if the given value is not nil.
func (*SongUpdate) SetNillableBeatsPerMinute ¶
func (su *SongUpdate) SetNillableBeatsPerMinute(u *uint32) *SongUpdate
SetNillableBeatsPerMinute sets the beats_per_minute field if the given value is not nil.
func (*SongUpdate) SetNillableComment ¶
func (su *SongUpdate) SetNillableComment(s *string) *SongUpdate
SetNillableComment sets the comment field if the given value is not nil.
func (*SongUpdate) SetNillableComposers ¶
func (su *SongUpdate) SetNillableComposers(s *string) *SongUpdate
SetNillableComposers sets the composers field if the given value is not nil.
func (*SongUpdate) SetNillableConductor ¶
func (su *SongUpdate) SetNillableConductor(s *string) *SongUpdate
SetNillableConductor sets the conductor field if the given value is not nil.
func (*SongUpdate) SetNillableCopyright ¶
func (su *SongUpdate) SetNillableCopyright(s *string) *SongUpdate
SetNillableCopyright sets the copyright field if the given value is not nil.
func (*SongUpdate) SetNillableCreatedDate ¶
func (su *SongUpdate) SetNillableCreatedDate(t *time.Time) *SongUpdate
SetNillableCreatedDate sets the created_date field if the given value is not nil.
func (*SongUpdate) SetNillableDateTagged ¶
func (su *SongUpdate) SetNillableDateTagged(t *time.Time) *SongUpdate
SetNillableDateTagged sets the date_tagged field if the given value is not nil.
func (*SongUpdate) SetNillableDescription ¶
func (su *SongUpdate) SetNillableDescription(s *string) *SongUpdate
SetNillableDescription sets the description field if the given value is not nil.
func (*SongUpdate) SetNillableDiskNumber ¶
func (su *SongUpdate) SetNillableDiskNumber(u *uint32) *SongUpdate
SetNillableDiskNumber sets the disk_number field if the given value is not nil.
func (*SongUpdate) SetNillableDuration ¶
func (su *SongUpdate) SetNillableDuration(u *uint32) *SongUpdate
SetNillableDuration sets the duration field if the given value is not nil.
func (*SongUpdate) SetNillableFirstAlbumArtist ¶
func (su *SongUpdate) SetNillableFirstAlbumArtist(s *string) *SongUpdate
SetNillableFirstAlbumArtist sets the first_album_artist field if the given value is not nil.
func (*SongUpdate) SetNillableFirstAlbumArtistSort ¶
func (su *SongUpdate) SetNillableFirstAlbumArtistSort(s *string) *SongUpdate
SetNillableFirstAlbumArtistSort sets the first_album_artist_sort field if the given value is not nil.
func (*SongUpdate) SetNillableFirstArtist ¶
func (su *SongUpdate) SetNillableFirstArtist(s *string) *SongUpdate
SetNillableFirstArtist sets the first_artist field if the given value is not nil.
func (*SongUpdate) SetNillableFirstArtistSort ¶
func (su *SongUpdate) SetNillableFirstArtistSort(s *string) *SongUpdate
SetNillableFirstArtistSort sets the first_artist_sort field if the given value is not nil.
func (*SongUpdate) SetNillableFirstComposer ¶
func (su *SongUpdate) SetNillableFirstComposer(s *string) *SongUpdate
SetNillableFirstComposer sets the first_composer field if the given value is not nil.
func (*SongUpdate) SetNillableFirstComposerSort ¶
func (su *SongUpdate) SetNillableFirstComposerSort(s *string) *SongUpdate
SetNillableFirstComposerSort sets the first_composer_sort field if the given value is not nil.
func (*SongUpdate) SetNillableGenre ¶
func (su *SongUpdate) SetNillableGenre(s *string) *SongUpdate
SetNillableGenre sets the genre field if the given value is not nil.
func (*SongUpdate) SetNillableGrouping ¶
func (su *SongUpdate) SetNillableGrouping(s *string) *SongUpdate
SetNillableGrouping sets the grouping field if the given value is not nil.
func (*SongUpdate) SetNillableInitialKey ¶
func (su *SongUpdate) SetNillableInitialKey(s *string) *SongUpdate
SetNillableInitialKey sets the initial_key field if the given value is not nil.
func (*SongUpdate) SetNillableIsrc ¶
func (su *SongUpdate) SetNillableIsrc(s *string) *SongUpdate
SetNillableIsrc sets the isrc field if the given value is not nil.
func (*SongUpdate) SetNillableLyrics ¶
func (su *SongUpdate) SetNillableLyrics(s *string) *SongUpdate
SetNillableLyrics sets the lyrics field if the given value is not nil.
func (*SongUpdate) SetNillableMimeType ¶
func (su *SongUpdate) SetNillableMimeType(s *string) *SongUpdate
SetNillableMimeType sets the mime_type field if the given value is not nil.
func (*SongUpdate) SetNillableModifiedDate ¶
func (su *SongUpdate) SetNillableModifiedDate(t *time.Time) *SongUpdate
SetNillableModifiedDate sets the modified_date field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzArtistID ¶
func (su *SongUpdate) SetNillableMusicBrainzArtistID(s *string) *SongUpdate
SetNillableMusicBrainzArtistID sets the music_brainz_artist_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzDiscID ¶
func (su *SongUpdate) SetNillableMusicBrainzDiscID(s *string) *SongUpdate
SetNillableMusicBrainzDiscID sets the music_brainz_disc_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseArtistID ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseArtistID(s *string) *SongUpdate
SetNillableMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseCountry ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseCountry(s *string) *SongUpdate
SetNillableMusicBrainzReleaseCountry sets the music_brainz_release_country field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseGroupID ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseGroupID(s *string) *SongUpdate
SetNillableMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseID ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseID(s *string) *SongUpdate
SetNillableMusicBrainzReleaseID sets the music_brainz_release_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseStatus ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseStatus(s *string) *SongUpdate
SetNillableMusicBrainzReleaseStatus sets the music_brainz_release_status field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzReleaseType ¶
func (su *SongUpdate) SetNillableMusicBrainzReleaseType(s *string) *SongUpdate
SetNillableMusicBrainzReleaseType sets the music_brainz_release_type field if the given value is not nil.
func (*SongUpdate) SetNillableMusicBrainzTrackID ¶
func (su *SongUpdate) SetNillableMusicBrainzTrackID(s *string) *SongUpdate
SetNillableMusicBrainzTrackID sets the music_brainz_track_id field if the given value is not nil.
func (*SongUpdate) SetNillableMusicIPID ¶
func (su *SongUpdate) SetNillableMusicIPID(s *string) *SongUpdate
SetNillableMusicIPID sets the music_ip_id field if the given value is not nil.
func (*SongUpdate) SetNillableOfDiskNumber ¶
func (su *SongUpdate) SetNillableOfDiskNumber(u *uint32) *SongUpdate
SetNillableOfDiskNumber sets the of_disk_number field if the given value is not nil.
func (*SongUpdate) SetNillableOfTrackNumber ¶
func (su *SongUpdate) SetNillableOfTrackNumber(u *uint32) *SongUpdate
SetNillableOfTrackNumber sets the of_track_number field if the given value is not nil.
func (*SongUpdate) SetNillablePlayCount ¶
func (su *SongUpdate) SetNillablePlayCount(u *uint32) *SongUpdate
SetNillablePlayCount sets the play_count field if the given value is not nil.
func (*SongUpdate) SetNillablePublisher ¶
func (su *SongUpdate) SetNillablePublisher(s *string) *SongUpdate
SetNillablePublisher sets the publisher field if the given value is not nil.
func (*SongUpdate) SetNillableRemixedBy ¶
func (su *SongUpdate) SetNillableRemixedBy(s *string) *SongUpdate
SetNillableRemixedBy sets the remixed_by field if the given value is not nil.
func (*SongUpdate) SetNillableReplayGainAlbumGain ¶
func (su *SongUpdate) SetNillableReplayGainAlbumGain(f *float64) *SongUpdate
SetNillableReplayGainAlbumGain sets the replay_gain_album_gain field if the given value is not nil.
func (*SongUpdate) SetNillableReplayGainAlbumPeak ¶
func (su *SongUpdate) SetNillableReplayGainAlbumPeak(f *float64) *SongUpdate
SetNillableReplayGainAlbumPeak sets the replay_gain_album_peak field if the given value is not nil.
func (*SongUpdate) SetNillableReplayGainTrackGain ¶
func (su *SongUpdate) SetNillableReplayGainTrackGain(f *float64) *SongUpdate
SetNillableReplayGainTrackGain sets the replay_gain_track_gain field if the given value is not nil.
func (*SongUpdate) SetNillableReplayGainTrackPeak ¶
func (su *SongUpdate) SetNillableReplayGainTrackPeak(f *float64) *SongUpdate
SetNillableReplayGainTrackPeak sets the replay_gain_track_peak field if the given value is not nil.
func (*SongUpdate) SetNillableSkippedCount ¶
func (su *SongUpdate) SetNillableSkippedCount(u *uint32) *SongUpdate
SetNillableSkippedCount sets the skipped_count field if the given value is not nil.
func (*SongUpdate) SetNillableSubtitle ¶
func (su *SongUpdate) SetNillableSubtitle(s *string) *SongUpdate
SetNillableSubtitle sets the subtitle field if the given value is not nil.
func (*SongUpdate) SetNillableTitle ¶
func (su *SongUpdate) SetNillableTitle(s *string) *SongUpdate
SetNillableTitle sets the title field if the given value is not nil.
func (*SongUpdate) SetNillableTitleSort ¶
func (su *SongUpdate) SetNillableTitleSort(s *string) *SongUpdate
SetNillableTitleSort sets the title_sort field if the given value is not nil.
func (*SongUpdate) SetNillableTrackNumber ¶
func (su *SongUpdate) SetNillableTrackNumber(u *uint32) *SongUpdate
SetNillableTrackNumber sets the track_number field if the given value is not nil.
func (*SongUpdate) SetNillableYear ¶
func (su *SongUpdate) SetNillableYear(u *uint32) *SongUpdate
SetNillableYear sets the year field if the given value is not nil.
func (*SongUpdate) SetOfDiskNumber ¶
func (su *SongUpdate) SetOfDiskNumber(u uint32) *SongUpdate
SetOfDiskNumber sets the of_disk_number field.
func (*SongUpdate) SetOfTrackNumber ¶
func (su *SongUpdate) SetOfTrackNumber(u uint32) *SongUpdate
SetOfTrackNumber sets the of_track_number field.
func (*SongUpdate) SetPath ¶
func (su *SongUpdate) SetPath(s string) *SongUpdate
SetPath sets the path field.
func (*SongUpdate) SetPlayCount ¶
func (su *SongUpdate) SetPlayCount(u uint32) *SongUpdate
SetPlayCount sets the play_count field.
func (*SongUpdate) SetPublisher ¶
func (su *SongUpdate) SetPublisher(s string) *SongUpdate
SetPublisher sets the publisher field.
func (*SongUpdate) SetRemixedBy ¶
func (su *SongUpdate) SetRemixedBy(s string) *SongUpdate
SetRemixedBy sets the remixed_by field.
func (*SongUpdate) SetReplayGainAlbumGain ¶
func (su *SongUpdate) SetReplayGainAlbumGain(f float64) *SongUpdate
SetReplayGainAlbumGain sets the replay_gain_album_gain field.
func (*SongUpdate) SetReplayGainAlbumPeak ¶
func (su *SongUpdate) SetReplayGainAlbumPeak(f float64) *SongUpdate
SetReplayGainAlbumPeak sets the replay_gain_album_peak field.
func (*SongUpdate) SetReplayGainTrackGain ¶
func (su *SongUpdate) SetReplayGainTrackGain(f float64) *SongUpdate
SetReplayGainTrackGain sets the replay_gain_track_gain field.
func (*SongUpdate) SetReplayGainTrackPeak ¶
func (su *SongUpdate) SetReplayGainTrackPeak(f float64) *SongUpdate
SetReplayGainTrackPeak sets the replay_gain_track_peak field.
func (*SongUpdate) SetSkippedCount ¶
func (su *SongUpdate) SetSkippedCount(u uint32) *SongUpdate
SetSkippedCount sets the skipped_count field.
func (*SongUpdate) SetSubtitle ¶
func (su *SongUpdate) SetSubtitle(s string) *SongUpdate
SetSubtitle sets the subtitle field.
func (*SongUpdate) SetTitle ¶
func (su *SongUpdate) SetTitle(s string) *SongUpdate
SetTitle sets the title field.
func (*SongUpdate) SetTitleSort ¶
func (su *SongUpdate) SetTitleSort(s string) *SongUpdate
SetTitleSort sets the title_sort field.
func (*SongUpdate) SetTrackNumber ¶
func (su *SongUpdate) SetTrackNumber(u uint32) *SongUpdate
SetTrackNumber sets the track_number field.
func (*SongUpdate) SetYear ¶
func (su *SongUpdate) SetYear(u uint32) *SongUpdate
SetYear sets the year field.
func (*SongUpdate) Where ¶
func (su *SongUpdate) Where(ps ...predicate.Song) *SongUpdate
Where adds a new predicate for the builder.
type SongUpdateOne ¶
type SongUpdateOne struct {
// contains filtered or unexported fields
}
SongUpdateOne is the builder for updating a single Song entity.
func (*SongUpdateOne) AddBeatsPerMinute ¶
func (suo *SongUpdateOne) AddBeatsPerMinute(u uint32) *SongUpdateOne
AddBeatsPerMinute adds u to beats_per_minute.
func (*SongUpdateOne) AddDiskNumber ¶
func (suo *SongUpdateOne) AddDiskNumber(u uint32) *SongUpdateOne
AddDiskNumber adds u to disk_number.
func (*SongUpdateOne) AddDuration ¶
func (suo *SongUpdateOne) AddDuration(u uint32) *SongUpdateOne
AddDuration adds u to duration.
func (*SongUpdateOne) AddOfDiskNumber ¶
func (suo *SongUpdateOne) AddOfDiskNumber(u uint32) *SongUpdateOne
AddOfDiskNumber adds u to of_disk_number.
func (*SongUpdateOne) AddOfTrackNumber ¶
func (suo *SongUpdateOne) AddOfTrackNumber(u uint32) *SongUpdateOne
AddOfTrackNumber adds u to of_track_number.
func (*SongUpdateOne) AddPlayCount ¶
func (suo *SongUpdateOne) AddPlayCount(u uint32) *SongUpdateOne
AddPlayCount adds u to play_count.
func (*SongUpdateOne) AddReplayGainAlbumGain ¶
func (suo *SongUpdateOne) AddReplayGainAlbumGain(f float64) *SongUpdateOne
AddReplayGainAlbumGain adds f to replay_gain_album_gain.
func (*SongUpdateOne) AddReplayGainAlbumPeak ¶
func (suo *SongUpdateOne) AddReplayGainAlbumPeak(f float64) *SongUpdateOne
AddReplayGainAlbumPeak adds f to replay_gain_album_peak.
func (*SongUpdateOne) AddReplayGainTrackGain ¶
func (suo *SongUpdateOne) AddReplayGainTrackGain(f float64) *SongUpdateOne
AddReplayGainTrackGain adds f to replay_gain_track_gain.
func (*SongUpdateOne) AddReplayGainTrackPeak ¶
func (suo *SongUpdateOne) AddReplayGainTrackPeak(f float64) *SongUpdateOne
AddReplayGainTrackPeak adds f to replay_gain_track_peak.
func (*SongUpdateOne) AddSkippedCount ¶
func (suo *SongUpdateOne) AddSkippedCount(u uint32) *SongUpdateOne
AddSkippedCount adds u to skipped_count.
func (*SongUpdateOne) AddTagIDs ¶
func (suo *SongUpdateOne) AddTagIDs(ids ...int64) *SongUpdateOne
AddTagIDs adds the tags edge to Tag by ids.
func (*SongUpdateOne) AddTags ¶
func (suo *SongUpdateOne) AddTags(t ...*Tag) *SongUpdateOne
AddTags adds the tags edges to Tag.
func (*SongUpdateOne) AddTrackNumber ¶
func (suo *SongUpdateOne) AddTrackNumber(u uint32) *SongUpdateOne
AddTrackNumber adds u to track_number.
func (*SongUpdateOne) AddYear ¶
func (suo *SongUpdateOne) AddYear(u uint32) *SongUpdateOne
AddYear adds u to year.
func (*SongUpdateOne) ClearAlbum ¶
func (suo *SongUpdateOne) ClearAlbum() *SongUpdateOne
ClearAlbum clears the value of album.
func (*SongUpdateOne) ClearAlbumArtist ¶
func (suo *SongUpdateOne) ClearAlbumArtist() *SongUpdateOne
ClearAlbumArtist clears the value of album_artist.
func (*SongUpdateOne) ClearArtists ¶
func (suo *SongUpdateOne) ClearArtists() *SongUpdateOne
ClearArtists clears the value of artists.
func (*SongUpdateOne) ClearArtistsSort ¶
func (suo *SongUpdateOne) ClearArtistsSort() *SongUpdateOne
ClearArtistsSort clears the value of artists_sort.
func (*SongUpdateOne) ClearBeatsPerMinute ¶
func (suo *SongUpdateOne) ClearBeatsPerMinute() *SongUpdateOne
ClearBeatsPerMinute clears the value of beats_per_minute.
func (*SongUpdateOne) ClearComment ¶
func (suo *SongUpdateOne) ClearComment() *SongUpdateOne
ClearComment clears the value of comment.
func (*SongUpdateOne) ClearComposers ¶
func (suo *SongUpdateOne) ClearComposers() *SongUpdateOne
ClearComposers clears the value of composers.
func (*SongUpdateOne) ClearConductor ¶
func (suo *SongUpdateOne) ClearConductor() *SongUpdateOne
ClearConductor clears the value of conductor.
func (*SongUpdateOne) ClearCopyright ¶
func (suo *SongUpdateOne) ClearCopyright() *SongUpdateOne
ClearCopyright clears the value of copyright.
func (*SongUpdateOne) ClearCreatedDate ¶
func (suo *SongUpdateOne) ClearCreatedDate() *SongUpdateOne
ClearCreatedDate clears the value of created_date.
func (*SongUpdateOne) ClearDateTagged ¶
func (suo *SongUpdateOne) ClearDateTagged() *SongUpdateOne
ClearDateTagged clears the value of date_tagged.
func (*SongUpdateOne) ClearDescription ¶
func (suo *SongUpdateOne) ClearDescription() *SongUpdateOne
ClearDescription clears the value of description.
func (*SongUpdateOne) ClearDiskNumber ¶
func (suo *SongUpdateOne) ClearDiskNumber() *SongUpdateOne
ClearDiskNumber clears the value of disk_number.
func (*SongUpdateOne) ClearDuration ¶
func (suo *SongUpdateOne) ClearDuration() *SongUpdateOne
ClearDuration clears the value of duration.
func (*SongUpdateOne) ClearFirstAlbumArtist ¶
func (suo *SongUpdateOne) ClearFirstAlbumArtist() *SongUpdateOne
ClearFirstAlbumArtist clears the value of first_album_artist.
func (*SongUpdateOne) ClearFirstAlbumArtistSort ¶
func (suo *SongUpdateOne) ClearFirstAlbumArtistSort() *SongUpdateOne
ClearFirstAlbumArtistSort clears the value of first_album_artist_sort.
func (*SongUpdateOne) ClearFirstArtist ¶
func (suo *SongUpdateOne) ClearFirstArtist() *SongUpdateOne
ClearFirstArtist clears the value of first_artist.
func (*SongUpdateOne) ClearFirstArtistSort ¶
func (suo *SongUpdateOne) ClearFirstArtistSort() *SongUpdateOne
ClearFirstArtistSort clears the value of first_artist_sort.
func (*SongUpdateOne) ClearFirstComposer ¶
func (suo *SongUpdateOne) ClearFirstComposer() *SongUpdateOne
ClearFirstComposer clears the value of first_composer.
func (*SongUpdateOne) ClearFirstComposerSort ¶
func (suo *SongUpdateOne) ClearFirstComposerSort() *SongUpdateOne
ClearFirstComposerSort clears the value of first_composer_sort.
func (*SongUpdateOne) ClearGenre ¶
func (suo *SongUpdateOne) ClearGenre() *SongUpdateOne
ClearGenre clears the value of genre.
func (*SongUpdateOne) ClearGrouping ¶
func (suo *SongUpdateOne) ClearGrouping() *SongUpdateOne
ClearGrouping clears the value of grouping.
func (*SongUpdateOne) ClearInitialKey ¶
func (suo *SongUpdateOne) ClearInitialKey() *SongUpdateOne
ClearInitialKey clears the value of initial_key.
func (*SongUpdateOne) ClearIsrc ¶
func (suo *SongUpdateOne) ClearIsrc() *SongUpdateOne
ClearIsrc clears the value of isrc.
func (*SongUpdateOne) ClearLyrics ¶
func (suo *SongUpdateOne) ClearLyrics() *SongUpdateOne
ClearLyrics clears the value of lyrics.
func (*SongUpdateOne) ClearMimeType ¶
func (suo *SongUpdateOne) ClearMimeType() *SongUpdateOne
ClearMimeType clears the value of mime_type.
func (*SongUpdateOne) ClearModifiedDate ¶
func (suo *SongUpdateOne) ClearModifiedDate() *SongUpdateOne
ClearModifiedDate clears the value of modified_date.
func (*SongUpdateOne) ClearMusicBrainzArtistID ¶
func (suo *SongUpdateOne) ClearMusicBrainzArtistID() *SongUpdateOne
ClearMusicBrainzArtistID clears the value of music_brainz_artist_id.
func (*SongUpdateOne) ClearMusicBrainzDiscID ¶
func (suo *SongUpdateOne) ClearMusicBrainzDiscID() *SongUpdateOne
ClearMusicBrainzDiscID clears the value of music_brainz_disc_id.
func (*SongUpdateOne) ClearMusicBrainzReleaseArtistID ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseArtistID() *SongUpdateOne
ClearMusicBrainzReleaseArtistID clears the value of music_brainz_release_artist_id.
func (*SongUpdateOne) ClearMusicBrainzReleaseCountry ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseCountry() *SongUpdateOne
ClearMusicBrainzReleaseCountry clears the value of music_brainz_release_country.
func (*SongUpdateOne) ClearMusicBrainzReleaseGroupID ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseGroupID() *SongUpdateOne
ClearMusicBrainzReleaseGroupID clears the value of music_brainz_release_group_id.
func (*SongUpdateOne) ClearMusicBrainzReleaseID ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseID() *SongUpdateOne
ClearMusicBrainzReleaseID clears the value of music_brainz_release_id.
func (*SongUpdateOne) ClearMusicBrainzReleaseStatus ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseStatus() *SongUpdateOne
ClearMusicBrainzReleaseStatus clears the value of music_brainz_release_status.
func (*SongUpdateOne) ClearMusicBrainzReleaseType ¶
func (suo *SongUpdateOne) ClearMusicBrainzReleaseType() *SongUpdateOne
ClearMusicBrainzReleaseType clears the value of music_brainz_release_type.
func (*SongUpdateOne) ClearMusicBrainzTrackID ¶
func (suo *SongUpdateOne) ClearMusicBrainzTrackID() *SongUpdateOne
ClearMusicBrainzTrackID clears the value of music_brainz_track_id.
func (*SongUpdateOne) ClearMusicIPID ¶
func (suo *SongUpdateOne) ClearMusicIPID() *SongUpdateOne
ClearMusicIPID clears the value of music_ip_id.
func (*SongUpdateOne) ClearOfDiskNumber ¶
func (suo *SongUpdateOne) ClearOfDiskNumber() *SongUpdateOne
ClearOfDiskNumber clears the value of of_disk_number.
func (*SongUpdateOne) ClearOfTrackNumber ¶
func (suo *SongUpdateOne) ClearOfTrackNumber() *SongUpdateOne
ClearOfTrackNumber clears the value of of_track_number.
func (*SongUpdateOne) ClearPublisher ¶
func (suo *SongUpdateOne) ClearPublisher() *SongUpdateOne
ClearPublisher clears the value of publisher.
func (*SongUpdateOne) ClearRemixedBy ¶
func (suo *SongUpdateOne) ClearRemixedBy() *SongUpdateOne
ClearRemixedBy clears the value of remixed_by.
func (*SongUpdateOne) ClearReplayGainAlbumGain ¶
func (suo *SongUpdateOne) ClearReplayGainAlbumGain() *SongUpdateOne
ClearReplayGainAlbumGain clears the value of replay_gain_album_gain.
func (*SongUpdateOne) ClearReplayGainAlbumPeak ¶
func (suo *SongUpdateOne) ClearReplayGainAlbumPeak() *SongUpdateOne
ClearReplayGainAlbumPeak clears the value of replay_gain_album_peak.
func (*SongUpdateOne) ClearReplayGainTrackGain ¶
func (suo *SongUpdateOne) ClearReplayGainTrackGain() *SongUpdateOne
ClearReplayGainTrackGain clears the value of replay_gain_track_gain.
func (*SongUpdateOne) ClearReplayGainTrackPeak ¶
func (suo *SongUpdateOne) ClearReplayGainTrackPeak() *SongUpdateOne
ClearReplayGainTrackPeak clears the value of replay_gain_track_peak.
func (*SongUpdateOne) ClearSubtitle ¶
func (suo *SongUpdateOne) ClearSubtitle() *SongUpdateOne
ClearSubtitle clears the value of subtitle.
func (*SongUpdateOne) ClearTitle ¶
func (suo *SongUpdateOne) ClearTitle() *SongUpdateOne
ClearTitle clears the value of title.
func (*SongUpdateOne) ClearTitleSort ¶
func (suo *SongUpdateOne) ClearTitleSort() *SongUpdateOne
ClearTitleSort clears the value of title_sort.
func (*SongUpdateOne) ClearTrackNumber ¶
func (suo *SongUpdateOne) ClearTrackNumber() *SongUpdateOne
ClearTrackNumber clears the value of track_number.
func (*SongUpdateOne) ClearYear ¶
func (suo *SongUpdateOne) ClearYear() *SongUpdateOne
ClearYear clears the value of year.
func (*SongUpdateOne) Exec ¶
func (suo *SongUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SongUpdateOne) ExecX ¶
func (suo *SongUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SongUpdateOne) Mutation ¶
func (suo *SongUpdateOne) Mutation() *SongMutation
Mutation returns the SongMutation object of the builder.
func (*SongUpdateOne) RemoveTagIDs ¶
func (suo *SongUpdateOne) RemoveTagIDs(ids ...int64) *SongUpdateOne
RemoveTagIDs removes the tags edge to Tag by ids.
func (*SongUpdateOne) RemoveTags ¶
func (suo *SongUpdateOne) RemoveTags(t ...*Tag) *SongUpdateOne
RemoveTags removes tags edges to Tag.
func (*SongUpdateOne) Save ¶
func (suo *SongUpdateOne) Save(ctx context.Context) (*Song, error)
Save executes the query and returns the updated entity.
func (*SongUpdateOne) SaveX ¶
func (suo *SongUpdateOne) SaveX(ctx context.Context) *Song
SaveX is like Save, but panics if an error occurs.
func (*SongUpdateOne) SetAlbum ¶
func (suo *SongUpdateOne) SetAlbum(s string) *SongUpdateOne
SetAlbum sets the album field.
func (*SongUpdateOne) SetAlbumArtist ¶
func (suo *SongUpdateOne) SetAlbumArtist(s string) *SongUpdateOne
SetAlbumArtist sets the album_artist field.
func (*SongUpdateOne) SetArtists ¶
func (suo *SongUpdateOne) SetArtists(s []string) *SongUpdateOne
SetArtists sets the artists field.
func (*SongUpdateOne) SetArtistsSort ¶
func (suo *SongUpdateOne) SetArtistsSort(s string) *SongUpdateOne
SetArtistsSort sets the artists_sort field.
func (*SongUpdateOne) SetBeatsPerMinute ¶
func (suo *SongUpdateOne) SetBeatsPerMinute(u uint32) *SongUpdateOne
SetBeatsPerMinute sets the beats_per_minute field.
func (*SongUpdateOne) SetComment ¶
func (suo *SongUpdateOne) SetComment(s string) *SongUpdateOne
SetComment sets the comment field.
func (*SongUpdateOne) SetComposers ¶
func (suo *SongUpdateOne) SetComposers(s string) *SongUpdateOne
SetComposers sets the composers field.
func (*SongUpdateOne) SetConductor ¶
func (suo *SongUpdateOne) SetConductor(s string) *SongUpdateOne
SetConductor sets the conductor field.
func (*SongUpdateOne) SetCopyright ¶
func (suo *SongUpdateOne) SetCopyright(s string) *SongUpdateOne
SetCopyright sets the copyright field.
func (*SongUpdateOne) SetCreatedDate ¶
func (suo *SongUpdateOne) SetCreatedDate(t time.Time) *SongUpdateOne
SetCreatedDate sets the created_date field.
func (*SongUpdateOne) SetDateTagged ¶
func (suo *SongUpdateOne) SetDateTagged(t time.Time) *SongUpdateOne
SetDateTagged sets the date_tagged field.
func (*SongUpdateOne) SetDescription ¶
func (suo *SongUpdateOne) SetDescription(s string) *SongUpdateOne
SetDescription sets the description field.
func (*SongUpdateOne) SetDiskNumber ¶
func (suo *SongUpdateOne) SetDiskNumber(u uint32) *SongUpdateOne
SetDiskNumber sets the disk_number field.
func (*SongUpdateOne) SetDuration ¶
func (suo *SongUpdateOne) SetDuration(u uint32) *SongUpdateOne
SetDuration sets the duration field.
func (*SongUpdateOne) SetFirstAlbumArtist ¶
func (suo *SongUpdateOne) SetFirstAlbumArtist(s string) *SongUpdateOne
SetFirstAlbumArtist sets the first_album_artist field.
func (*SongUpdateOne) SetFirstAlbumArtistSort ¶
func (suo *SongUpdateOne) SetFirstAlbumArtistSort(s string) *SongUpdateOne
SetFirstAlbumArtistSort sets the first_album_artist_sort field.
func (*SongUpdateOne) SetFirstArtist ¶
func (suo *SongUpdateOne) SetFirstArtist(s string) *SongUpdateOne
SetFirstArtist sets the first_artist field.
func (*SongUpdateOne) SetFirstArtistSort ¶
func (suo *SongUpdateOne) SetFirstArtistSort(s string) *SongUpdateOne
SetFirstArtistSort sets the first_artist_sort field.
func (*SongUpdateOne) SetFirstComposer ¶
func (suo *SongUpdateOne) SetFirstComposer(s string) *SongUpdateOne
SetFirstComposer sets the first_composer field.
func (*SongUpdateOne) SetFirstComposerSort ¶
func (suo *SongUpdateOne) SetFirstComposerSort(s string) *SongUpdateOne
SetFirstComposerSort sets the first_composer_sort field.
func (*SongUpdateOne) SetGenre ¶
func (suo *SongUpdateOne) SetGenre(s string) *SongUpdateOne
SetGenre sets the genre field.
func (*SongUpdateOne) SetGrouping ¶
func (suo *SongUpdateOne) SetGrouping(s string) *SongUpdateOne
SetGrouping sets the grouping field.
func (*SongUpdateOne) SetHash ¶
func (suo *SongUpdateOne) SetHash(s string) *SongUpdateOne
SetHash sets the hash field.
func (*SongUpdateOne) SetInitialKey ¶
func (suo *SongUpdateOne) SetInitialKey(s string) *SongUpdateOne
SetInitialKey sets the initial_key field.
func (*SongUpdateOne) SetIsrc ¶
func (suo *SongUpdateOne) SetIsrc(s string) *SongUpdateOne
SetIsrc sets the isrc field.
func (*SongUpdateOne) SetLyrics ¶
func (suo *SongUpdateOne) SetLyrics(s string) *SongUpdateOne
SetLyrics sets the lyrics field.
func (*SongUpdateOne) SetMimeType ¶
func (suo *SongUpdateOne) SetMimeType(s string) *SongUpdateOne
SetMimeType sets the mime_type field.
func (*SongUpdateOne) SetModifiedDate ¶
func (suo *SongUpdateOne) SetModifiedDate(t time.Time) *SongUpdateOne
SetModifiedDate sets the modified_date field.
func (*SongUpdateOne) SetMusicBrainzArtistID ¶
func (suo *SongUpdateOne) SetMusicBrainzArtistID(s string) *SongUpdateOne
SetMusicBrainzArtistID sets the music_brainz_artist_id field.
func (*SongUpdateOne) SetMusicBrainzDiscID ¶
func (suo *SongUpdateOne) SetMusicBrainzDiscID(s string) *SongUpdateOne
SetMusicBrainzDiscID sets the music_brainz_disc_id field.
func (*SongUpdateOne) SetMusicBrainzReleaseArtistID ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseArtistID(s string) *SongUpdateOne
SetMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field.
func (*SongUpdateOne) SetMusicBrainzReleaseCountry ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseCountry(s string) *SongUpdateOne
SetMusicBrainzReleaseCountry sets the music_brainz_release_country field.
func (*SongUpdateOne) SetMusicBrainzReleaseGroupID ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseGroupID(s string) *SongUpdateOne
SetMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field.
func (*SongUpdateOne) SetMusicBrainzReleaseID ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseID(s string) *SongUpdateOne
SetMusicBrainzReleaseID sets the music_brainz_release_id field.
func (*SongUpdateOne) SetMusicBrainzReleaseStatus ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseStatus(s string) *SongUpdateOne
SetMusicBrainzReleaseStatus sets the music_brainz_release_status field.
func (*SongUpdateOne) SetMusicBrainzReleaseType ¶
func (suo *SongUpdateOne) SetMusicBrainzReleaseType(s string) *SongUpdateOne
SetMusicBrainzReleaseType sets the music_brainz_release_type field.
func (*SongUpdateOne) SetMusicBrainzTrackID ¶
func (suo *SongUpdateOne) SetMusicBrainzTrackID(s string) *SongUpdateOne
SetMusicBrainzTrackID sets the music_brainz_track_id field.
func (*SongUpdateOne) SetMusicIPID ¶
func (suo *SongUpdateOne) SetMusicIPID(s string) *SongUpdateOne
SetMusicIPID sets the music_ip_id field.
func (*SongUpdateOne) SetNillableAlbum ¶
func (suo *SongUpdateOne) SetNillableAlbum(s *string) *SongUpdateOne
SetNillableAlbum sets the album field if the given value is not nil.
func (*SongUpdateOne) SetNillableAlbumArtist ¶
func (suo *SongUpdateOne) SetNillableAlbumArtist(s *string) *SongUpdateOne
SetNillableAlbumArtist sets the album_artist field if the given value is not nil.
func (*SongUpdateOne) SetNillableArtistsSort ¶
func (suo *SongUpdateOne) SetNillableArtistsSort(s *string) *SongUpdateOne
SetNillableArtistsSort sets the artists_sort field if the given value is not nil.
func (*SongUpdateOne) SetNillableBeatsPerMinute ¶
func (suo *SongUpdateOne) SetNillableBeatsPerMinute(u *uint32) *SongUpdateOne
SetNillableBeatsPerMinute sets the beats_per_minute field if the given value is not nil.
func (*SongUpdateOne) SetNillableComment ¶
func (suo *SongUpdateOne) SetNillableComment(s *string) *SongUpdateOne
SetNillableComment sets the comment field if the given value is not nil.
func (*SongUpdateOne) SetNillableComposers ¶
func (suo *SongUpdateOne) SetNillableComposers(s *string) *SongUpdateOne
SetNillableComposers sets the composers field if the given value is not nil.
func (*SongUpdateOne) SetNillableConductor ¶
func (suo *SongUpdateOne) SetNillableConductor(s *string) *SongUpdateOne
SetNillableConductor sets the conductor field if the given value is not nil.
func (*SongUpdateOne) SetNillableCopyright ¶
func (suo *SongUpdateOne) SetNillableCopyright(s *string) *SongUpdateOne
SetNillableCopyright sets the copyright field if the given value is not nil.
func (*SongUpdateOne) SetNillableCreatedDate ¶
func (suo *SongUpdateOne) SetNillableCreatedDate(t *time.Time) *SongUpdateOne
SetNillableCreatedDate sets the created_date field if the given value is not nil.
func (*SongUpdateOne) SetNillableDateTagged ¶
func (suo *SongUpdateOne) SetNillableDateTagged(t *time.Time) *SongUpdateOne
SetNillableDateTagged sets the date_tagged field if the given value is not nil.
func (*SongUpdateOne) SetNillableDescription ¶
func (suo *SongUpdateOne) SetNillableDescription(s *string) *SongUpdateOne
SetNillableDescription sets the description field if the given value is not nil.
func (*SongUpdateOne) SetNillableDiskNumber ¶
func (suo *SongUpdateOne) SetNillableDiskNumber(u *uint32) *SongUpdateOne
SetNillableDiskNumber sets the disk_number field if the given value is not nil.
func (*SongUpdateOne) SetNillableDuration ¶
func (suo *SongUpdateOne) SetNillableDuration(u *uint32) *SongUpdateOne
SetNillableDuration sets the duration field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstAlbumArtist ¶
func (suo *SongUpdateOne) SetNillableFirstAlbumArtist(s *string) *SongUpdateOne
SetNillableFirstAlbumArtist sets the first_album_artist field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstAlbumArtistSort ¶
func (suo *SongUpdateOne) SetNillableFirstAlbumArtistSort(s *string) *SongUpdateOne
SetNillableFirstAlbumArtistSort sets the first_album_artist_sort field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstArtist ¶
func (suo *SongUpdateOne) SetNillableFirstArtist(s *string) *SongUpdateOne
SetNillableFirstArtist sets the first_artist field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstArtistSort ¶
func (suo *SongUpdateOne) SetNillableFirstArtistSort(s *string) *SongUpdateOne
SetNillableFirstArtistSort sets the first_artist_sort field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstComposer ¶
func (suo *SongUpdateOne) SetNillableFirstComposer(s *string) *SongUpdateOne
SetNillableFirstComposer sets the first_composer field if the given value is not nil.
func (*SongUpdateOne) SetNillableFirstComposerSort ¶
func (suo *SongUpdateOne) SetNillableFirstComposerSort(s *string) *SongUpdateOne
SetNillableFirstComposerSort sets the first_composer_sort field if the given value is not nil.
func (*SongUpdateOne) SetNillableGenre ¶
func (suo *SongUpdateOne) SetNillableGenre(s *string) *SongUpdateOne
SetNillableGenre sets the genre field if the given value is not nil.
func (*SongUpdateOne) SetNillableGrouping ¶
func (suo *SongUpdateOne) SetNillableGrouping(s *string) *SongUpdateOne
SetNillableGrouping sets the grouping field if the given value is not nil.
func (*SongUpdateOne) SetNillableInitialKey ¶
func (suo *SongUpdateOne) SetNillableInitialKey(s *string) *SongUpdateOne
SetNillableInitialKey sets the initial_key field if the given value is not nil.
func (*SongUpdateOne) SetNillableIsrc ¶
func (suo *SongUpdateOne) SetNillableIsrc(s *string) *SongUpdateOne
SetNillableIsrc sets the isrc field if the given value is not nil.
func (*SongUpdateOne) SetNillableLyrics ¶
func (suo *SongUpdateOne) SetNillableLyrics(s *string) *SongUpdateOne
SetNillableLyrics sets the lyrics field if the given value is not nil.
func (*SongUpdateOne) SetNillableMimeType ¶
func (suo *SongUpdateOne) SetNillableMimeType(s *string) *SongUpdateOne
SetNillableMimeType sets the mime_type field if the given value is not nil.
func (*SongUpdateOne) SetNillableModifiedDate ¶
func (suo *SongUpdateOne) SetNillableModifiedDate(t *time.Time) *SongUpdateOne
SetNillableModifiedDate sets the modified_date field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzArtistID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzArtistID(s *string) *SongUpdateOne
SetNillableMusicBrainzArtistID sets the music_brainz_artist_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzDiscID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzDiscID(s *string) *SongUpdateOne
SetNillableMusicBrainzDiscID sets the music_brainz_disc_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseArtistID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseArtistID(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseArtistID sets the music_brainz_release_artist_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseCountry ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseCountry(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseCountry sets the music_brainz_release_country field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseGroupID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseGroupID(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseGroupID sets the music_brainz_release_group_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseID(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseID sets the music_brainz_release_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseStatus ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseStatus(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseStatus sets the music_brainz_release_status field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzReleaseType ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzReleaseType(s *string) *SongUpdateOne
SetNillableMusicBrainzReleaseType sets the music_brainz_release_type field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicBrainzTrackID ¶
func (suo *SongUpdateOne) SetNillableMusicBrainzTrackID(s *string) *SongUpdateOne
SetNillableMusicBrainzTrackID sets the music_brainz_track_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableMusicIPID ¶
func (suo *SongUpdateOne) SetNillableMusicIPID(s *string) *SongUpdateOne
SetNillableMusicIPID sets the music_ip_id field if the given value is not nil.
func (*SongUpdateOne) SetNillableOfDiskNumber ¶
func (suo *SongUpdateOne) SetNillableOfDiskNumber(u *uint32) *SongUpdateOne
SetNillableOfDiskNumber sets the of_disk_number field if the given value is not nil.
func (*SongUpdateOne) SetNillableOfTrackNumber ¶
func (suo *SongUpdateOne) SetNillableOfTrackNumber(u *uint32) *SongUpdateOne
SetNillableOfTrackNumber sets the of_track_number field if the given value is not nil.
func (*SongUpdateOne) SetNillablePlayCount ¶
func (suo *SongUpdateOne) SetNillablePlayCount(u *uint32) *SongUpdateOne
SetNillablePlayCount sets the play_count field if the given value is not nil.
func (*SongUpdateOne) SetNillablePublisher ¶
func (suo *SongUpdateOne) SetNillablePublisher(s *string) *SongUpdateOne
SetNillablePublisher sets the publisher field if the given value is not nil.
func (*SongUpdateOne) SetNillableRemixedBy ¶
func (suo *SongUpdateOne) SetNillableRemixedBy(s *string) *SongUpdateOne
SetNillableRemixedBy sets the remixed_by field if the given value is not nil.
func (*SongUpdateOne) SetNillableReplayGainAlbumGain ¶
func (suo *SongUpdateOne) SetNillableReplayGainAlbumGain(f *float64) *SongUpdateOne
SetNillableReplayGainAlbumGain sets the replay_gain_album_gain field if the given value is not nil.
func (*SongUpdateOne) SetNillableReplayGainAlbumPeak ¶
func (suo *SongUpdateOne) SetNillableReplayGainAlbumPeak(f *float64) *SongUpdateOne
SetNillableReplayGainAlbumPeak sets the replay_gain_album_peak field if the given value is not nil.
func (*SongUpdateOne) SetNillableReplayGainTrackGain ¶
func (suo *SongUpdateOne) SetNillableReplayGainTrackGain(f *float64) *SongUpdateOne
SetNillableReplayGainTrackGain sets the replay_gain_track_gain field if the given value is not nil.
func (*SongUpdateOne) SetNillableReplayGainTrackPeak ¶
func (suo *SongUpdateOne) SetNillableReplayGainTrackPeak(f *float64) *SongUpdateOne
SetNillableReplayGainTrackPeak sets the replay_gain_track_peak field if the given value is not nil.
func (*SongUpdateOne) SetNillableSkippedCount ¶
func (suo *SongUpdateOne) SetNillableSkippedCount(u *uint32) *SongUpdateOne
SetNillableSkippedCount sets the skipped_count field if the given value is not nil.
func (*SongUpdateOne) SetNillableSubtitle ¶
func (suo *SongUpdateOne) SetNillableSubtitle(s *string) *SongUpdateOne
SetNillableSubtitle sets the subtitle field if the given value is not nil.
func (*SongUpdateOne) SetNillableTitle ¶
func (suo *SongUpdateOne) SetNillableTitle(s *string) *SongUpdateOne
SetNillableTitle sets the title field if the given value is not nil.
func (*SongUpdateOne) SetNillableTitleSort ¶
func (suo *SongUpdateOne) SetNillableTitleSort(s *string) *SongUpdateOne
SetNillableTitleSort sets the title_sort field if the given value is not nil.
func (*SongUpdateOne) SetNillableTrackNumber ¶
func (suo *SongUpdateOne) SetNillableTrackNumber(u *uint32) *SongUpdateOne
SetNillableTrackNumber sets the track_number field if the given value is not nil.
func (*SongUpdateOne) SetNillableYear ¶
func (suo *SongUpdateOne) SetNillableYear(u *uint32) *SongUpdateOne
SetNillableYear sets the year field if the given value is not nil.
func (*SongUpdateOne) SetOfDiskNumber ¶
func (suo *SongUpdateOne) SetOfDiskNumber(u uint32) *SongUpdateOne
SetOfDiskNumber sets the of_disk_number field.
func (*SongUpdateOne) SetOfTrackNumber ¶
func (suo *SongUpdateOne) SetOfTrackNumber(u uint32) *SongUpdateOne
SetOfTrackNumber sets the of_track_number field.
func (*SongUpdateOne) SetPath ¶
func (suo *SongUpdateOne) SetPath(s string) *SongUpdateOne
SetPath sets the path field.
func (*SongUpdateOne) SetPlayCount ¶
func (suo *SongUpdateOne) SetPlayCount(u uint32) *SongUpdateOne
SetPlayCount sets the play_count field.
func (*SongUpdateOne) SetPublisher ¶
func (suo *SongUpdateOne) SetPublisher(s string) *SongUpdateOne
SetPublisher sets the publisher field.
func (*SongUpdateOne) SetRemixedBy ¶
func (suo *SongUpdateOne) SetRemixedBy(s string) *SongUpdateOne
SetRemixedBy sets the remixed_by field.
func (*SongUpdateOne) SetReplayGainAlbumGain ¶
func (suo *SongUpdateOne) SetReplayGainAlbumGain(f float64) *SongUpdateOne
SetReplayGainAlbumGain sets the replay_gain_album_gain field.
func (*SongUpdateOne) SetReplayGainAlbumPeak ¶
func (suo *SongUpdateOne) SetReplayGainAlbumPeak(f float64) *SongUpdateOne
SetReplayGainAlbumPeak sets the replay_gain_album_peak field.
func (*SongUpdateOne) SetReplayGainTrackGain ¶
func (suo *SongUpdateOne) SetReplayGainTrackGain(f float64) *SongUpdateOne
SetReplayGainTrackGain sets the replay_gain_track_gain field.
func (*SongUpdateOne) SetReplayGainTrackPeak ¶
func (suo *SongUpdateOne) SetReplayGainTrackPeak(f float64) *SongUpdateOne
SetReplayGainTrackPeak sets the replay_gain_track_peak field.
func (*SongUpdateOne) SetSkippedCount ¶
func (suo *SongUpdateOne) SetSkippedCount(u uint32) *SongUpdateOne
SetSkippedCount sets the skipped_count field.
func (*SongUpdateOne) SetSubtitle ¶
func (suo *SongUpdateOne) SetSubtitle(s string) *SongUpdateOne
SetSubtitle sets the subtitle field.
func (*SongUpdateOne) SetTitle ¶
func (suo *SongUpdateOne) SetTitle(s string) *SongUpdateOne
SetTitle sets the title field.
func (*SongUpdateOne) SetTitleSort ¶
func (suo *SongUpdateOne) SetTitleSort(s string) *SongUpdateOne
SetTitleSort sets the title_sort field.
func (*SongUpdateOne) SetTrackNumber ¶
func (suo *SongUpdateOne) SetTrackNumber(u uint32) *SongUpdateOne
SetTrackNumber sets the track_number field.
func (*SongUpdateOne) SetYear ¶
func (suo *SongUpdateOne) SetYear(u uint32) *SongUpdateOne
SetYear sets the year field.
type Tag ¶
type Tag struct { // ID of the ent. ID int64 `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TagQuery when eager-loading is set. Edges TagEdges `json:"edges"` // contains filtered or unexported fields }
Tag is the model entity for the Tag schema.
func (*Tag) QuerySongs ¶
QuerySongs queries the songs edge of the Tag.
func (*Tag) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Tag) Update ¶
func (t *Tag) Update() *TagUpdateOne
Update returns a builder for updating this Tag. Note that, you need to call Tag.Unwrap() before calling this method, if this Tag was returned from a transaction, and the transaction was committed or rolled back.
type TagClient ¶
type TagClient struct {
// contains filtered or unexported fields
}
TagClient is a client for the Tag schema.
func NewTagClient ¶
func NewTagClient(c config) *TagClient
NewTagClient returns a client for the Tag from the given config.
func (*TagClient) DeleteOne ¶
func (c *TagClient) DeleteOne(t *Tag) *TagDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TagClient) DeleteOneID ¶
func (c *TagClient) DeleteOneID(id int64) *TagDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TagClient) QuerySongs ¶
QuerySongs queries the songs edge of a Tag.
func (*TagClient) UpdateOne ¶
func (c *TagClient) UpdateOne(t *Tag) *TagUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TagClient) UpdateOneID ¶
func (c *TagClient) UpdateOneID(id int64) *TagUpdateOne
UpdateOneID returns an update builder for the given id.
type TagCreate ¶
type TagCreate struct {
// contains filtered or unexported fields
}
TagCreate is the builder for creating a Tag entity.
func (*TagCreate) AddSongIDs ¶
AddSongIDs adds the songs edge to Song by ids.
func (*TagCreate) Mutation ¶
func (tc *TagCreate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
type TagDelete ¶
type TagDelete struct {
// contains filtered or unexported fields
}
TagDelete is the builder for deleting a Tag entity.
func (*TagDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type TagDeleteOne ¶
type TagDeleteOne struct {
// contains filtered or unexported fields
}
TagDeleteOne is the builder for deleting a single Tag entity.
func (*TagDeleteOne) Exec ¶
func (tdo *TagDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TagDeleteOne) ExecX ¶
func (tdo *TagDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TagEdges ¶
type TagEdges struct { // Songs holds the value of the songs edge. Songs []*Song // contains filtered or unexported fields }
TagEdges holds the relations/edges for other nodes in the graph.
func (TagEdges) SongsOrErr ¶
SongsOrErr returns the Songs value or an error if the edge was not loaded in eager-loading.
type TagGroupBy ¶
type TagGroupBy struct {
// contains filtered or unexported fields
}
TagGroupBy is the builder for group-by Tag entities.
func (*TagGroupBy) Aggregate ¶
func (tgb *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TagGroupBy) Bool ¶
func (tgb *TagGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) BoolX ¶
func (tgb *TagGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*TagGroupBy) Bools ¶
func (tgb *TagGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) BoolsX ¶
func (tgb *TagGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TagGroupBy) Float64 ¶
func (tgb *TagGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) Float64X ¶
func (tgb *TagGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*TagGroupBy) Float64s ¶
func (tgb *TagGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) Float64sX ¶
func (tgb *TagGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TagGroupBy) Int ¶
func (tgb *TagGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) IntX ¶
func (tgb *TagGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*TagGroupBy) Ints ¶
func (tgb *TagGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) IntsX ¶
func (tgb *TagGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TagGroupBy) Scan ¶
func (tgb *TagGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*TagGroupBy) ScanX ¶
func (tgb *TagGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*TagGroupBy) String ¶
func (tgb *TagGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*TagGroupBy) StringX ¶
func (tgb *TagGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type TagMutation ¶
type TagMutation struct {
// contains filtered or unexported fields
}
TagMutation represents an operation that mutate the Tags nodes in the graph.
func (*TagMutation) AddField ¶
func (m *TagMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*TagMutation) AddSongIDs ¶
func (m *TagMutation) AddSongIDs(ids ...int64)
AddSongIDs adds the songs edge to Song by ids.
func (*TagMutation) AddedEdges ¶
func (m *TagMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TagMutation) AddedField ¶
func (m *TagMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*TagMutation) AddedFields ¶
func (m *TagMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*TagMutation) AddedIDs ¶
func (m *TagMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*TagMutation) ClearEdge ¶
func (m *TagMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*TagMutation) ClearField ¶
func (m *TagMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*TagMutation) ClearedEdges ¶
func (m *TagMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TagMutation) ClearedFields ¶
func (m *TagMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TagMutation) Client ¶
func (m TagMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*TagMutation) EdgeCleared ¶
func (m *TagMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*TagMutation) Field ¶
func (m *TagMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*TagMutation) FieldCleared ¶
func (m *TagMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*TagMutation) Fields ¶
func (m *TagMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*TagMutation) ID ¶
func (m *TagMutation) ID() (id int64, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*TagMutation) Name ¶
func (m *TagMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*TagMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database was failed.
func (*TagMutation) OldName ¶
func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Tag. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or database query fails.
func (*TagMutation) RemoveSongIDs ¶
func (m *TagMutation) RemoveSongIDs(ids ...int64)
RemoveSongIDs removes the songs edge to Song by ids.
func (*TagMutation) RemovedEdges ¶
func (m *TagMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TagMutation) RemovedIDs ¶
func (m *TagMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*TagMutation) RemovedSongsIDs ¶
func (m *TagMutation) RemovedSongsIDs() (ids []int64)
RemovedSongs returns the removed ids of songs.
func (*TagMutation) ResetEdge ¶
func (m *TagMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*TagMutation) ResetField ¶
func (m *TagMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*TagMutation) ResetName ¶
func (m *TagMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*TagMutation) ResetSongs ¶
func (m *TagMutation) ResetSongs()
ResetSongs reset all changes of the "songs" edge.
func (*TagMutation) SetField ¶
func (m *TagMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*TagMutation) SongsIDs ¶
func (m *TagMutation) SongsIDs() (ids []int64)
SongsIDs returns the songs ids in the mutation.
func (TagMutation) Tx ¶
func (m TagMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TagMutation) Type ¶
func (m *TagMutation) Type() string
Type returns the node type of this mutation (Tag).
type TagQuery ¶
type TagQuery struct {
// contains filtered or unexported fields
}
TagQuery is the builder for querying Tag entities.
func (*TagQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TagQuery) First ¶
First returns the first Tag entity in the query. Returns *NotFoundError when no tag was found.
func (*TagQuery) FirstID ¶
FirstID returns the first Tag id in the query. Returns *NotFoundError when no id was found.
func (*TagQuery) GroupBy ¶
func (tq *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Tag.Query(). GroupBy(tag.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TagQuery) Only ¶
Only returns the only Tag entity in the query, returns an error if not exactly one entity was returned.
func (*TagQuery) OnlyID ¶
OnlyID returns the only Tag id in the query, returns an error if not exactly one id was returned.
func (*TagQuery) QuerySongs ¶
QuerySongs chains the current query on the songs edge.
func (*TagQuery) Select ¶
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Tag.Query(). Select(tag.FieldName). Scan(ctx, &v)
type TagSelect ¶
type TagSelect struct {
// contains filtered or unexported fields
}
TagSelect is the builder for select fields of Tag entities.
func (*TagSelect) Bool ¶
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*TagSelect) Bools ¶
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*TagSelect) Float64 ¶
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*TagSelect) Float64s ¶
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*TagSelect) Int ¶
Int returns a single int from selector. It is only allowed when selecting one field.
func (*TagSelect) Ints ¶
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*TagSelect) String ¶
String returns a single string from selector. It is only allowed when selecting one field.
type TagUpdate ¶
type TagUpdate struct {
// contains filtered or unexported fields
}
TagUpdate is the builder for updating Tag entities.
func (*TagUpdate) AddSongIDs ¶
AddSongIDs adds the songs edge to Song by ids.
func (*TagUpdate) Mutation ¶
func (tu *TagUpdate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdate) RemoveSongIDs ¶
RemoveSongIDs removes the songs edge to Song by ids.
func (*TagUpdate) RemoveSongs ¶
RemoveSongs removes songs edges to Song.
func (*TagUpdate) Save ¶
Save executes the query and returns the number of rows/vertices matched by this operation.
type TagUpdateOne ¶
type TagUpdateOne struct {
// contains filtered or unexported fields
}
TagUpdateOne is the builder for updating a single Tag entity.
func (*TagUpdateOne) AddSongIDs ¶
func (tuo *TagUpdateOne) AddSongIDs(ids ...int64) *TagUpdateOne
AddSongIDs adds the songs edge to Song by ids.
func (*TagUpdateOne) AddSongs ¶
func (tuo *TagUpdateOne) AddSongs(s ...*Song) *TagUpdateOne
AddSongs adds the songs edges to Song.
func (*TagUpdateOne) Exec ¶
func (tuo *TagUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TagUpdateOne) ExecX ¶
func (tuo *TagUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagUpdateOne) Mutation ¶
func (tuo *TagUpdateOne) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdateOne) RemoveSongIDs ¶
func (tuo *TagUpdateOne) RemoveSongIDs(ids ...int64) *TagUpdateOne
RemoveSongIDs removes the songs edge to Song by ids.
func (*TagUpdateOne) RemoveSongs ¶
func (tuo *TagUpdateOne) RemoveSongs(s ...*Song) *TagUpdateOne
RemoveSongs removes songs edges to Song.
func (*TagUpdateOne) Save ¶
func (tuo *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
Save executes the query and returns the updated entity.
func (*TagUpdateOne) SaveX ¶
func (tuo *TagUpdateOne) SaveX(ctx context.Context) *Tag
SaveX is like Save, but panics if an error occurs.
func (*TagUpdateOne) SetName ¶
func (tuo *TagUpdateOne) SetName(s string) *TagUpdateOne
SetName sets the name field.
type Tx ¶
type Tx struct { // Song is the client for interacting with the Song builders. Song *SongClient // Tag is the client for interacting with the Tag builders. Tag *TagClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns the Tx stored in a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.