aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/interface.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-08-18 19:42:21 +0800
committerFelix Lange <fjl@twurst.com>2015-09-15 05:36:30 +0800
commit8b32f10f16f19c0b8985399fafdfe31af29493a1 (patch)
treec8fc463ce665286c7e604fc56e0a7f1ac7c6fa9a /ethdb/interface.go
parent8c4dab77ba48dc68073fe1df79e7000043c0f966 (diff)
downloadgo-tangerine-8b32f10f16f19c0b8985399fafdfe31af29493a1.tar.gz
go-tangerine-8b32f10f16f19c0b8985399fafdfe31af29493a1.tar.zst
go-tangerine-8b32f10f16f19c0b8985399fafdfe31af29493a1.zip
ethdb: add NewBatch
Diffstat (limited to 'ethdb/interface.go')
-rw-r--r--ethdb/interface.go6
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
}