I’m developing a C++ application which needs to connect to MySQL server for some information but my app doesn’t run queries frequently. So As C++ connector uses C API behind the scenes… I got this doubt.I’m in dilemma whether to go with C API or C++ API??
Share
From my experience it doesn’t make that much of a difference. The C++ API just wraps the C API – so you’re left with an additional function call using the C++ API. Most of the time the compiler can optimize that out and a function call does not have a real perceivable overhead.