diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-31 13:18:51 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-01 12:30:37 -0500 |
commit | 1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc (patch) | |
tree | d6aa197560053444d76dce1bd198a584c051c7b9 /bucket.go | |
parent | Merge pull request #4 from benbjohnson/api (diff) | |
download | dedo-1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc.tar.gz dedo-1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc.tar.xz |
Add RWTransaction.Put().
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -15,13 +15,8 @@ func (b *Bucket) Name() string { return b.name } -// Get retrieves the value for a key in the bucket. -func (b *Bucket) Get(key []byte) []byte { - return b.Cursor().Get(key) -} - -// Cursor creates a new cursor for this bucket. -func (b *Bucket) Cursor() *Cursor { +// cursor creates a new cursor for this bucket. +func (b *Bucket) cursor() *Cursor { return &Cursor{ transaction: b.transaction, root: b.root, |