
11 Sep
2025
11 Sep
'25
2:19 p.m.
On Thu, Sep 11, 2025 at 4:57 PM Klemens Morgenstern <klemensdavidmorgenstern@gmail.com> wrote:
Of course it would be, but now it might not be obvious that iterating actually modifies the statement. In the old API the .execute() communicated that, because you were iterating a resultset. Well, not clearly enough, but that was the idea.
Do you mean writing: auto stmt = conn.prepare("select * from ..."); for (auto row : sqlite::statement_range(stmt)) instead of: for (auto row : conn.prepare("select * from ...")) makes a difference in terms of clarity about whether iterating over a statement modifies it or not?