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 (*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) GetDBHandle ¶
func (provider *VersionedDBProvider) GetDBHandle(dbName string) (statedb.VersionedDB, error)
getdbhandle获取命名数据库的句柄
Click to show internal directories.
Click to hide internal directories.