multi-db-orm 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,17 +28,18 @@ class OracleDB extends MultiDbORM {
28
28
  net_service_name,
29
29
  wallet_dir,
30
30
  connection_pool_name,
31
- walletPassword }) {
31
+ wallet_password,
32
+ lib_dir }) {
32
33
  super()
33
34
  const oracledb = require('oracledb')
34
35
  const oracleInstantClient = require("oracle-instantclient");
35
- if (!walletPassword)
36
- walletPassword = password
37
- process.env.LD_LIBRARY_PATH = oracleInstantClient.path
36
+ if (!wallet_password)
37
+ wallet_password = password
38
+ process.env.LD_LIBRARY_PATH = lib_dir || oracleInstantClient.path
38
39
  process.env.TS_ADMIN = wallet_dir
39
40
  oracledb.initOracleClient({
40
41
  configDir: wallet_dir,
41
- libDir: oracleInstantClient.path
42
+ libDir: lib_dir || oracleInstantClient.path
42
43
  })
43
44
  oracledb.autoCommit = true;
44
45
  oracledb.outFormat = oracledb.OUT_FORMAT_OBJECT
@@ -62,7 +63,7 @@ class OracleDB extends MultiDbORM {
62
63
  password: password,
63
64
  configDir: wallet_dir,
64
65
  walletLocation: wallet_dir,
65
- walletPassword: password,
66
+ walletPassword: wallet_password,
66
67
  connectString: net_service_name,
67
68
  poolAlias: this.connection_pool_name
68
69
  }).then(async (pool) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-db-orm",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "CRUD , Backup , Restore and Migration library for multiple databases",
5
5
  "main": "index.js",
6
6
  "dependencies": {