mysql++

C++ wrapper library for MySQL's C API with object-oriented interface

brewmacoslinux
Try with needOr install directly
Source

About

C++ wrapper for MySQL's C API

Commands

mysql++

Examples

Link against mysql++ library when compiling C++ code$ g++ -o myapp myapp.cpp `mysql_config --cflags --libs` -lmysqlpp
Check mysql++ version and installation details$ pkg-config --modversion mysqlpp
Include mysql++ headers in C++ source code for database operations$ echo '#include <mysql++.h>' && g++ -c mydb.cpp -I$(brew --prefix mysql++)/include