Documentation ¶
Index ¶
- func NewGalleryReaderWriter(tx dbi) *galleryQueryBuilder
- func NewImageReaderWriter(tx dbi) *imageQueryBuilder
- func NewMovieReaderWriter(tx dbi) *movieQueryBuilder
- func NewPerformerReaderWriter(tx dbi) *performerQueryBuilder
- func NewSavedFilterReaderWriter(tx dbi) *savedFilterQueryBuilder
- func NewSceneMarkerReaderWriter(tx dbi) *sceneMarkerQueryBuilder
- func NewSceneReaderWriter(tx dbi) *sceneQueryBuilder
- func NewScrapedItemReaderWriter(tx dbi) *scrapedItemQueryBuilder
- func NewStudioReaderWriter(tx dbi) *studioQueryBuilder
- func NewTagReaderWriter(tx dbi) *tagQueryBuilder
- type ReadTransaction
- func (t *ReadTransaction) Begin() error
- func (t *ReadTransaction) Commit() error
- func (t *ReadTransaction) Gallery() models.GalleryReader
- func (t *ReadTransaction) Image() models.ImageReader
- func (t *ReadTransaction) Movie() models.MovieReader
- func (t *ReadTransaction) Performer() models.PerformerReader
- func (t *ReadTransaction) Repository() models.ReaderRepository
- func (t *ReadTransaction) Rollback() error
- func (t *ReadTransaction) SavedFilter() models.SavedFilterReader
- func (t *ReadTransaction) Scene() models.SceneReader
- func (t *ReadTransaction) SceneMarker() models.SceneMarkerReader
- func (t *ReadTransaction) ScrapedItem() models.ScrapedItemReader
- func (t *ReadTransaction) Studio() models.StudioReader
- func (t *ReadTransaction) Tag() models.TagReader
- type TransactionManager
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
Click to show internal directories.
Click to hide internal directories.