ethdb

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: GPL-3.0, LGPL-3.0 Imports: 1 Imported by: 72

Documentation

Overview

Package ethdb provides batch extensions

Package ethdb provides wrapper types for go-ethereum's ethdb interfaces

Package ethdb provides extended interfaces for database operations

Index

Constants

View Source
const (
	IdealBatchSize = ethdb.IdealBatchSize
)

Constants

Variables

View Source
var (
	ErrKeyNotFound = ethdb.ErrKeyNotFound
	ErrNotFound    = ethdb.ErrNotFound
)

Error values

View Source
var (
	HasCode          = ethdb.HasCode
	HasBody          = ethdb.HasBody
	HasReceipts      = ethdb.HasReceipts
	HasHeader        = ethdb.HasHeader
	IsCodeKey        = ethdb.IsCodeKey
	IsLegacyTrieNode = ethdb.IsLegacyTrieNode
)

Re-export utility functions

Functions

func DeleteRange added in v0.15.5

func DeleteRange(b Batch, start, end []byte) error

DeleteRange attempts to delete a range if the batch supports it

Types

type AncientReader

type AncientReader = ethdb.AncientReader

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type AncientReaderOp

type AncientReaderOp = ethdb.AncientReaderOp

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type AncientStater

type AncientStater = ethdb.AncientStater

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type AncientStore

type AncientStore = ethdb.AncientStore

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type AncientWriteOp

type AncientWriteOp = ethdb.AncientWriteOp

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type AncientWriter

type AncientWriter = ethdb.AncientWriter

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Batch

type Batch interface {
	ethdb.Batch
	DeleteRange(start, end []byte) error
}

Batch interface that extends ethdb.Batch with DeleteRange

func NewBatch added in v0.15.5

func NewBatch(b gethdb.Batch) Batch

NewBatch creates a new Batch that wraps a gethdb.Batch

type BatchWithDeleteRange added in v0.15.5

type BatchWithDeleteRange interface {
	Batch
	DeleteRange(start, end []byte) error
}

BatchWithDeleteRange extends Batch with DeleteRange support

type Batcher

type Batcher = ethdb.Batcher

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Closer added in v0.15.8

type Closer = ethdb.Closer

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Compacter

type Compacter = ethdb.Compacter

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Database

type Database interface {
	ethdb.Database
	SyncAncient() error
}

Database interface that extends ethdb.Database with SyncAncient

func NewDatabase added in v0.15.5

func NewDatabase(db gethdb.Database) Database

NewDatabase creates a new Database that wraps a gethdb.Database

type Iteratee

type Iteratee = ethdb.Iteratee

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Iterator

type Iterator = ethdb.Iterator

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type KeyValueReader

type KeyValueReader = ethdb.KeyValueReader

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type KeyValueStater

type KeyValueStater = ethdb.KeyValueStater

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type KeyValueStore

type KeyValueStore = ethdb.KeyValueStore

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type KeyValueWriter

type KeyValueWriter = ethdb.KeyValueWriter

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Reader

type Reader = ethdb.Reader

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type ResettableAncientStore

type ResettableAncientStore = ethdb.ResettableAncientStore

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Snapshotter added in v0.15.8

type Snapshotter = ethdb.Snapshotter

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Stater added in v0.15.8

type Stater = ethdb.Stater

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

type Writer added in v0.15.8

type Writer = ethdb.Writer

Type aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones

Directories

Path Synopsis
Package leveldb provides a wrapper for go-ethereum's leveldb implementation
Package leveldb provides a wrapper for go-ethereum's leveldb implementation
Package memorydb provides a wrapper for go-ethereum's memorydb implementation
Package memorydb provides a wrapper for go-ethereum's memorydb implementation
Package pebble provides a wrapper for go-ethereum's pebble implementation
Package pebble provides a wrapper for go-ethereum's pebble implementation

Jump to

Keyboard shortcuts

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