connecting to cloud database

This commit is contained in:
SPRINX0\prochazka
2025-05-22 09:46:07 +02:00
parent 590a4ae476
commit 07073eebe9
8 changed files with 103 additions and 12 deletions

View File

@@ -148,6 +148,9 @@ module.exports = {
const existing = this.opened.find(x => x.conid == conid && x.database == database);
if (existing) return existing;
const connection = await connections.getCore({ conid });
if (!connection) {
throw new Error(`databaseConnections: Connection with conid="${conid}" not found`);
}
if (connection.passwordMode == 'askPassword' || connection.passwordMode == 'askUser') {
throw new MissingCredentialsError({ conid, passwordMode: connection.passwordMode });
}