Skip to content
Browse files
Merge pull request #45845 from nicogodet/fix-db-plugin
[DB Manager] Add geometryType() method to root Table class
  • Loading branch information
lbartoletti committed Nov 3, 2021
2 parents d3cfad0 + 40df6ec commit 6b4f8e4af6f20fa4c602b496d04af61acc6a68a7
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/db_manager/db_plugins/
@@ -776,6 +776,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 6b4f8e4

Please sign in to comment.