【发布时间】:2015-05-09 15:30:42
【问题描述】:
我正在尝试连接到名为“galaxydatabase”的 postgresql 数据库,但遇到了未处理的异常。 源代码:
#include <Wt/Dbo/Dbo>
#include <Wt/Dbo/backend/Postgres>
namespace dbo = Wt::Dbo;
void run()
{
dbo::backend::Postgres po;
po.connect("galaxydatabase");
// or
//dbo::backend::Postgres po("galaxydatabase"); // the same exception???
}
int main(int argc, char **argv)
{
run();
}
【问题讨论】:
-
您收到的确切例外情况是什么?
标签: c++ database postgresql wt