aboutsummaryrefslogtreecommitdiff
path: root/example_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add nested buckets.Ben Johnson2014-04-111-251/+0
| | | | | | | This commit adds the ability to create buckets inside of other buckets. It also replaces the buckets page with a root bucket. Fixes #56.
* Rename internal local Tx variables.Ben Johnson2014-04-041-2/+2
| | | | | | This commit changes the local Tx variables from "t" to "tx". This is partly for consistency with external documentation but also because it just annoys me for some reason.
* Remove DB.Open() and only allow bolt.Open().Ben Johnson2014-03-311-18/+9
| | | | | | | Per @tv42's suggestion, this commit removes the ability to reopen an instance of DB. All open calls go through bolt.Open(). Fixes #103.
* Make DB/Tx API more consistent.Ben Johnson2014-03-241-22/+22
| | | | | | | | | | 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.
* Remove ease-of-use functions from the DB type.Ben Johnson2014-03-211-76/+118
| | | | | | | | | 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.
* Consolidate Tx and RWTx.Ben Johnson2014-03-081-14/+14
|
* Rename Transaction to Tx.Ben Johnson2014-03-081-9/+9
| | | | | 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.
* Refactor Bucket.Ben Johnson2014-02-231-7/+10
|
* Revert "Refactor Transaction/Bucket API."Ben Johnson2014-02-221-21/+18
| | | | This reverts commit 1ad2b99f281d587b767b36f886401e81d17915a9.
* 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