question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stream is not a true node stream

See original GitHub issue
var 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:14

github_iconTop GitHub Comments

5reactions
gmsewell6commented, Jan 30, 2018

+1 @patriksimek any eta for using actual streams? pause/resume got merged into tedious in October. Appreciate it

3reactions
patriksimekcommented, Apr 5, 2017

It is work in progress in Tedious - https://github.com/tediousjs/tedious/pull/518

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found