aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2014-05-04 18:32:59 -0700
committerTommi Virtanen <tv@eagain.net>2014-05-04 18:32:59 -0700
commiteaa47b6468543e42ed08aefab5bf83efa9ad9980 (patch)
treed73898265bc60891ff552786652dd7e7e91d2782
parentCursor.Seek validity is indicated by key being nil (diff)
downloaddedo-eaa47b6468543e42ed08aefab5bf83efa9ad9980.tar.gz
dedo-eaa47b6468543e42ed08aefab5bf83efa9ad9980.tar.xz
Document cursors seeing nested buckets
-rw-r--r--cursor.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cursor.go b/cursor.go
index 6e70bc5..56948fc 100644
--- a/cursor.go
+++ b/cursor.go
@@ -6,6 +6,7 @@ import (
)
// Cursor represents an iterator that can traverse over all key/value pairs in a bucket in sorted order.
+// Cursors see nested buckets with value == nil.
// Cursors can be obtained from a transaction and are valid as long as the transaction is open.
type Cursor struct {
bucket *Bucket