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

Add RWTransaction.Put(). #5

Merged
merged 1 commit into from
Feb 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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