Skip to content

Commit 3f284ba

Browse files
committed
Oracle Client Path
Allow initOracleClient if oracleClientPath setting is enabled
1 parent a1d8443 commit 3f284ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/oracle.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ exports.initialize = function initializeDataSource(dataSource, callback) {
3232

3333
const s = dataSource.settings || {};
3434

35+
if(s.oracleClientPath && s.oracleClientPath.length) {
36+
oracle.initOracleClient({ libDir: s.oracleClientPath });
37+
}
38+
3539
const configProperties = {
3640
autoCommit: true,
3741
connectionClass: 'loopback-connector-oracle',

0 commit comments

Comments
 (0)