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"

Index

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() *VersionedDBProvider

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

Directories

PathSynopsis
msgs

Package stateleveldb imports 12 packages (graph) and is imported by 8 packages. Updated 2019-08-24. Refresh now. Tools for package owners.