database

package
v0.0.0-...-a173fca Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MODULENAME = "database"

	DataDirFlag = common.DirectoryFlag{
		Name:  "datadir",
		Usage: "Directory for the database dir (default = inside the homedir)",
	}
)

Functions

This section is empty.

Types

type DatabaseConfig

type DatabaseConfig struct {
}

type DatabaseService

type DatabaseService struct {
	Config *DatabaseConfig
	// contains filtered or unexported fields
}

func NewDatabaseService

func NewDatabaseService(db dbinterface.KeyValueStore) *DatabaseService

func (*DatabaseService) Api

func (database *DatabaseService) Api() []app.API

func (*DatabaseService) CommandFlags

func (database *DatabaseService) CommandFlags() ([]cli.Command, []cli.Flag)

func (*DatabaseService) Init

func (database *DatabaseService) Init(executeContext *app.ExecuteContext) error

func (*DatabaseService) LevelDb

func (database *DatabaseService) LevelDb() dbinterface.KeyValueStore

func (*DatabaseService) MemoryDb

func (database *DatabaseService) MemoryDb() dbinterface.KeyValueStore

func (*DatabaseService) Name

func (database *DatabaseService) Name() string

func (*DatabaseService) Start

func (database *DatabaseService) Start(executeContext *app.ExecuteContext) error

func (*DatabaseService) Stop

func (database *DatabaseService) Stop(executeContext *app.ExecuteContext) error

type SnapShot

type SnapShot dirtiesKV

type TransactionStore

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

func NewTransactionStore

func NewTransactionStore(trie *trie.SecureTrie) *TransactionStore

func (*TransactionStore) CopyState

func (tDb *TransactionStore) CopyState() *SnapShot

func (*TransactionStore) Delete

func (tDb *TransactionStore) Delete(key []byte) error

func (*TransactionStore) Flush

func (tDb *TransactionStore) Flush()

func (*TransactionStore) Get

func (tDb *TransactionStore) Get(key []byte) ([]byte, error)

func (*TransactionStore) Put

func (tDb *TransactionStore) Put(key []byte, value []byte) error

func (*TransactionStore) RevertState

func (tDb *TransactionStore) RevertState(snapShot *SnapShot)

Directories

Path Synopsis
Package ethdb defines the interfaces for an Ethereum data store.
Package ethdb defines the interfaces for an Ethereum data store.
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