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

Add replace keyword arg to SQLite.load! #263

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Add replace keyword arg to SQLite.load! #263

merged 1 commit into from
Oct 20, 2021

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 20, 2021

Fixes #243. Allows changing the "load" generated statement from INSERT
to REPLACE. We also add in error checking on each statement execution,
otherwise we never see an error in the INSERT case for primary key
duplication (it just silently fails and doesn't insert, which isn't
great).

Fixes #243. Allows changing the "load" generated statement from INSERT
to REPLACE. We also add in error checking on each statement execution,
otherwise we never see an error in the INSERT case for primary key
duplication (it just silently fails and doesn't insert, which isn't
great).
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #263 (8131860) into master (4b5fc58) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #263      +/-   ##
==========================================
+ Coverage   85.14%   85.27%   +0.12%     
==========================================
  Files           5        5              
  Lines         680      686       +6     
==========================================
+ Hits          579      585       +6     
  Misses        101      101              
Impacted Files Coverage Δ
src/tables.jl 99.30% <100.00%> (+0.03%) ⬆️

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 4b5fc58...8131860. Read the comment docs.

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.

Request a variant of load! that executes REPLACE on each row rather than INSERT.
1 participant