aboutsummaryrefslogtreecommitdiff
path: root/bucket_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add performance counters.Ben Johnson2014-04-021-3/+0
| | | | | | | | | | | | This commit adds performance counters for each transaction which are rolled up to the database level on each commit/rollback. Counters are meant to be a very fast way to track what is going on in the database. A few timers are also added in areas where the time.Now() overhead is not noticible. The DB.Stat() function is now deprecated since the `bolt` CLI now performs similar functions. Fixes #108.
* Add DB.Check().Ben Johnson2014-03-291-0/+1
|
* Make DB/Tx API more consistent.Ben Johnson2014-03-241-29/+29
| | | | | | | | | | 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.
* Error refactoring.Ben Johnson2014-03-241-3/+4
| | | | Fixed up a few error issues and refactored out the Error type.
* Remove ease-of-use functions from the DB type.Ben Johnson2014-03-211-136/+179
| | | | | | | | | 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.
* Skip long-running tests with go test -shortTommi Virtanen2014-03-131-0/+16
|
* Consolidate Tx and RWTx.Ben Johnson2014-03-081-34/+34
|
* Rename Transaction to Tx.Ben Johnson2014-03-081-11/+11
| | | | | 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.
* Allow reads of unflushed nodes.Ben Johnson2014-03-011-0/+14
| | | | | This commit allows cursors to read updated values from within the RWTransaction.
* Refactor Bucket.Ben Johnson2014-02-231-4/+319
|
* Revert "Refactor Transaction/Bucket API."Ben Johnson2014-02-221-8/+5
| | | | This reverts commit 1ad2b99f281d587b767b36f886401e81d17915a9.
* Refactor Transaction/Bucket API.Ben Johnson2014-02-211-5/+8
|
* Bucket stats.Ben Johnson2014-02-211-0/+62