creationix / nstore

nStore is a simple, in-process key/value database for node.js
MIT License
392 stars 31 forks source link

clear() doesn't do anything #2

Closed virtuo closed 14 years ago

virtuo commented 14 years ago

I might be misleading on the semantic of clear, but it seems it doesn't do anything (at least when this is the first operation applied on a newly loaded store). Shouldn't it empty the store?

creationix commented 14 years ago

It should yes, I'll look into this.

creationix commented 14 years ago

I fixed a bug in remove recently. Also I added a unit test for clear. it seems to be working now.

creationix commented 14 years ago

Closing this issue. If it's still broken for you, please re-open.