soci

C++ database access library providing unified interface for multiple databases

brewmacoslinux
Try with needOr install directly
Source

About

Database access library for C++

Commands

soci

Examples

Link SOCI library with C++ application for database connectivity$ g++ -o myapp myapp.cpp -lsoci_core -lsoci_postgresql
Check SOCI installation and available backend libraries$ pkg-config --list-all | grep soci
Compile C++ code using SOCI with pkg-config$ g++ -o dbapp dbapp.cpp $(pkg-config --cflags --libs soci)