Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure rows are only valid while currently being iterated #262

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 20, 2021

Fixes #251 amongst other issues. This PR makes SQLite.Row explicitly
error when values are attempted to be accessed and it's not the
currently iterated row. It borrows the idea from the MySQL.jl package,
which as a similar "sync" of row numbers between the Row and Query
objects.

Fixes #251 amongst other issues. This PR makes `SQLite.Row` explicitly
error when values are attempted to be accessed and it's not the
currently iterated row. It borrows the idea from the MySQL.jl package,
which as a similar "sync" of row numbers between the `Row` and `Query`
objects.
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #262 (05b123a) into master (6beb466) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #262      +/-   ##
==========================================
+ Coverage   85.05%   85.14%   +0.08%     
==========================================
  Files           5        5              
  Lines         676      680       +4     
==========================================
+ Hits          575      579       +4     
  Misses        101      101              
Impacted Files Coverage Δ
src/tables.jl 99.27% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6beb466...05b123a. Read the comment docs.

@quinnj quinnj merged commit 4b5fc58 into master Oct 20, 2021
@quinnj quinnj deleted the jq/251 branch October 20, 2021 05: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.

Weird iteration behavior
1 participant