Feature request #8594
executeQuery on data provider
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||17336|
It would be handy to be able to do
executeQuery which would just pass the query to the provider and return a iterator of features.
Would allow for something like this:
provider = layer.dataProvider() features = provider.executeQuery("Select * FROM blah WHERE A = 100") for f in features: ...
This would be handy to allow to more advanced queries against a provider and letting QGIS handle all the QgsFeature creation.