From b178373351a2d9711c8614255843038c5bed5872 Mon Sep 17 00:00:00 2001 From: Steven Normore Date: Tue, 15 Apr 2014 17:56:53 +0000 Subject: build c/cursor and running tests --- bucket.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bucket.go') 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 -- cgit v1.2.3