volos-mysql
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "volos-mysql", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Volos MySQL Database Connector", | ||
@@ -5,0 +5,0 @@ "main": "mysqlConnector.js", |
@@ -82,20 +82,19 @@ # Volos MySQL connector | ||
var profile = { | ||
user: 'volos', | ||
password: 'volos', | ||
host: "nsa.rds.amazon.com", | ||
port: "5432" | ||
user: 'volos', | ||
password: 'volos', | ||
host: "nsa.rds.amazon.com", | ||
port: "5432" | ||
}; | ||
var mysqlConnectorObject = new mysqlConnector.MySqlConnector({"profile": profile, "restMap": restMap}); | ||
var mysqlConnectorObject = new mysqlConnector.MySqlConnector({"profile": profile, "restMap": restMap}); | ||
var svr = http.createServer(function (req, resp) { | ||
mysqlConnectorObject.dispatchRequest(req, resp); | ||
}); | ||
var svr = http.createServer(function (req, resp) { | ||
mysqlConnectorObject.dispatchRequest(req, resp); | ||
}); | ||
svr.listen(9089, function () { | ||
mysqlConnectorObject.initializePaths(restMap); | ||
console.log(mysqlConnectorObject.applicationName + ' node server is listening'); | ||
}); | ||
svr.listen(9089, function () { | ||
mysqlConnectorObject.initializePaths(restMap); | ||
console.log(mysqlConnectorObject.applicationName + ' node server is listening'); | ||
}); | ||
``` | ||
@@ -171,3 +170,3 @@ | ||
>**Note:**These are the same keys that are required in the plaintext version of the profile. If this command completes successfully you will find two new files: `store.js` and `keys.js`. Place them in the root directory of the ``volos-mysql`` module. | ||
> **Note:** These are the same keys that are required in the plaintext version of the profile. If this command completes successfully you will find two new files: `store.js` and `keys.js`. Place them in the root directory of the ``volos-mysql`` module. | ||
@@ -174,0 +173,0 @@ For more detailed usage of the `avault` module refer to the [Apigee Vault page on GitHub](https://github.com/apigee-127/avault). |
@@ -8,3 +8,3 @@ var http = require('http'); | ||
vault.get('jeff', function(profileString) { | ||
vault.get('mysql', function(profileString) { | ||
if (!profileString) { | ||
@@ -11,0 +11,0 @@ console.log('Error: required vault not found.'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20305
9
175
309