Skip to content

Conversation

@IvanDimitrovQC
Copy link
Contributor

@IvanDimitrovQC IvanDimitrovQC commented Sep 22, 2025

The function iter_executes_batches mimics executes, but instead of executing the SQL script internally it produces an iterator over each batch and a callable to execute that batch.

Useful if you have long SQL files with several queries inside them and would like to do some more granular analysis (for example runtime) on each one rather than the whole file.

EDIT:
I also adjust test_non_isolation_mode.test_semi_persistent_set by changing the ints as it fails in a funny way:

 '12' is contained here:
    INFO     pytsql:tsql.py:212 SQL PRINT: 56

@IvanDimitrovQC IvanDimitrovQC merged commit 026f338 into main Sep 22, 2025
43 of 44 checks passed
@IvanDimitrovQC IvanDimitrovQC deleted the ivan/add_iter_execute_batches branch September 22, 2025 12:29
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.

3 participants