MCPcopy Index your code
hub / github.com/serverless/examples / performQuery

Function performQuery

aws-node-heroku-postgres/handler.js:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40};
41
42const performQuery = async () => {
43 const client = await pgPool.connect();
44 const result = await client.query('SELECT now()');
45 client.release();
46 return result;
47};
48
49app.get('/hello', async function (req, res) {
50 if (!pgPool) {

Callers 1

handler.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected