stateleveldb

package
v0.0.0-...-fbe82ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestVDBEnv

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

testvdbenv为测试提供了一个支持级别db的版本数据库

func NewTestVDBEnv

func NewTestVDBEnv(t testing.TB) *TestVDBEnv

newtestvdbenv实例化和新的级别db支持的testvdb

func (*TestVDBEnv) Cleanup

func (env *TestVDBEnv) Cleanup()

Cleanup closes the db and removes the db folder

type VersionedDBProvider

type VersionedDBProvider struct {
	// contains filtered or unexported fields
}

versioneddbprovider实现接口versioneddbprovider

func NewVersionedDBProvider

func NewVersionedDBProvider() *VersionedDBProvider

NewVersionedDBProvider实例化VersionedDBProvider

func (*VersionedDBProvider) Close

func (provider *VersionedDBProvider) Close()

关闭关闭基础数据库

func (*VersionedDBProvider) GetDBHandle

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

getdbhandle获取命名数据库的句柄

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL