fabric: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/stateleveldb Index | Files | Directories

package stateleveldb

import "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/stateleveldb"


Package Files

stateleveldb.go stateleveldb_test_export.go value_encoding.go

type TestVDBEnv Uses

type TestVDBEnv struct {
    DBProvider statedb.VersionedDBProvider
    // contains filtered or unexported fields

TestVDBEnv provides a level db backed versioned db for testing

func NewTestVDBEnv Uses

func NewTestVDBEnv(t testing.TB) *TestVDBEnv

NewTestVDBEnv instantiates and new level db backed TestVDB

func (*TestVDBEnv) Cleanup Uses

func (env *TestVDBEnv) Cleanup()

Cleanup closes the db and removes the db folder

type VersionedDBProvider Uses

type VersionedDBProvider struct {
    // contains filtered or unexported fields

VersionedDBProvider implements interface VersionedDBProvider

func NewVersionedDBProvider Uses

func NewVersionedDBProvider(dbPath string) (*VersionedDBProvider, error)

NewVersionedDBProvider instantiates VersionedDBProvider

func (*VersionedDBProvider) Close Uses

func (provider *VersionedDBProvider) Close()

Close closes the underlying db

func (*VersionedDBProvider) GetDBHandle Uses

func (provider *VersionedDBProvider) GetDBHandle(dbName string) (statedb.VersionedDB, error)

GetDBHandle gets the handle to a named database



Package stateleveldb imports 14 packages (graph) and is imported by 18 packages. Updated 2020-01-09. Refresh now. Tools for package owners.