func (s Store) List() ([]string, error) {
	return s.db.ReadAll(s.collection)
}
List all records
package storage
import (
	"path/filepath"
	"github.com/nanobox-io/golang-scribble"
)
type Store struct {
	filepath   string
	db         *scribble.Driver
	collection string
}
func NewStore(collection string, path string) *Store {
	db, err := scribble.New(path, nil)
	if err != nil {
		panic(err)
	}
	err = CreateDir(filepath.Join(path, collection))
	if err != nil {
		panic(err)
	}
	s := Store{
		filepath:   path,
		db:         db,
		collection: collection,
	}
	return &s
}
func (s Store) Save(id string, record interface{}) error {
	return s.db.Write(s.collection, id, record)
}
func (s Store) Load(id string, result interface{}) error {
	return s.db.Read(s.collection, id, result)
}
func (s Store) Delete(id string) error {
	return s.db.Delete(s.collection, id)
}