Modified all db types to conform to the interface changes.

This commit is contained in:
Paul W. Homer
2017-03-23 11:37:46 -04:00
parent d6205eb4ca
commit 6064c80250
4 changed files with 88 additions and 15 deletions

5
db.go
View File

@ -12,9 +12,9 @@ type DB interface {
NewBatch() Batch
// For debugging
Iterator() Iterator
Next(Iterator) (key []byte, value []byte)
Print()
Iterator() Iterator
Stats() map[string]string
}
type Batch interface {
@ -25,6 +25,7 @@ type Batch interface {
type Iterator interface {
Next() bool
Key() []byte
Value() []byte
}