Documentation ¶ Index ¶ type Database func New(db *leveldb.DB, o ...Option) *Database func Open(filepath string, o ...Option) (*Database, error) func (d *Database) Begin(prefix *record.Key, writable bool) keyvalue.ChangeSet func (d *Database) Close() error type Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Database ¶ type Database struct { // contains filtered or unexported fields } func New ¶ func New(db *leveldb.DB, o ...Option) *Database func Open ¶ func Open(filepath string, o ...Option) (*Database, error) func (*Database) Begin ¶ func (d *Database) Begin(prefix *record.Key, writable bool) keyvalue.ChangeSet Begin begins a change set. func (*Database) Close ¶ func (d *Database) Close() error Close the database. type Option ¶ type Option func(*opts) Source Files ¶ View all Source files database.go Click to show internal directories. Click to hide internal directories.