コード例 #1
0
ファイル: db_manager_plugin.py プロジェクト: cayetanobv/QGIS
 def onUpdateSqlLayer(self):
     l = self.iface.activeLayer()
     if l.dataProvider().name() in ['postgres', 'spatialite', 'oracle']:
         table = QgsDataSourceUri(l.source()).table()
         if table.startswith('(') and table.endswith(')'):
             self.run()
             self.dlg.runSqlLayerWindow(l)
コード例 #2
0
 def onUpdateSqlLayer(self):
     l = self.iface.activeLayer()
     if l.dataProvider().name() in ['postgres', 'spatialite', 'oracle']:
         table = QgsDataSourceUri(l.source()).table()
         if table.startswith('(') and table.endswith(')'):
             self.run()
             self.dlg.runSqlLayerWindow(l)