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 dynamic decoded = jsonDecode(payload);
if (decoded is! Map<String, Object?>) {
return null;
}
return DbmsInfo.fromJson(decoded);
}