package
0.0.0-20230212034559-de23f7aa81fa
Repository: https://github.com/kroggen/aergo-lib.git
Documentation: pkg.go.dev

# Functions

NewDB creates new database or load existing database in the directory.

# Constants

BadgerImpl represents a name of DB interface implementation using badgerdb.
DummyImpl represents a name of DB interface implementation in memory that only keeps the first block + the last 10 blocks.
LevelImpl represents a name of DB interface implementation using leveldb.
MemoryImpl represents a name of DB interface implementation in memory.

# Interfaces

Bulk is used to batch multiple transactions This will internally commit transactions when reach maximum tx size.
DB is an general interface to access at storage data.
Iterator is used to navigate specific key ranges.
Transaction is used to batch multiple operations.

# Type aliases

ImplType represents implementators of a DB interface.