This commit is contained in:
Jan Prochazka
2024-07-31 13:39:48 +02:00
parent dc45b1e75f
commit f7f4a0ed3f
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,6 @@
"electron-log": "^4.4.1", "electron-log": "^4.4.1",
"electron-updater": "^4.6.1", "electron-updater": "^4.6.1",
"lodash.clonedeepwith": "^4.5.0", "lodash.clonedeepwith": "^4.5.0",
"oracledb": "^6.6.0",
"patch-package": "^6.4.7" "patch-package": "^6.4.7"
}, },
"repository": { "repository": {
@@ -122,6 +121,7 @@
}, },
"optionalDependencies": { "optionalDependencies": {
"better-sqlite3": "9.6.0", "better-sqlite3": "9.6.0",
"msnodesqlv8": "^4.2.1" "msnodesqlv8": "^4.2.1",
"oracledb": "^6.6.0"
} }
} }

View File

@@ -52,7 +52,6 @@
"ncp": "^2.0.0", "ncp": "^2.0.0",
"node-cron": "^2.0.3", "node-cron": "^2.0.3",
"on-finished": "^2.4.1", "on-finished": "^2.4.1",
"oracledb": "^6.6.0",
"pinomin": "^1.0.4", "pinomin": "^1.0.4",
"portfinder": "^1.0.28", "portfinder": "^1.0.28",
"rimraf": "^3.0.0", "rimraf": "^3.0.0",
@@ -85,6 +84,7 @@
}, },
"optionalDependencies": { "optionalDependencies": {
"better-sqlite3": "9.6.0", "better-sqlite3": "9.6.0",
"msnodesqlv8": "^4.2.1" "msnodesqlv8": "^4.2.1",
"oracledb": "^6.6.0"
} }
} }

View File

@@ -68,7 +68,7 @@ const driver = {
}) { }) {
const oracledb = getOracledb(); const oracledb = getOracledb();
if (authType == 'thick' && !oracleClientInitialized) { if (authType == 'thick' && !oracleClientInitialized) {
oracledb.initOracleClient({ libDir: clientLibraryPath }); oracledb.initOracleClient({ libDir: clientLibraryPath || process.env.ORACLE_INSTANT_CLIENT });
oracleClientInitialized = true; oracleClientInitialized = true;
} }
client = await oracledb.getConnection({ client = await oracledb.getConnection({