aboutsummaryrefslogtreecommitdiff
path: root/rwtransaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'rwtransaction.go')
-rw-r--r--rwtransaction.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/rwtransaction.go b/rwtransaction.go
new file mode 100644
index 0000000..4cb7b4f
--- /dev/null
+++ b/rwtransaction.go
@@ -0,0 +1,9 @@
+package bolt
+
+// RWTransaction represents a transaction that can read and write data.
+// Only one read/write transaction can be active for a DB at a time.
+type RWTransaction struct {
+ Transaction
+ pagestate pagestate
+}
+