I want to stream a DB query result directly to the client as an array of objects. DB driver returns a Readable Streams2 stream in object mode, emitting Row
instances. Koa only accepts string mode streams. What is the best way to do the conversion between the two types in this case?
Asked
Active
Viewed 154 times
1

asliwinski
- 1,662
- 3
- 21
- 38