kvdb

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbProducer

type DbProducer interface {
	// Names of existing databases.
	Names() []string
	// OpenDb or create db with name.
	OpenDb(name string) KeyValueStore
}

DbProducer represents real db producer.

type Droper

type Droper interface {
	Drop()
}

Droper is able to delete the DB.

type FlushableKeyValueStore

type FlushableKeyValueStore interface {
	KeyValueStore

	NotFlushedPairs() int
	NotFlushedSizeEst() int
	Flush() error
	DropNotFlushed()
}

FlushableKeyValueStore contains all the method for flushable databases, i.e. databases which write changes on disk only on flush.

type KeyValueStore

type KeyValueStore interface {
	ethdb.KeyValueStore
	Droper
}

KeyValueStore contains all the methods required to allow handling different key-value data stores backing the high level database.

Directories

Path Synopsis
Package leveldb implements the key-value database layer based on LevelDB.
Package leveldb implements the key-value database layer based on LevelDB.
Package memorydb implements the key-value database layer based on memory maps.
Package memorydb implements the key-value database layer based on memory maps.

Jump to

Keyboard shortcuts

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