@pi-r/oci 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/client/index.js +3 -0
  2. package/package.json +1 -1
package/client/index.js CHANGED
@@ -31,6 +31,9 @@ function createDatabaseClient(credential) {
31
31
  credential.user || (credential.user = credential.username);
32
32
  delete credential.username;
33
33
  }
34
+ if ('configDir' in credential || 'driverName' in credential || 'errorUrl' in credential || 'libDir' in credential) {
35
+ oracledb.initOracleClient({ configDir: credential.configDir, driverName: credential.driverName, errorUrl: credential.errorUrl, libDir: credential.libDir });
36
+ }
34
37
  return oracledb.getConnection(credential);
35
38
  }
36
39
  exports.createDatabaseClient = createDatabaseClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/oci",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Oracle (OCI) cloud functions for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "publishConfig": {