# Functions

No description provided by the author
No description provided by the author
No description provided by the author
Instance return the Instance of the db.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DBBasePath path of basedb.
DBPath path of db.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultComparer are default implementation of the Comparer interface.
No description provided by the author
ErrNotFound when db not found.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
Database wraps all database operations.
DB the main snapshotdb interface example new a recognized blockData(sync from other peer) dbInstance.NewBlock(blockNumber, parentHash, hash) dbInstance.Put(hash, kv.key, kv.value) dbInstance.Commit(hash) new a unrecognized blockData(a block produce by self) dbInstance.NewBlock(blockNumber, parentHash, common.ZeroHash) dbInstance.Put(hash, kv.key, kv.value) dbInstance.Flush(hash common.Hash, blockNumber *big.Int) dbInstance.Commit(hash) get a blockData with hash dbInstance.Get(hash, key) get a blockData without hash dbInstance.Get(common.zerohash, key).
Deleter wraps the database delete operation supported by both batches and regular databases.
Putter wraps the database write operation supported by both batches and regular databases.
No description provided by the author