executeQueryMulti method

Future<Uint8List?> executeQueryMulti(
  1. int connectionId,
  2. String sql, {
  3. int? maxBufferBytes,
})

Executes sql on connectionId for multi-result sets in the worker. When maxBufferBytes is set, caps the result buffer size. Returns the binary result, or null on error.

Implementation

Future<Uint8List?> executeQueryMulti(int connectionId, String sql,
    {int? maxBufferBytes,}) async {
  final r = await _sendRequest<QueryResponse>(
    ExecuteQueryMultiRequest(
      _nextRequestId(),
      connectionId,
      sql,
      maxResultBufferBytes: maxBufferBytes,
    ),
  );
  if (r.error != null) return null;
  return r.data;
}