Skip to content

Instantly share code, notes, and snippets.

View DonSchenck's full-sized avatar

Don Schenck DonSchenck

View GitHub Profile
@DonSchenck
DonSchenck / index.js
Created August 31, 2018 18:07
first attempt reading mysql inside openwhisk using node.js (note: mysql is running in openshift; so is openwhisk)
function helloworld(params) {
return new Promise(function (resolve, reject ) {
// Default values set here
let name = params.name || 'stranger';
getGreeting(name, value => {
resolve({message: value});
})
})
};