我是一名刚毕业的学生,最近加入了我的工作。我被要求在 C++ 应用程序和与之交互的数据库之间创建一个数据访问层。该程序目前使用简单的查询,如
- 从 'some table' 中选择 'column' where 'something = something AND something = something'
- 从 'some table' 中删除 'column' 其中 'something' = something'
- 更新“东西”
任何地方都没有连接,这是应用程序中仅有的三个查询。我还必须将其转换为 PostgreSQL。