streamQueryMultiBatches abstract method

  1. @override
Stream<Result<QueryResultMultiBatchItem>> streamQueryMultiBatches(
  1. String connectionId,
  2. String sql, {
  3. int fetchSize = 1000,
  4. int? chunkSize,
})
override

Streams individual native fetch batches for a multi-result query.

Unlike streamQueryMulti, this method never joins continuation batches into a full cursor-sized QueryResult. It is therefore the preferred multi-result API when peak memory must stay bounded by fetchSize.

Implementation

@override
Stream<Result<QueryResultMultiBatchItem>> streamQueryMultiBatches(
  String connectionId,
  String sql, {
  int fetchSize = 1000,
  int? chunkSize,
});