mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
docs: cursor dupsort example
This commit is contained in:
parent
0ca1ba48e7
commit
f3edece0bc
@ -469,6 +469,21 @@ type RwCursor interface {
|
||||
DeleteCurrent() error
|
||||
}
|
||||
|
||||
// CursorDupSort
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// for k, v, err = cursor.First(); k != nil; k, v, err = cursor.NextNoDup() {
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// for ; v != nil; _, v, err = cursor.NextDup() {
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
type CursorDupSort interface {
|
||||
Cursor
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user