Libgda is a (relatively small) database access library. It provides a wrapper like ODBC but with more features for accessing several database engines, a general data model for use with CSV or XML files, a metadata extractor that retrieves information about database objects in a common way, and a SQL console application (like mysql, psql or sqlite3 consoles).