Commit Graph

122 Commits (9abced434f459c20fd6629efa2be0b91e56de179)

Author SHA1 Message Date
Ben Johnson 9abced434f Add bucket reclamation.
After RWTransaction.DeleteBucket() is called, all pages related to the
bucket are moved to the freelist for that transaction.
2014-02-27 11:55:44 -07:00
Ben Johnson 0209ad2ed4 Merge pull request #53 from benbjohnson/open-api
Add bolt.Open()
2014-02-26 16:37:22 -07:00
Ben Johnson a47c50295a Add 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.
2014-02-26 16:32:40 -07:00
Ben Johnson 41fb285e37 Remove 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.
2014-02-25 08:31:04 -07:00
Ben Johnson 488785df09 Merge pull request #51 from benbjohnson/bucket-refactor
Refactor Bucket
2014-02-23 11:10:48 -07:00
Ben Johnson a544249dd8 Refactor Bucket. 2014-02-23 08:32:53 -07:00
Ben Johnson 3b2fd8f2d3 Revert "Refactor Transaction/Bucket API."
This reverts commit 1ad2b99f28.
2014-02-22 22:54:54 -07:00
Ben Johnson 7f2fe0e1ed Merge pull request #50 from benbjohnson/api
Refactor Transaction/Bucket API
2014-02-21 23:09:24 -07:00
Ben Johnson 1ad2b99f28 Refactor Transaction/Bucket API. 2014-02-21 22:57:50 -07:00
Ben Johnson 8f2f261931 Merge pull request #49 from benbjohnson/stat
Database Stats
2014-02-21 09:53:07 -07:00
Ben Johnson 9827df70e0 Add DB.Stat(). 2014-02-21 09:49:15 -07:00
Ben Johnson 62912a4c2e Merge pull request #48 from benbjohnson/bucket-stat
Bucket stats
2014-02-21 09:23:19 -07:00
Ben Johnson 1028d571d8 Bucket stats. 2014-02-21 09:20:45 -07:00
Ben Johnson ce3fa8a396 Merge pull request #47 from benbjohnson/bidirectional-cursor
Bidirectional cursors
2014-02-20 13:57:26 -07:00
Ben Johnson 15e0eae829 Bidirectional cursors. 2014-02-20 13:53:40 -07:00
Ben Johnson b9ec84552b Merge pull request #45 from benbjohnson/seek
Cursor.Get is now Cursor.Seek, and returns the first possible key.
2014-02-20 13:24:55 -07:00
Tommi Virtanen 8438c6ebc3 Cursor.Get is now Cursor.Seek, and returns the first possible key.
This makes range and prefix queries possible.

Closes: #44
2014-02-20 11:33:28 -08:00
Ben Johnson 8864050f87 Merge pull request #43 from benbjohnson/cursor-godoc-fix
Fix Cursor godoc for First(), Next(), and Get().
2014-02-20 11:05:52 -07:00
Ben Johnson 2d1f21a40d Fix Cursor godoc for First(), Next(), and Get(). 2014-02-20 11:04:46 -07:00
Ben Johnson 87226ac3ec Update project status. 2014-02-20 10:30:01 -07:00
Ben Johnson 44579ac174 Merge pull request #40 from benbjohnson/sequence-overflow
Check for sequence overflow.
2014-02-20 09:26:17 -07:00
Ben Johnson a857b45bac Check for sequence overflow. 2014-02-20 09:24:02 -07:00
Ben Johnson 0752480eb4 Merge branch 'master' of https://github.com/boltdb/bolt 2014-02-20 09:12:11 -07:00
Ben Johnson 00bdc4757f Add 'make cloc'. 2014-02-20 09:11:52 -07:00
Ben Johnson c1f33cb04b Change project status to 'Alpha'. 2014-02-18 08:02:25 -07:00
Ben Johnson 459b8eb4ab Read-only transactional block. 2014-02-16 15:43:35 -07:00
Ben Johnson f8fd84b2be Merge pull request #36 from benbjohnson/for-each
ForEach()
2014-02-16 14:00:32 -07:00
Ben Johnson b22480fd32 Add Transaction.ForEach(). 2014-02-16 13:59:07 -07:00
Ben Johnson 63e8e474d7 Add CreateBucketIfNotExists(). 2014-02-16 12:36:37 -07:00
Ben Johnson 092b63f25e Merge branch 'master' of https://github.com/boltdb/bolt
Conflicts:
	db_test.go
	rwtransaction_test.go
2014-02-16 12:22:15 -07:00
Ben Johnson 149afc8c9b Rename errors. 2014-02-16 12:18:44 -07:00
Ben Johnson 6a7be8879b Add Stringer support. 2014-02-16 12:11:10 -07:00
Ben Johnson d1952237ed Improve test coverage. 2014-02-15 23:45:17 -07:00
Ben Johnson 0bf796c9de Improve test coverage. 2014-02-15 23:38:03 -07:00
Ben Johnson 72b799480f Fix DB.opened flag. 2014-02-15 22:34:21 -07:00
Ben Johnson 3f0daf11ca Merge pull request #34 from benbjohnson/multithreading
Race Detection
2014-02-15 22:09:35 -07:00
Ben Johnson 7fb06feea4 Add parallel usage test and race detector. 2014-02-15 21:50:34 -07:00
Ben Johnson 2b5e440316 Merge pull request #32 from benbjohnson/blocks
Transactional Blocks
2014-02-15 15:01:02 -07:00
Ben Johnson 56b825fb56 Add transactional blocks. 2014-02-15 14:54:45 -07:00
Ben Johnson a92b9c4cc9 Merge pull request #31 from benbjohnson/sequence
Sequence
2014-02-15 10:26:53 -07:00
Ben Johnson e68bc0b453 Add bucket sequence. 2014-02-15 10:23:00 -07:00
Ben Johnson af5b9182f1 Merge pull request #30 from benbjohnson/examples
Examples
2014-02-14 08:35:31 -07:00
Ben Johnson 0ebef9c0bb Add examples. 2014-02-14 08:34:04 -07:00
Ben Johnson d361149fa8 Add godoc badge. 2014-02-13 11:01:38 -07:00
Ben Johnson 34005ecd76 Merge pull request #29 from benbjohnson/cleanup
API Documentation
2014-02-13 10:59:47 -07:00
Ben Johnson 8ad59edd02 API Documentation. 2014-02-13 10:58:27 -07:00
Ben Johnson f3c998c062 Merge pull request #24 from benbjohnson/remap
Remapping
2014-02-13 07:48:45 -07:00
Ben Johnson 7bb878ff69 Mmap remap. 2014-02-12 11:49:57 -07:00
Ben Johnson 7824a66308 Merge branch 'master' of https://github.com/boltdb/bolt
Conflicts:
	transaction_test.go
2014-02-11 10:03:07 -07:00
Ben Johnson e1e683b97e Merge pull request #21 from benbjohnson/cursor
Cursor iteration.
2014-02-11 09:56:36 -07:00