aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-21 07:24:48 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-21 07:24:48 -0600
commitafe8123d91e9b7e492fec95fad537f37d911f5d0 (patch)
tree9c59a10b225461923f594e8e9c8b374f0df09136 /bucket.go
parentMerge pull request #135 from benbjohnson/bench (diff)
parentall tests pass (diff)
downloaddedo-afe8123d91e9b7e492fec95fad537f37d911f5d0.tar.gz
dedo-afe8123d91e9b7e492fec95fad537f37d911f5d0.tar.xz
Merge pull request #134 from Shopify/c_cursor
C cursor
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/bucket.go b/bucket.go
index 2ce2350..77d31c9 100644
--- a/bucket.go
+++ b/bucket.go
@@ -63,6 +63,16 @@ func newBucket(tx *Tx) Bucket {
return b
}
+// Tx returns the tx of the bucket.
+func (b *Bucket) Tx() *Tx {
+ return b.tx
+}
+
+// Root returns the root of the bucket.
+func (b *Bucket) Root() pgid {
+ return b.root
+}
+
// Writable returns whether the bucket is writable.
func (b *Bucket) Writable() bool {
return b.tx.writable