适用于 Windows 和 Linux 的 PostgreSQL C++11 库

问题描述

你能推荐我一些库来从 linux 和 windows 访问 Postgresql 数据库吗?我需要 c++11 版本,它消除了需要 C++20 的 libpqxx。

谢谢

解决方法

可能会有更多的轻量级库用于此目的,但我个人在这里使用 Qt 解决方案。

https://doc.qt.io/qt-5/sql-driver.html