# Functions
NewDB constructs a new DB and validates the schema if it exists in database on the given path.
# Structs
DB provides abstractions over LevelDB in order to implement complex structures using fields and ordered indexes.
Index represents a set of LevelDB key value pairs that have common prefix.
IndexFuncs structure defines functions for encoding and decoding LevelDB keys and values for a specific index.
IndexItem holds fields relevant to Swarm Chunk data and metadata.
StringField is the most simple field implementation that stores an arbitrary string under a specific LevelDB key.
StructField is a helper to store complex structure by encoding it in RLP format.
Uint64Field provides a way to have a simple counter in the database.
# Type aliases
IndexIterFunc is a callback on every IndexItem that is decoded by iterating on an Index keys.