sqlite

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGalleryReaderWriter

func NewGalleryReaderWriter(tx dbi) *galleryQueryBuilder

func NewImageReaderWriter

func NewImageReaderWriter(tx dbi) *imageQueryBuilder

func NewMovieReaderWriter

func NewMovieReaderWriter(tx dbi) *movieQueryBuilder

func NewPerformerReaderWriter

func NewPerformerReaderWriter(tx dbi) *performerQueryBuilder

func NewSavedFilterReaderWriter added in v0.8.0

func NewSavedFilterReaderWriter(tx dbi) *savedFilterQueryBuilder

func NewSceneMarkerReaderWriter

func NewSceneMarkerReaderWriter(tx dbi) *sceneMarkerQueryBuilder

func NewSceneReaderWriter

func NewSceneReaderWriter(tx dbi) *sceneQueryBuilder

func NewScrapedItemReaderWriter

func NewScrapedItemReaderWriter(tx dbi) *scrapedItemQueryBuilder

func NewStudioReaderWriter

func NewStudioReaderWriter(tx dbi) *studioQueryBuilder

func NewTagReaderWriter

func NewTagReaderWriter(tx dbi) *tagQueryBuilder

Types

type ReadTransaction

type ReadTransaction struct{}

func (*ReadTransaction) Begin

func (t *ReadTransaction) Begin() error

func (*ReadTransaction) Commit

func (t *ReadTransaction) Commit() error

func (*ReadTransaction) Gallery

func (t *ReadTransaction) Gallery() models.GalleryReader

func (*ReadTransaction) Image

func (t *ReadTransaction) Image() models.ImageReader

func (*ReadTransaction) Movie

func (t *ReadTransaction) Movie() models.MovieReader

func (*ReadTransaction) Performer

func (t *ReadTransaction) Performer() models.PerformerReader

func (*ReadTransaction) Repository

func (t *ReadTransaction) Repository() models.ReaderRepository

func (*ReadTransaction) Rollback

func (t *ReadTransaction) Rollback() error

func (*ReadTransaction) SavedFilter added in v0.8.0

func (t *ReadTransaction) SavedFilter() models.SavedFilterReader

func (*ReadTransaction) Scene

func (t *ReadTransaction) Scene() models.SceneReader

func (*ReadTransaction) SceneMarker

func (t *ReadTransaction) SceneMarker() models.SceneMarkerReader

func (*ReadTransaction) ScrapedItem

func (t *ReadTransaction) ScrapedItem() models.ScrapedItemReader

func (*ReadTransaction) Studio

func (t *ReadTransaction) Studio() models.StudioReader

func (*ReadTransaction) Tag

func (t *ReadTransaction) Tag() models.TagReader

type TransactionManager

type TransactionManager struct {
}

func NewTransactionManager

func NewTransactionManager() *TransactionManager

func (*TransactionManager) WithReadTxn

func (t *TransactionManager) WithReadTxn(ctx context.Context, fn func(r models.ReaderRepository) error) error

func (*TransactionManager) WithTxn

func (t *TransactionManager) WithTxn(ctx context.Context, fn func(r models.Repository) error) error

Jump to

Keyboard shortcuts

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