Skip to content

refactor: reuse statement execution for batch commands#292

Merged
chrispader merged 2 commits into
mainfrom
refactor/extract-and-reuse-helper-functions
Jul 23, 2026
Merged

refactor: reuse statement execution for batch commands#292
chrispader merged 2 commits into
mainfrom
refactor/extract-and-reuse-helper-functions

Conversation

@chrispader

Copy link
Copy Markdown
Member

Summary

  • extract shared SQLite statement preparation and row-consumption helpers
  • execute batch and imported SQL commands without materializing query result rows
  • use RAII to finalize prepared statements and avoid copying batch commands
  • report zero affected rows for read-only batch commands

Testing

  • nr lint-cpp
  • nr sqlite typecheck
  • nr typecheck in example
  • iOS example build on iPhone 17 Pro simulator
  • nr test:harness:ios (68 tests passed)

@chrispader
chrispader merged commit a41a4b1 into main Jul 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant