ethdb: add NewBatch

This commit is contained in:
Felix Lange
2015-09-14 23:36:30 +02:00
parent 8c4dab77ba
commit 8b32f10f16
3 changed files with 49 additions and 0 deletions
+6
View File
@@ -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
}