Skip to content
Browse files
Add geometryType() method to root Table class
  • Loading branch information
nicogodet authored and nyalldawson committed Nov 6, 2021
1 parent 24b0a7d commit 19a08afdca6c7f1462baca0b240ee84749ae4441
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/db_manager/db_plugins/
@@ -777,6 +777,9 @@ def toMapLayer(self, geometryType=None, crs=None):
return QgsRasterLayer(uri,, provider)
return QgsVectorLayer(uri,, provider)

def geometryType(self):

def getValidQgisUniqueFields(self, onlyOne=False):
""" list of fields valid to load the table as layer in QGIS canvas.
QGIS automatically search for a valid unique field, so it's

0 comments on commit 19a08af

Please sign in to comment.