michalc / sqlite-s3-query

Python functions to query SQLite files stored on S3
MIT License
251 stars 15 forks source link

feat: don't finalize after exhausitng rows iterator #28

Closed michalc closed 2 years ago

michalc commented 2 years ago

Doing this primarily for fewer code paths: a statement is now only finalized when moving to the next statement in a multi-statement query, or when the query context is exited for a single-statement query. It's also really difficult to add a test for the existing behaviour.