detectDriver method

Future<String?> detectDriver(
  1. String connectionString
)

Detects the database driver from a connection string.

Returns the driver name (e.g. "sqlserver", "oracle", "postgres") if detected, or null if unknown.

Implementation

Future<String?> detectDriver(String connectionString) async {
  final r = await _sendRequest<DetectDriverResponse>(
    DetectDriverRequest(_nextRequestId(), connectionString),
  );
  return r.driverName;
}