Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from benbjohnson/put
Browse files Browse the repository at this point in the history
Add RWTransaction.Put().
  • Loading branch information
benbjohnson committed Feb 1, 2014
2 parents b17d078 + 1a17a2c commit b2a78a2
Show file tree
Hide file tree
Showing 22 changed files with 735 additions and 736 deletions.
17 changes: 17 additions & 0 deletions NOTES
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


===0===
| d|g |
|1|2|3|
=======
| | |
------ | -------
| | |
===1=== ===2=== ===3===
|a|b|c| |d|e|f| |g|h|i|
|-|-|-| |-|-|-| |-|-|-|
|*|*|*| |*|*|*| |*|*|*|
|*|*|*| |*|*|*| |*|*|*|
|*|*|*| |*|*|*| |*|*|*|


2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TODO
====
X Open DB.
X Initialize transaction.
- Cursor First, Goto(key), Next
- Cursor First, Get(key), Next
- RWTransaction.insert()
- rebalance
- adjust cursors
Expand Down
20 changes: 0 additions & 20 deletions bnode.go

This file was deleted.

129 changes: 0 additions & 129 deletions branch.go

This file was deleted.

161 changes: 0 additions & 161 deletions branch_test.go

This file was deleted.

9 changes: 2 additions & 7 deletions bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ func (b *Bucket) Name() string {
return b.name
}

// Get retrieves the value for a key in the bucket.
func (b *Bucket) Get(key []byte) []byte {
return b.Cursor().Get(key)
}

// Cursor creates a new cursor for this bucket.
func (b *Bucket) Cursor() *Cursor {
// cursor creates a new cursor for this bucket.
func (b *Bucket) cursor() *Cursor {
return &Cursor{
transaction: b.transaction,
root: b.root,
Expand Down
Loading

0 comments on commit b2a78a2

Please sign in to comment.