mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* Add new txn manager interface * Add txn management to sqlite * Rename get to getByID * Add contexts to repository methods * Update query builders * Add context to reader writer interfaces * Use repository in resolver * Tighten interfaces * Tighten interfaces in dlna * Tighten interfaces in match package * Tighten interfaces in scraper package * Tighten interfaces in scan code * Tighten interfaces on autotag package * Remove ReaderWriter usage * Merge database package into sqlite
13 lines
273 B
Go
13 lines
273 B
Go
package movie
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/stashapp/stash/pkg/models"
|
|
)
|
|
|
|
type NameFinderCreator interface {
|
|
FindByName(ctx context.Context, name string, nocase bool) (*models.Movie, error)
|
|
Create(ctx context.Context, newMovie models.Movie) (*models.Movie, error)
|
|
}
|