C++ bindings for MySQL

前端 未结 7 441
青春惊慌失措
青春惊慌失措 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 01:54

    The SQLApi++ has been ported to OS/X by this guy, as part of a REALBasic plugin. He may be open to licensing it.

    I don't know why it hasn't been licensed back to them. Maybe they are not interested in supporting Mac clients.

    0 讨论(0)
  • 2021-01-26 01:56

    How is MySQL++ being funky for you?

    0 讨论(0)
  • 2021-01-26 02:03

    I've never had any problems using the MySQL C library.

    0 讨论(0)
  • 2021-01-26 02:12

    You might want to look at SOCI. Although it builds upon the MySQL C API, it presents a much nicer C++-friendly interface than using the C bindings.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-26 02:17

    There is mysql++. I've used it with one of our c++ projects.

    0 讨论(0)
提交回复
热议问题