diff --git a/kv/kv_interface.go b/kv/kv_interface.go index 3f27762ab..bd51347cd 100644 --- a/kv/kv_interface.go +++ b/kv/kv_interface.go @@ -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