The optional argument chunkSize defines how many rows to fetch from the database
at a time. It only affects some dialects like PostgreSQL that support it.
if (person.last_name === 'Something') { // Breaking or returning before the stream has ended will release // the database connection and invalidate the stream. break } }
Executes the query and streams the rows.
The optional argument
chunkSize
defines how many rows to fetch from the database at a time. It only affects some dialects like PostgreSQL that support it.Examples