[英]How to connect PostgreSQL with hapi.js
Does anyone managed to setup with
PostgreSQL
withHapi.js
framework?有没有人设法使用
Hapi.js
框架使用PostgreSQL
进行设置? I have been looking for answers to this but no avail .我一直在寻找这个问题的答案,但无济于事。
I have the server all setup and ready to connect with PostgreSQL to the application.我已将服务器全部设置好并准备好将 PostgreSQL 连接到应用程序。 What is the most appropriate approach to connect the database with
pg-promise
?使用
pg-promise
连接数据库的最合适方法是什么?
Also, what is the most efficient and shorter way of writing this code for this approach?此外,为这种方法编写此代码的最有效和最简短的方法是什么?
要将pg-promise与 Hapi.js 一起使用,请参阅hapi-pg-promise 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.