streamCancel method
Requests cancellation of a batched stream.
Only effective for streams created with streamStartBatched. No-op for buffer-mode streams. The worker exits between batches. Returns true on success, false if stream_id is invalid.
Implementation
bool streamCancel(int streamId) {
final result = _bindings.odbc_stream_cancel(streamId);
return result == 0;
}