diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-17 15:23:39 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-17 15:23:39 -0700 |
commit | 153372abd4adbcdb0a8be7eecddcfe5b5c885d9f (patch) | |
tree | c4bb425337b467a9f6d06206f03c0101403c8a43 /rwtransaction.go | |
parent | Add system buckets. (diff) | |
download | dedo-153372abd4adbcdb0a8be7eecddcfe5b5c885d9f.tar.gz dedo-153372abd4adbcdb0a8be7eecddcfe5b5c885d9f.tar.xz |
Refactoring to RWCursor, RWTxn, and branch/leaf nodes and pages.
Diffstat (limited to 'rwtransaction.go')
-rw-r--r-- | rwtransaction.go | 9 |
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 +} + |