streamQuery method

Stream<ParsedRowBuffer> streamQuery(
  1. int connectionId,
  2. String sql, {
  3. int chunkSize = 1000,
  4. int? maxBufferBytes,
})
inherited

Runs sql in the worker using native batched streaming.

Since v4.1.0 this delegates to streamQueryBatched. chunkSize is interpreted as fetchSize (rows per yielded chunk).

Implementation

Stream<ParsedRowBuffer> streamQuery(
  int connectionId,
  String sql, {
  int chunkSize = 1000,
  int? maxBufferBytes,
}) =>
    streamQueryBatched(
      connectionId,
      sql,
      fetchSize: chunkSize,
      maxBufferBytes: maxBufferBytes,
    );