You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
398 B

// package db defines the database interface
package db
import "github.com/gabehf/kanpeki/internal/models"
type DB interface {
Close()
SaveLibrary(*models.LibraryInfo) error
GetLibraryInfo(id string) (*models.LibraryInfo, error)
DeleteLibrary(id string) error
SaveMediaInfo(*models.MediaInfo) error
GetMediaInfo(path string) (*models.MediaInfo, error)
DeleteMediaInfo(path string) error
}