multi-db-orm 2.1.1 → 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
- wallet_password }) {
31
+ wallet_password,
32
+ lib_dir }) {
32
33
  super()
33
34
  const oracledb = require('oracledb')
34
35
  const oracleInstantClient = require("oracle-instantclient");
35
36
  if (!wallet_password)
36
37
  wallet_password = password
37
- process.env.LD_LIBRARY_PATH = oracleInstantClient.path
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-db-orm",
3
- "version": "2.1.1",
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": {