当前位置: 代码迷 >> 综合 >> mysql C++ wrapper
  详细解决方案

mysql C++ wrapper

热度:59   发布时间:2024-01-11 08:38:02.0

前言:

I don't really understand why they made a C++ wrapper for the C API (MySQL++ = http://www.tangentsoft.net/mysql++/ ) because shouldn't the C API work in C++?

The mysql C api will work in C++ - I suppose someone just wanted to do a c++ wrapper.


库推荐:

1. SOCI  http://soci.sourceforge.net/index.html

SOCI is a database access library for C++ that makes the illusion of embedding SQL queries in the regular C++ code, staying entirely within the Standard C++.

The idea is to provide C++ programmers a way to access SQL databases in the most natural and intuitive way. If you find existing libraries too difficult for your needs or just distracting, SOCI can be a good alternative.

2.  

  相关解决方案