persistence

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conn *sql.DB) model.DataStore

func NewAlbumRepository

func NewAlbumRepository(ctx context.Context, db dbx.Builder) model.AlbumRepository

func NewArtistRepository

func NewArtistRepository(ctx context.Context, db dbx.Builder) model.ArtistRepository

func NewGenreRepository

func NewGenreRepository(ctx context.Context, db dbx.Builder) model.GenreRepository

func NewMediaFileRepository

func NewMediaFileRepository(ctx context.Context, db dbx.Builder) *mediaFileRepository

func NewMediaFolderRepository

func NewMediaFolderRepository(ctx context.Context, _ dbx.Builder) model.MediaFolderRepository

func NewPlayQueueRepository

func NewPlayQueueRepository(ctx context.Context, db dbx.Builder) model.PlayQueueRepository

func NewPlayerRepository

func NewPlayerRepository(ctx context.Context, db dbx.Builder) model.PlayerRepository

func NewPlaylistRepository

func NewPlaylistRepository(ctx context.Context, db dbx.Builder) model.PlaylistRepository

func NewPropertyRepository

func NewPropertyRepository(ctx context.Context, db dbx.Builder) model.PropertyRepository

func NewRadioRepository added in v0.49.0

func NewRadioRepository(ctx context.Context, db dbx.Builder) model.RadioRepository

func NewScrobbleBufferRepository added in v0.45.0

func NewScrobbleBufferRepository(ctx context.Context, db dbx.Builder) model.ScrobbleBufferRepository

func NewShareRepository added in v0.44.0

func NewShareRepository(ctx context.Context, db dbx.Builder) model.ShareRepository

func NewTranscodingRepository

func NewTranscodingRepository(ctx context.Context, db dbx.Builder) model.TranscodingRepository

func NewUserPropsRepository added in v0.44.0

func NewUserPropsRepository(ctx context.Context, db dbx.Builder) model.UserPropsRepository

func NewUserRepository

func NewUserRepository(ctx context.Context, db dbx.Builder) model.UserRepository

Types

type PostMapper added in v0.51.0

type PostMapper interface {
	PostMapArgs(map[string]any) error
}

type SQLStore

type SQLStore struct {
	// contains filtered or unexported fields
}

func (*SQLStore) Album

func (*SQLStore) Artist

func (*SQLStore) GC

func (s *SQLStore) GC(ctx context.Context, rootFolder string) error

func (*SQLStore) Genre

func (*SQLStore) MediaFile

func (s *SQLStore) MediaFile(ctx context.Context) model.MediaFileRepository

func (*SQLStore) MediaFolder

func (s *SQLStore) MediaFolder(ctx context.Context) model.MediaFolderRepository

func (*SQLStore) PlayQueue

func (s *SQLStore) PlayQueue(ctx context.Context) model.PlayQueueRepository

func (*SQLStore) Player

func (*SQLStore) Playlist

func (s *SQLStore) Playlist(ctx context.Context) model.PlaylistRepository

func (*SQLStore) Property

func (s *SQLStore) Property(ctx context.Context) model.PropertyRepository

func (*SQLStore) Radio added in v0.49.0

func (*SQLStore) Resource

func (s *SQLStore) Resource(ctx context.Context, m interface{}) model.ResourceRepository

func (*SQLStore) ScrobbleBuffer added in v0.45.0

func (s *SQLStore) ScrobbleBuffer(ctx context.Context) model.ScrobbleBufferRepository

func (*SQLStore) Share added in v0.44.0

func (*SQLStore) Transcoding

func (s *SQLStore) Transcoding(ctx context.Context) model.TranscodingRepository

func (*SQLStore) User

func (*SQLStore) UserProps added in v0.44.0

func (s *SQLStore) UserProps(ctx context.Context) model.UserPropsRepository

func (*SQLStore) WithTx

func (s *SQLStore) WithTx(block func(tx model.DataStore) error) error

Jump to

Keyboard shortcuts

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