Documentation ¶
Overview ¶
Package store implements a data store for items.
Index ¶
Constants ¶
View Source
const ( MovieType = "Movie" TvShowType = "Tv Show" )
Show types used to classify shows.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbStore ¶
type DbStore struct {
// contains filtered or unexported fields
}
DbStore wraps a database into a Store.
func New ¶
New creates a store that uses an SQLite db. If the tables do not already exist on the db, they will be created.
func (*DbStore) All ¶
All returns a slice containing all the items in the store. If there are no items, the slice will have length 0.
func (*DbStore) Close ¶
Close closes the store. Should be deferred. Closing the store multiple times has no effect.
Click to show internal directories.
Click to hide internal directories.