Documentation ¶
Overview ¶
Package db is the endive subpackage that implements the Database interface.
The current implementation saves all Book information as a simple JSON file.
That makes it: - easy to index with bleve - easy to check and, if desperate, edit for a human being - easy to version with git
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONDB ¶
type JSONDB struct {
// contains filtered or unexported fields
}
JSONDB implements endive.Database with a JSON backend.
func (*JSONDB) Load ¶
func (db *JSONDB) Load(bks endive.Collection) error
Load database into a Collection
Click to show internal directories.
Click to hide internal directories.