ethdb: renamed/moved interface

This commit is contained in:
Zsolt Felfoldi 2024-10-25 15:41:40 +02:00
parent fa8b4504d2
commit 3ec7698876

View file

@ -37,8 +37,8 @@ type KeyValueWriter interface {
Delete(key []byte) error Delete(key []byte) error
} }
// RangeDeleter wraps the DeleteRange method of a backing data store. // KeyValueRangeDeleter wraps the DeleteRange method of a backing data store.
type RangeDeleter interface { type KeyValueRangeDeleter interface {
// DeleteRange deletes all of the keys (and values) in the range [start,end) // DeleteRange deletes all of the keys (and values) in the range [start,end)
// (inclusive on start, exclusive on end). // (inclusive on start, exclusive on end).
DeleteRange(start, end []byte) error DeleteRange(start, end []byte) error
@ -68,7 +68,7 @@ type KeyValueStore interface {
KeyValueReader KeyValueReader
KeyValueWriter KeyValueWriter
KeyValueStater KeyValueStater
RangeDeleter KeyValueRangeDeleter
Batcher Batcher
Iteratee Iteratee
Compacter Compacter
@ -166,6 +166,7 @@ type Reader interface {
// immutable ancient data. // immutable ancient data.
type Writer interface { type Writer interface {
KeyValueWriter KeyValueWriter
KeyValueRangeDeleter
AncientWriter AncientWriter
} }
@ -197,7 +198,6 @@ type ResettableAncientStore interface {
type Database interface { type Database interface {
Reader Reader
Writer Writer
RangeDeleter
Batcher Batcher
Iteratee Iteratee
Stater Stater