brianc / node-postgres

PostgreSQL client for node.js.
https://node-postgres.com
MIT License
12.26k stars 1.22k forks source link

Async Project Structure Doc #1311

Open wrod7 opened 7 years ago

wrod7 commented 7 years ago

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!

brianc commented 7 years ago

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

ghost commented 6 years ago

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

benbonnet commented 6 years ago

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

bemorr commented 4 years ago

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