Port 'Execute SQL' algorithm and widget wrapper to c++ (Request in QGIS)
#11,170 opened on Aug 5, 2026
Repository metrics
- Stars
- (607 stars)
- PR merge metrics
- (PR metrics pending)
Description
Request for documentation
From pull request qgis/QGIS#66935 Author: @nyalldawson QGIS version: 4.4
**Port 'Execute SQL' algorithm and widget wrapper to c++ **
PR Description:
Description
The c++ algorithm is close to a direct port of the Python one, with the addition of improved help strings and per-parameter help, and some extra feedback (showing the actual SQL to be run).
The widget wrapper is considerably simplified from the Python version. The python version was needlessly complex, as a result of API introduced in the original PR which duplicated existing generic functionality from the modeler API. I've removed that, and deprecated the duplicate API.
There's also new tests for the widget wrapper (none were present before), and a new test for the algorithm itself.
AI tool usage
- AI tool(s): Gemini was used to do the initial algorithm port + write the new help strings, revised by hand by myself.