-
-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
Yeah, we have an iterator test in abstract-leveldown these days that fails here since memdown don't have support for snapshots. Take a look at Level/abstract-leveldown#38 for more info. |
Hm... interesting that there are some more tests that fails. Test that I have a feeling that I've written... |
yes there are some issues with buffers it would look like, I put in a quick snapshot fix and there are 6 buffer related tests failing. I would guess that #20 is related to this. |
edd2467
to
83c0660
Compare
@kesla I grabed the iterator code from your medeadown plugin and got this working, though that might be something thats better to go into levelup then in each of the adapters |
and by go into levelup I meant abstract leveldown |
@calvinmetcalf 👍 sounds like a good suggestion! |
that being said this is strickly speaking a breaking change as we will now be coercing to buffers where we previously returned strings, @rvagg your opinion? |
@calvinmetcalf I think your snapshot changes are going to conflict with my And not to say snapshots aren't valuable, but your fix is just copying the entire database into memory every time we iterate. Let's please not fix tests just for the sake of fixing them. I would much rather just say "memdown does not support snapshots" (ala the new Think about our own use case: people are using memdown in PouchDB for their unit tests, or to quickly spin up a PouchDB Server and play around with it without writing to disk. Do we really want to copy the entire database every time they call |
closing as this is a bit more complicated |
No description provided.