aboutsummaryrefslogtreecommitdiff
path: root/tx.go (unfollow)
Commit message (Expand)AuthorFilesLines
2014-03-13Fix Cursor.Last() on empty buckets.•••@tv42 reported that creating a cursor on an empty bucket and then calling Cursor.Last() causes an index out of range error and panics. This commit adds a check for the page's item count being greater than zero. Fixes #63. Ben Johnson2-7/+22
2014-03-10READMEBen Johnson1-2/+2
2014-03-08Consolidate Tx and RWTx.Ben Johnson16-718/+718
2014-03-08Rename Transaction to Tx.•••I changed the Transaction/RWTransaction types to Tx/RWTx, respectively. This makes the naming more consistent with other packages such as database/sql. The txnid is changed to txid as well. Ben Johnson17-273/+259
2014-03-04Add benchmarks.Ben Johnson5-1/+106
2014-03-01Ignore multiple transaction commit/rollback/close.Ben Johnson3-5/+16
2014-03-01Allow reads of unflushed nodes.•••This commit allows cursors to read updated values from within the RWTransaction. Ben Johnson7-62/+172
2014-02-28Minor refactor.Ben Johnson6-32/+26
2014-02-27Fix the mmap resize to use the correct size.•••Fixes #54. Previously the DB was calculating a minimum mmap size but using the wrong variable after it calculated the size. This commit changes the DB to use the correct variable. Ben Johnson1-1/+1
2014-02-27Add bucket reclamation.•••After RWTransaction.DeleteBucket() is called, all pages related to the bucket are moved to the freelist for that transaction. Ben Johnson2-2/+12
2014-02-26Add bolt.Open().•••Per the suggestion of @tv42 and @cespare, this commit adds a package level function to create and initialize a database at a given path. This is a common interface for database packages. Ben Johnson2-0/+36
2014-02-25Remove RWTransaction.Bucket().•••Add an reference to the RWTransaction onto Transaction so that calls to Transaction.Bucket() and Transaction.Buckets() return writable buckets when attached to a writabe transaction. Ben Johnson2-32/+20
2014-02-23Refactor Bucket.Ben Johnson11-453/+549
2014-02-22Revert "Refactor Transaction/Bucket API."•••This reverts commit 1ad2b99f281d587b767b36f886401e81d17915a9. Ben Johnson15-853/+856
2014-02-21Refactor Transaction/Bucket API.Ben Johnson15-856/+853
2014-02-21Add DB.Stat().Ben Johnson2-0/+97
2014-02-21Bucket stats.Ben Johnson3-0/+107
2014-02-20Bidirectional cursors.Ben Johnson4-4/+134
2014-02-20Cursor.Get is now Cursor.Seek, and returns the first possible key.•••This makes range and prefix queries possible. Closes: #44 Tommi Virtanen3-16/+21
2014-02-20Fix Cursor godoc for First(), Next(), and Get().Ben Johnson1-3/+3
2014-02-20Update project status.Ben Johnson1-1/+1
2014-02-20Check for sequence overflow.Ben Johnson4-0/+32
2014-02-20Add 'make cloc'.Ben Johnson1-1/+5
2014-02-18Change project status to 'Alpha'.Ben Johnson1-1/+1
2014-02-16Read-only transactional block.Ben Johnson3-5/+37
2014-02-16Add Transaction.ForEach().Ben Johnson4-0/+121
2014-02-16Add CreateBucketIfNotExists().Ben Johnson3-0/+31
2014-02-16Rename errors.Ben Johnson10-63/+63
2014-02-16Add Stringer support.Ben Johnson2-1/+12
2014-02-15Improve test coverage.Ben Johnson7-41/+128
2014-02-15Improve test coverage.Ben Johnson6-40/+124
2014-02-15Fix DB.opened flag.Ben Johnson1-0/+2
2014-02-15Add parallel usage test and race detector.Ben Johnson8-11/+145
2014-02-15Add transactional blocks.Ben Johnson3-50/+83
2014-02-15Add bucket sequence.Ben Johnson5-1/+64
2014-02-14Add examples.Ben Johnson4-13/+161
2014-02-13Add godoc badge.Ben Johnson1-1/+1
2014-02-13API Documentation.Ben Johnson19-109/+245
2014-02-12Mmap remap.Ben Johnson8-28/+171
2014-02-11Cursor iteration.Ben Johnson5-161/+182
2014-02-11Cursor iteration.Ben Johnson4-3/+156
2014-02-10Add freelist.Ben Johnson19-100/+412
2014-02-09Clean up.Ben Johnson2-25/+24
2014-02-08Rebalance after deletion.Ben Johnson5-12/+218
2014-02-07Refactor node lookup.Ben Johnson6-37/+74
2014-02-06Clean up.Ben Johnson4-15/+14
2014-02-06Fix multi-put transaction.Ben Johnson4-48/+85
2014-02-05Rename sys ☞ buckets.Ben Johnson9-135/+136
2014-02-05Fix quick tests.Ben Johnson9-79/+102
2014-02-04Add pre-alpha badge.Ben Johnson1-1/+1