我成功地将所有其他文件从JavaScript转换为TypeScript,但我仍然不知道如何在TypeScript中初始化pg-promise连接!https://github.com/vitaly-t/pg-promise/tree/master/typescript // Initialize the PostGres database connecitonfor use throughout import {IMain
我想在pg-promise查询中动态选择表。以下代码不起作用,如有任何帮助,敬请指教!我得到的错误消息是: error: error: syntax error at or near 我不确定是否应该使用帮助器,如以下链接所述:https://vitaly-t.github.io/pg-promise