|
37 | 37 | - [Getting the connection ID](#getting-the-connection-id)
|
38 | 38 | - [Executing queries in parallel](#executing-queries-in-parallel)
|
39 | 39 | - [Streaming query rows](#streaming-query-rows)
|
40 |
| -- [Piping results with Streams2](#piping-results-with-streams2) |
| 40 | +- [Piping results with Streams](#piping-results-with-streams) |
41 | 41 | - [Multiple statement queries](#multiple-statement-queries)
|
42 | 42 | - [Stored procedures](#stored-procedures)
|
43 | 43 | - [Joins with overlapping column names](#joins-with-overlapping-column-names)
|
@@ -909,14 +909,13 @@ stream individual row columns, they will always be buffered up entirely. If you
|
909 | 909 | have a good use case for streaming large fields to and from MySQL, I'd love to
|
910 | 910 | get your thoughts and contributions on this.
|
911 | 911 |
|
912 |
| -### Piping results with Streams2 |
| 912 | +### Piping results with Streams |
913 | 913 |
|
914 | 914 | The query object provides a convenience method `.stream([options])` that wraps
|
915 |
| -query events into a [Readable](http://nodejs.org/api/stream.html#stream_class_stream_readable) |
916 |
| -[Streams2](http://blog.nodejs.org/2012/12/20/streams2/) object. This |
917 |
| -stream can easily be piped downstream and provides automatic pause/resume, |
918 |
| -based on downstream congestion and the optional `highWaterMark`. The |
919 |
| -`objectMode` parameter of the stream is set to `true` and cannot be changed |
| 915 | +query events into a [Readable Stream](http://nodejs.org/api/stream.html#stream_class_stream_readable) |
| 916 | +object. This stream can easily be piped downstream and provides automatic |
| 917 | +pause/resume, based on downstream congestion and the optional `highWaterMark`. |
| 918 | +The `objectMode` parameter of the stream is set to `true` and cannot be changed |
920 | 919 | (if you need a byte stream, you will need to use a transform stream, like
|
921 | 920 | [objstream](https://www.npmjs.com/package/objstream) for example).
|
922 | 921 |
|
|
0 commit comments