Versions in this module Expand all Collapse all v0 v0.0.1 Jun 21, 2024 Changes in this version + func New(client *rpc.Client) ethdb.Database + type Database struct + func (db *Database) Ancient(kind string, number uint64) ([]byte, error) + func (db *Database) AncientDatadir() (string, error) + func (db *Database) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error) + func (db *Database) AncientSize(kind string) (uint64, error) + func (db *Database) Ancients() (uint64, error) + func (db *Database) Close() error + func (db *Database) Compact(start []byte, limit []byte) error + func (db *Database) Delete(key []byte) error + func (db *Database) Get(key []byte) ([]byte, error) + func (db *Database) Has(key []byte) (bool, error) + func (db *Database) HasAncient(kind string, number uint64) (bool, error) + func (db *Database) MigrateTable(s string, f func([]byte) ([]byte, error)) error + func (db *Database) ModifyAncients(f func(ethdb.AncientWriteOp) error) (int64, error) + func (db *Database) NewBatch() ethdb.Batch + func (db *Database) NewBatchWithSize(size int) ethdb.Batch + func (db *Database) NewIterator(prefix []byte, start []byte) ethdb.Iterator + func (db *Database) NewSnapshot() (ethdb.Snapshot, error) + func (db *Database) Put(key []byte, value []byte) error + func (db *Database) ReadAncients(fn func(op ethdb.AncientReaderOp) error) (err error) + func (db *Database) Stat(property string) (string, error) + func (db *Database) Sync() error + func (db *Database) Tail() (uint64, error) + func (db *Database) TruncateHead(n uint64) (uint64, error) + func (db *Database) TruncateTail(n uint64) (uint64, error) + func (t *Database) WasmDataBase() (ethdb.KeyValueStore, uint32)