cancelStatement method

  1. @override
Future<Result<void>> cancelStatement(
  1. String connectionId,
  2. int stmtId
)
override

Requests cancellation of an in-flight prepared statement.

Experimental: native statement cancellation is not fully implemented in the Rust engine. The call may return UnsupportedFeatureError on many drivers. For reliable query interruption, prefer ConnectionOptions.queryTimeout, which maps to the driver's native SQL_ATTR_QUERY_TIMEOUT where supported.

Implementation

@override
Future<Result<void>> cancelStatement(String connectionId, int stmtId) =>
    _query.cancelStatement(connectionId, stmtId);