Documentation
¶
Overview ¶
Package jsondb implements a fork of Steve Domino's Scribble.
Index ¶
Constants ¶
const ( ErrExists = cerrors.Error("db already exists") ErrMissingCollection = cerrors.Error("missing collection - no place to save record") ErrMissingResource = cerrors.Error("missing resource - unable to save record") )
const Version = "2.0.0"
Version is the current version of the project
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is what is used to interact with the JSONDB database. It runs transactions, and provides log output.
func New ¶
New creates a new database at the desired directory location, and returns a *DB to then use for interacting with the database.
func (*DB) Delete ¶
Delete locks the database then attempts to remove the collection/resource specified by path