Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

db.createWriteStream seems to be missing from the API #70

Closed
mcqj opened this issue Aug 26, 2014 · 2 comments
Closed

db.createWriteStream seems to be missing from the API #70

mcqj opened this issue Aug 26, 2014 · 2 comments

Comments

@mcqj
Copy link

mcqj commented Aug 26, 2014

var ws = db.createWriteStream({valueEncoding: "json"});

results in

TypeError: Object # has no method 'createWriteStream'

It seems that this 'level' functon is not replicated by 'sublevel' any more. Is the intended usage pattern changed or is this an ommission?

@dominictarr
Copy link
Owner

yes, this is gonna be removed from levelup shortly, Level/levelup#207

use a module to do this, for example level-write-stream

@mcqj
Copy link
Author

mcqj commented Aug 27, 2014

Got it - I suppose what I found a little confusing is that the README says: "The user api is the same as before"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants