Versions in this module Expand all Collapse all v1 v1.0.0 Nov 29, 2023 Changes in this version + var ErrNotFound = errors.New("not found") + func IsNotFoundError(err error) bool + type Bucket struct + func MakeBucket(path []byte) *Bucket + func (b *Bucket) Bucket(bucketBytes []byte) *Bucket + func (b *Bucket) Key(suffix []byte) *Key + func (b *Bucket) Path() []byte + type Cursor interface + Close func() error + First func() bool + Key func() (*Key, error) + Next func() bool + Seek func(key *Key) error + Value func() ([]byte, error) + type DataAccessor interface + Cursor func(bucket *Bucket) (Cursor, error) + Delete func(key *Key) error + Get func(key *Key) ([]byte, error) + Has func(key *Key) (bool, error) + Put func(key *Key, value []byte) error + type Database interface + Begin func() (Transaction, error) + Close func() error + Compact func() error + type Key struct + func (k *Key) Bucket() *Bucket + func (k *Key) Bytes() []byte + func (k *Key) String() string + func (k *Key) Suffix() []byte + type Transaction interface + Commit func() error + Rollback func() error + RollbackUnlessClosed func() error