Documentation
¶
Overview ¶
Package badger snapshots and loads a whole Badger instance for the platform stores built on one (ADR-0202), the metastore engine and the run state, so each reads in one transaction alike.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, db *badger.DB, next func() (snapshot.Record, error), skip func(key []byte) (bool, error)) error
Load writes the records next returns, until io.EOF, into db through a WriteBatch, which commits whenever Badger's transaction limit is reached. A non-empty db gets fault.Conflict before any write. skip, when not nil, names a record to leave out, or fails the Load on a malformed one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.