Versions in this module Expand all Collapse all v0 v0.8.6 May 28, 2024 Changes in this version + var OpenFileLimit = 64 + type LDBDatabase struct + func New(file string, cache int, handles int, namespace string, readonly bool) (*LDBDatabase, error) + func NewCustom(file string, namespace string, customize func(options *opt.Options)) (*LDBDatabase, error) + func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) + func (db *LDBDatabase) Close() error + func (db *LDBDatabase) Compact(start []byte, limit []byte) error + func (db *LDBDatabase) Delete(key []byte) error + func (db *LDBDatabase) Get(key []byte) ([]byte, error) + func (db *LDBDatabase) Has(key []byte) (bool, error) + func (db *LDBDatabase) LDB() *leveldb.DB + func (db *LDBDatabase) Meter(prefix string) + func (db *LDBDatabase) NewBatch() ethdb.Batch + func (db *LDBDatabase) NewBatchWithSize(size int) ethdb.Batch + func (db *LDBDatabase) NewIterator(prefix []byte, start []byte) ethdb.Iterator + func (db *LDBDatabase) NewIteratorWithPrefix(prefix []byte) iterator.Iterator + func (db *LDBDatabase) NewSnapshot() (ethdb.Snapshot, error) + func (db *LDBDatabase) Path() string + func (db *LDBDatabase) Put(key []byte, value []byte) error + func (db *LDBDatabase) Stat(property string) (string, error) + func (db *LDBDatabase) Sync() error