From 153372abd4adbcdb0a8be7eecddcfe5b5c885d9f Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 17 Jan 2014 15:23:39 -0700 Subject: Refactoring to RWCursor, RWTxn, and branch/leaf nodes and pages. --- rwtransaction.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 rwtransaction.go (limited to 'rwtransaction.go') 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 +} + -- cgit v1.2.3