libodbc++ is a C++ class library for accessing SQL databases. It is designed with standards in mind, so it provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC on Windows and Unix/Linux. It is distributed under the LGPL.
Great lib, but does not compile with recent qt versions (qt5.xx). And there is no public git repo! to push things to.