streamQueryMulti method

  1. @override
Stream<Result<QueryResultMultiItem>> streamQueryMulti(
  1. String connectionId,
  2. String sql, {
  3. int fetchSize = 1000,
  4. int chunkSize = 64 * 1024,
})
override

Streams a multi-result batch one item at a time. New in v3.3.0 (M8).

fetchSize is rows per native batch (default 1000). chunkSize is the FFI transfer buffer in bytes (default 64 KiB); also seeds each streamFetch allocation.

Implementation

@override
Stream<Result<QueryResultMultiItem>> streamQueryMulti(
  String connectionId,
  String sql, {
  int fetchSize = 1000,
  int chunkSize = 64 * 1024,
}) =>
    _query.streamQueryMulti(
      connectionId,
      sql,
      fetchSize: fetchSize,
      chunkSize: chunkSize,
    );