Stream is not a true node stream
See original GitHub issuevar isReadable require('isstream').isReadable;
var client = new sql.Connection(this._config);
var query = '';
return client.connect()
.then(function() {
var request = new sql.Request(client);
request.stream = true;
var reqStream = request.query(query);
assert(isReadable(reqStream), true, 'Request Stream should be a readable stream')
return reqStream;
});
As verified by https://github.com/rvagg/isstream
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:14
Top Results From Across the Web
Determining if a node stream is in objectMode - Stack Overflow
How can I determine that the myReadableStream is in objectMode. Is there a method or property that can be read? Could not find...
Read more >An Introduction to Node's New Streams
Streams were hard to implement. Well, that's not entirely true. They were hard to implement correctly. There used to be all sorts of...
Read more >Stream | Node.js v19.3.0 Documentation
Is true after writable.end() has been called. This property does not indicate whether the data has been flushed, for this use writable.writableFinished instead....
Read more >Understanding Streams in Node.js - NodeSource
Streams are one of the fundamental concepts that power Node.js applications. Check out this blog post to understand them!
Read more >Node.js Streams: Everything you need to know - freeCodeCamp
However, streams are not only about working with big data. They also give us the power of composability in our code. Just like...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

+1 @patriksimek any eta for using actual streams? pause/resume got merged into tedious in October. Appreciate it
It is work in progress in Tedious - https://github.com/tediousjs/tedious/pull/518