database

package
v1.21.46 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: GPL-3.0, LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSnapshotNotSupported = errors.New("snapshot is not supported")
)

Functions

func WrapDatabase

func WrapDatabase(db database.Database) ethdb.KeyValueStore

Types

type Snapshot

type Snapshot struct{}

Snapshot is a minimal implementation that satisfies the interface

func (Snapshot) Get

func (s Snapshot) Get(key []byte) ([]byte, error)

func (Snapshot) Has

func (s Snapshot) Has(key []byte) (bool, error)

func (Snapshot) Release

func (s Snapshot) Release()

Jump to

Keyboard shortcuts

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