Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + const NoLogdir + func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte, log bool) error) (bool, error) + func RestoreInto(r io.Reader, dest datastore.Batching) error + type Datastore struct + func Wrap(child datastore.Batching, logdir string) (*Datastore, error) + func (d *Datastore) Backup(out io.Writer) error + func (d *Datastore) Batch() (datastore.Batch, error) + func (d *Datastore) Close() error + func (d *Datastore) CloseLog() error + func (d *Datastore) Delete(key datastore.Key) error + func (d *Datastore) Get(key datastore.Key) (value []byte, err error) + func (d *Datastore) GetSize(key datastore.Key) (size int, err error) + func (d *Datastore) Has(key datastore.Key) (exists bool, err error) + func (d *Datastore) Put(key datastore.Key, value []byte) error + func (d *Datastore) Query(q query.Query) (query.Results, error) + func (d *Datastore) Sync(prefix datastore.Key) error + type Entry struct + Key []byte + Timestamp int64 + Value []byte + func (t *Entry) MarshalCBOR(w io.Writer) error + func (t *Entry) UnmarshalCBOR(r io.Reader) error