Add DB.iterator helper api #1
1 changed files with 1 additions and 0 deletions
|
@ -2440,6 +2440,7 @@ cdef class BaseIterator(object):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def __reversed__(self):
|
def __reversed__(self):
|
||||||
|
self.seek_to_last()
|
||||||
return ReversedIterator(self)
|
return ReversedIterator(self)
|
||||||
|
|
||||||
cpdef seek_to_first(self):
|
cpdef seek_to_first(self):
|
||||||
|
|
Loading…
Reference in a new issue