aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
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