ethdb: add NewBatch
This commit is contained in:
@@ -22,4 +22,10 @@ type Database interface {
|
||||
Delete(key []byte) error
|
||||
Close()
|
||||
Flush() error
|
||||
NewBatch() Batch
|
||||
}
|
||||
|
||||
type Batch interface {
|
||||
Put(key, value []byte) error
|
||||
Write() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user