Class GeoPKGDataStoreWrapper

Object
DataStoreWrapper
GeoPKGDataStoreWrapper
All Implemented Interfaces:
DataAccess<SimpleFeatureType,SimpleFeature>, DataStore

public class GeoPKGDataStoreWrapper extends DataStoreWrapper
SQLite and thus GeoPackage cannot mix DDL and DML transactions, as DML always tries to grab a read lock on the database, thus causing failures when trying to create tables (DDL) while other connections are performing DML operations.

This wrapper thus forces all feature stores to operate in auto-commit mode, ignoring any attempt to set a transaction.

This is currently necessary as haversting does exactly that, creating new featuretypes while files are being ingested over a transaction. In the future we migth want to break the DataStore API and allow passing a Transaction to createSchema, allowing to run all operations (DDL and DML) within the same transaction.