ethdb

package
v0.15.5 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: 2 Imported by: 72

Documentation

Overview

Package ethdb provides batch extensions

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

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
)

Re-export constants

Variables

View Source
var (
	// ErrInvalidBatch is returned when batch is invalid.
	ErrInvalidBatch = errors.New("invalid batch")
)

Re-export errors

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

Re-export all other ethdb types from go-ethereum

type AncientReaderOp

type AncientReaderOp = ethdb.AncientReaderOp

Re-export all other ethdb types from go-ethereum

type AncientStater

type AncientStater = ethdb.AncientStater

Re-export all other ethdb types from go-ethereum

type AncientStore

type AncientStore = ethdb.AncientStore

Re-export all other ethdb types from go-ethereum

type AncientWriteOp

type AncientWriteOp = ethdb.AncientWriteOp

Re-export all other ethdb types from go-ethereum

type AncientWriter

type AncientWriter = ethdb.AncientWriter

Re-export all other ethdb types from go-ethereum

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 ethdb.Batch) Batch

NewBatch creates a new Batch that wraps an ethdb.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

Re-export all other ethdb types from go-ethereum

type Compacter

type Compacter = ethdb.Compacter

Re-export all other ethdb types from go-ethereum

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 ethdb.Database) Database

NewDatabase creates a new Database that wraps an ethdb.Database

type Iteratee

type Iteratee = ethdb.Iteratee

Re-export all other ethdb types from go-ethereum

type Iterator

type Iterator = ethdb.Iterator

Re-export all other ethdb types from go-ethereum

type KeyValueReader

type KeyValueReader = ethdb.KeyValueReader

Re-export all other ethdb types from go-ethereum

type KeyValueStater

type KeyValueStater = ethdb.KeyValueStater

Re-export all other ethdb types from go-ethereum

type KeyValueStore

type KeyValueStore = ethdb.KeyValueStore

Re-export all other ethdb types from go-ethereum

type KeyValueWriter

type KeyValueWriter = ethdb.KeyValueWriter

Re-export all other ethdb types from go-ethereum

type Reader

type Reader = ethdb.Reader

Re-export all other ethdb types from go-ethereum

type ResettableAncientStore

type ResettableAncientStore = ethdb.ResettableAncientStore

Re-export all other ethdb types from go-ethereum

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