GDAL: OGR SQL
OGR SQL The GDALDataset supports executing commands against a datasource via the GDALDataset::ExecuteSQL() method. While in theory any sort of command ...
GDAL: OGRDataSource Class Reference
virtual void SetStyleTable (OGRStyleTable *poStyleTable) Set dataset style table. More... virtual OGRLayer * ExecuteSQL (const char *pszStatement, OGR...
PostgreSQL / PostGIS
It's also possible to request the ogr Pg driver to handle SQL commands with the OGR SQL engine, by passing "OGRSQL" string to the ExecuteSQL() ...