Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
func Wrap(bs BatchStore) store.Store
Wrap wraps the BatchStore with transaction functionality.
Types ¶
type BatchStore ¶
type BatchStore interface { store.StoreReader // WriteBatch atomically writes a list of write operations to the database. WriteBatch(batch ...WriteOp) error // Close closes the store. Close() error // NewSnapshot creates a snapshot. NewSnapshot() store.Snapshot }
BatchStore is a CRUD-capable storage engine that supports atomic batch writes. BatchStore doesn't support transactions. This interface is a Go version of the C++ LevelDB interface. It serves as an intermediate interface between store.Store and the LevelDB interface.
Click to show internal directories.
Click to hide internal directories.