diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-21 07:24:48 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-21 07:24:48 -0600 |
commit | afe8123d91e9b7e492fec95fad537f37d911f5d0 (patch) | |
tree | 9c59a10b225461923f594e8e9c8b374f0df09136 /bucket.go | |
parent | Merge pull request #135 from benbjohnson/bench (diff) | |
parent | all tests pass (diff) | |
download | dedo-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.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |