I have a QgsVectorLayer
whose data source is a vector GeoPackage file. How can I find the name of its geometry column?
It is possible to use ogr
to get it, but I am looking for a native PyQGIS approach without additional imports or separately loading the dataset again.