getDbmsInfoForConnection method
Live DBMS introspection (v2.1). Returns DbmsInfo for the open
connection identified by connectionId, or null if the native
library does not expose the new entry point or the call fails.
Implementation
DbmsInfo? getDbmsInfoForConnection(int connectionId) {
final payload = _native.getConnectionDbmsInfoJson(connectionId);
if (payload == null || payload.isEmpty) {
return null;
}
final decoded = jsonDecode(payload);
final map = DriverCapabilitiesMapper.asJsonMap(decoded);
if (map == null) {
return null;
}
return DriverCapabilitiesMapper.dbmsInfoFromJson(map);
}