Categorygithub.com/ChainSafe/chaindb
modulepackage
0.1.6
Repository: https://github.com/chainsafe/chaindb.git
Documentation: pkg.go.dev

# README

chaindb

Discord

go key-value store using badgerDB

usage

go get github.com/ChainSafe/chaindb

# Functions

NewBadgerDB initializes badgerDB instance.
NewTable returns a Database object that prefixes all keys with a given string.
NewTableBatch returns a Batch object which prefixes all keys with a given string.

# Variables

ErrKeyNotFound is returned if there is a database get for a key that does not exist.

# Structs

BadgerDB contains directory path to data and db instance.
BadgerIterator struct contains a transaction, iterator and init.
Config defines configurations for BadgerDB instance.

# Interfaces

Batch is a write-only operation.
Database wraps all database operations.
Iterator iterates over key/value pairs in ascending key order.
Reader interface.
Writer interface.

# Type aliases

No description provided by the author