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
- Variables
- func DeleteRange(b Batch, start, end []byte) error
- type AncientReader
- type AncientReaderOp
- type AncientStater
- type AncientStore
- type AncientWriteOp
- type AncientWriter
- type Batch
- type BatchWithDeleteRange
- type Batcher
- type Closer
- type Compacter
- type Database
- type Iteratee
- type Iterator
- type KeyValueReader
- type KeyValueStater
- type KeyValueStore
- type KeyValueWriter
- type Reader
- type ResettableAncientStore
- type Snapshotter
- type Stater
- type Writer
Constants ¶
const (
IdealBatchSize = ethdb.IdealBatchSize
)
Constants
Variables ¶
var ( ErrKeyNotFound = ethdb.ErrKeyNotFound ErrNotFound = ethdb.ErrNotFound )
Error values
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
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 BatchWithDeleteRange ¶ added in v0.15.5
BatchWithDeleteRange extends Batch with DeleteRange support
type 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 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 aliases for go-ethereum database interfaces We use our own Database and Batch interfaces (see database.go) which extend the base ones
type Database ¶
Database interface that extends ethdb.Database with SyncAncient
func NewDatabase ¶ added in v0.15.5
NewDatabase creates a new Database that wraps a gethdb.Database
type 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 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 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
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 |