C++ bindings for MySQL

前端 未结 7 575
青春惊慌失措
青春惊慌失措 2021-01-26 01:36

I\'m running OSX(10.4.11) & I\'m trying to get a decent C(preferably C++) binding for MySQL figured out. I have some data in an offsite database I want to analyze.

I

7条回答
  •  耶瑟儿~
    2021-01-26 02:14

    Personally I've used mymysql in the past (still do if I'm working in C++) it's a lightweight wrapper around the C api and ties memory management to object lifetimes.

    It can be found here: http://www.redi.uklinux.net/mymysql/

    Despite the warnings on the site, it's still not a bad library. It was actually written by a former colleague and despite him not really maintining it anymore it's still in fairly good shape.

提交回复
热议问题