Feature request #10539
QgsExpression instance variables
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
It would be handy to have replace variable in QgsExpression like we have normally in SQL type engines. For example:
exp = QgsExpression('"person" = @name')
This would change the expression to be:
'"person" = 'Woo''
The difference is these are added at parse time not on evaluate.
A more simple Python API could be:
exp = QgsExpression('"person" = @name', name="Woo")