[英]MySQL Connector/C++
I'am doing a program that deals with connecting to mysql server and accessing or writing data. 我正在做一个程序,用于连接到mysql服务器以及访问或写入数据。 I am wondering whether to do the connector part using connector for c or c++.
我想知道是否使用用于c或c ++的连接器来做连接器部分。 I have heard that c connector is more stable than the c++ connector.
我听说c连接器比c ++连接器更稳定。 Please do help me choose.. MySQL Connector/C or MySQL Connector/C++?
请帮我选择。MySQL连接器/ C还是MySQL连接器/ C ++?
选择最适合的语言,然后使用该语言的连接器。
I use mysqlpp
(a C++ API for MySQL), and it works fine. 我使用
mysqlpp
(MySQL的C ++ API),并且工作正常。 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. 据我所知,几乎没有什么事情可以使用此API进行有效和高效的处理,而在纯C语言中可以做得更好。我说如果您对C ++语言足够满意的话,请使用C ++。 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). 有一些相当模糊的缺陷,例如缺乏对真正异步操作的支持,但是C接口也不能真正解决此问题(PostgreSQL确实可以解决)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.