Created
July 21, 2020 15:26
-
-
Save fernyettheplant/6756b582d33587ad2320dc51c9e8d7c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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