Node-postgres: Async Project Structure Doc

Created on 8 Jun 2017  路  4Comments  路  Source: brianc/node-postgres

Hi,

Thank you for the document page, I've found it very help. I am stuck on making "getClient" async/await. Anyway someone can show an example of final index.js file in the db folder from : https://node-postgres.com/guides/project-structure with the logging and route example written in async/await? in other words, update this example : https://node-postgres.com/guides/async-express with "getClient." Thanks in advance!

Most helpful comment

Hi, is there any update on this? It still doesn't have the getClient() with async/await.

All 4 comments

Thanks for your feedback! I'll update the docs tonight.

Hi, is there any update on this? It still doesn't have the getClient() with async/await.

wow, year later; also stuck on that one, promise does not resolve

bumping this request. The callback implementation starting to feel quite dated now.
Thanks in advance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dipakdas99 picture dipakdas99  路  3Comments

ClueLessEggHead picture ClueLessEggHead  路  3Comments

frmoded picture frmoded  路  3Comments

tonylukasavage picture tonylukasavage  路  4Comments

spollack picture spollack  路  4Comments