diff options
Diffstat (limited to 'ethdb/interface.go')
-rw-r--r-- | ethdb/interface.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethdb/interface.go b/ethdb/interface.go index 598e8eaa3..acb1b57c0 100644 --- a/ethdb/interface.go +++ b/ethdb/interface.go @@ -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 } |