oracle thick mode available for electron app

This commit is contained in:
Jan Prochazka
2024-07-31 12:06:02 +02:00
parent 5e68ce3218
commit dc45b1e75f
7 changed files with 53 additions and 41 deletions

View File

@@ -98,11 +98,10 @@ const oracleDriver = {
databaseUrlPlaceholder: 'e.g. localhost:1521/orcl',
showConnectionField: (field, values) => {
showConnectionField: (field, values, { config }) => {
if (field == 'useDatabaseUrl') return true;
if (field == 'authType') return true;
if (field == 'clientLibraryPath') return values.authType == 'thick';
if (field == 'clientLibraryPath') return config?.isElectron && values.authType == 'thick';
if (values.useDatabaseUrl) {
return ['databaseUrl', 'user', 'password'].includes(field);