[QGIS-Developer] FeatureSink, Processing and Geopackage : define layer primary key

René-Luc Dhont rldhont at gmail.com
Mon May 20 05:02:49 PDT 2019


Hi devs,

I'd like to save data in a Geopackage by defining the layername, the 
geometry column and the primary key field with a processing parameter 
feature sink.

I have found in the processing tests, that a feature sink value can be : 
ogr:dbname='/me/a.gpkg' table="d" (geom) sql=
Is it possible to define the primary key field ?

Regards,
René-Luc


More information about the QGIS-Developer mailing list