MySQL Connector/C++
I'am doing a program that deals with connecting to mysql server and accessing or writing data. I am wondering whether to do the connector part using connector for c or c++. I have heard that c connector is more stable than the c++ connector. Plea开发者_如何学JAVAse do help me choose.. MySQL Connector/C or MySQL Connector/C++?
Go with the language you're the most comfortable with, and use the connector for that language.
I use mysqlpp
(a C++ API for MySQL), and it works fine. As far as I can tell there is little if anything that cannot be done effectively and efficiently using this API that can be done better in pure C. I say use C++, if you're comfortable enough with that language. Specifically regarding stability, it seems fine.
There are some fairly obscure deficiencies, such as a lack of support for true asynchronous operation, but the C interface doesn't really solve this problem either (PostgreSQL does).
精彩评论