upload error to gist

This commit is contained in:
Jan Prochazka
2024-05-24 13:12:07 +02:00
parent e04da15f72
commit 5ab0907bd8
5 changed files with 168 additions and 1 deletions

View File

@@ -240,4 +240,20 @@ module.exports = {
if (opened.connection.isReadOnly) return false;
return this.loadDataCore('summaryCommand', { conid, command, row });
},
getOpenedConnectionReport() {
return this.opened.map(con => ({
status: con.status,
versionText: con.version?.versionText,
databaseCount: con.databases.length,
connection: _.pick(con.connection, [
'engine',
'useSshTunnel',
'authType',
'trustServerCertificate',
'useSsl',
'sshMode',
]),
}));
},
};