streamMultiStartBatched method

int? streamMultiStartBatched(
  1. int connectionId,
  2. String sql, {
  3. int fetchSize = 1000,
  4. int chunkSize = 64 * 1024,
  5. int resultEncodingWire = 0,
})
inherited

Starts a streaming multi-result batch in batched mode and returns the new stream id (or null on failure / unsupported native lib). Use streamFetch / streamCancel / streamClose to drive it. When resultEncodingWire is non-zero and the native library exports odbc_stream_multi_start_batched_options, result-set frames use columnar v2 wire layout.

Implementation

int? streamMultiStartBatched(
  int connectionId,
  String sql, {
  int fetchSize = 1000,
  int chunkSize = 64 * 1024,
  int resultEncodingWire = 0,
}) =>
    _native.streamMultiStartBatched(
      connectionId,
      sql,
      fetchSize: fetchSize,
      chunkSize: chunkSize,
      resultEncodingWire: resultEncodingWire,
    );