Skip to content

Instantly share code, notes, and snippets.

@fernyettheplant
Created July 21, 2020 15:26
Show Gist options
  • Save fernyettheplant/6756b582d33587ad2320dc51c9e8d7c3 to your computer and use it in GitHub Desktop.
Save fernyettheplant/6756b582d33587ad2320dc51c9e8d7c3 to your computer and use it in GitHub Desktop.
module.exports.myhandler = function (event, context, cb) {
conn.query("SELECT * FROM items", (error, results) => {
if (error) {
cb(error, null)
} else {
cb(null, results)
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment