aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-31 13:18:51 -0500
committerBen Johnson <benbjohnson@yahoo.com>2014-02-01 12:30:37 -0500
commit1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc (patch)
treed6aa197560053444d76dce1bd198a584c051c7b9 /bucket.go
parentMerge pull request #4 from benbjohnson/api (diff)
downloaddedo-1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc.tar.gz
dedo-1a17a2cf1ee8b509dd00b7f29a01c13108acb2cc.tar.xz
Add RWTransaction.Put().
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/bucket.go b/bucket.go
index 6cfe1ca..b1c1cc0 100644
--- a/bucket.go
+++ b/bucket.go
@@ -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,