要使用哪个 C++ 数据库或 ORM API?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6433598/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 20:06:39  来源:igfitidea点击:

Which C++ database or ORM API to use?

c++databaseorm

提问by mbpro

I'd like to write some modules for accessing or anyhow work with databases. Approach can be through standard CRUD or ORM principle. Can anybody suggest some good API's for both out of his own experience?

我想编写一些模块来访问或无论如何使用数据库。方法可以通过标准的 CRUD 或 ORM 原则。任何人都可以根据自己的经验为两者推荐一些好的 API 吗?

Thanks.

谢谢。

采纳答案by mattn

I have some experience with ODB:

我对ODB有一些经验:

http://www.codesynthesis.com/products/odb/

http://www.codesynthesis.com/products/odb/

I think this is good. :)

我认为这很好。:)

回答by Sergei Nikulov

You can check SOCI. It is great C++ library.

您可以检查SOCI。这是一个很棒的 C++ 库。