WorkerCrashRecovery class

Handles worker isolate crash and restart for async ODBC connections.

When the worker isolate crashes (e.g. uncaught exception, kill), call handleWorkerCrash to log, dispose the broken connection, and optionally re-initialize a new worker. Callers must re-establish connections after restart since worker state is lost.

Constructors

WorkerCrashRecovery()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

handleWorkerCrash(AsyncNativeOdbcConnection async, Object error, [StackTrace? stackTrace]) Future<void>
Logs the crash, disposes the async connection, and re-initializes a fresh worker. All previous connection IDs are invalid after this.