aboutsummaryrefslogtreecommitdiff
path: root/example_test.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* Remove DB.Open() and only allow bolt.Open().•••Per @tv42's suggestion, this commit removes the ability to reopen an instance of DB. All open calls go through bolt.Open(). Fixes #103. Ben Johnson2014-03-311-18/+9
* Make DB/Tx API more consistent.•••I consolidated the DB.Tx() and DB.RWTx() calls into a single DB.Begin(writable bool) call. This is more consistent with the database/sql library. I also changed the DB.Do() and DB.With() call to DB.Update() and DB.View(), respectively. This is more intuitive and more inline with other database verbiage. Ben Johnson2014-03-241-22/+22
* Remove ease-of-use functions from the DB type.•••Functions such as DB.Put(), DB.Get(), and DB.Delete() were originally added to be easy to use, however, after implementing Bolt in multiple projects I have found these ease-of-use functions useless. Nearly every use case requires multiple calls in a single transaction. Using the DB ease of use functions turned out to be an antipattern. Ben Johnson2014-03-211-75/+117
* Consolidate Tx and RWTx.Ben Johnson2014-03-081-14/+14
* Rename 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 Johnson2014-03-081-9/+9
* Refactor Bucket.Ben Johnson2014-02-231-7/+10
* Revert "Refactor Transaction/Bucket API."•••This reverts commit 1ad2b99f281d587b767b36f886401e81d17915a9. Ben Johnson2014-02-221-21/+18
* Refactor Transaction/Bucket API.Ben Johnson2014-02-211-18/+21
* Read-only transactional block.Ben Johnson2014-02-161-0/+22
* Add Transaction.ForEach().Ben Johnson2014-02-161-0/+24
* Add transactional blocks.Ben Johnson2014-02-151-0/+27
* Add examples.Ben Johnson2014-02-141-0/+142