Splits bleve.Index and database in two
This commit is contained in:
27
album_database.go
Normal file
27
album_database.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import "github.com/peterbourgon/diskv"
|
||||
|
||||
type AlbumDatabase struct {
|
||||
db *diskv.Diskv
|
||||
}
|
||||
|
||||
func OpenAlbumDatabase(basepath string) (*AlbumDatabase, error) {
|
||||
return nil, notYetImplemented()
|
||||
}
|
||||
|
||||
func (db *AlbumDatabase) AddOrUpdate(*Album) error {
|
||||
return notYetImplemented()
|
||||
}
|
||||
|
||||
func (db *AlbumDatabase) Delete(AlbumID) error {
|
||||
return notYetImplemented()
|
||||
}
|
||||
|
||||
func (db *AlbumDatabase) Get(AlbumID) (*Album, error) {
|
||||
return nil, notYetImplemented()
|
||||
}
|
||||
|
||||
func (db *AlbumDatabase) ByPurchaseDate() ([]*Album, error) {
|
||||
return nil, notYetImplemented()
|
||||
}
|
||||
Reference in New Issue
Block a user