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 Error methods to get SQLite error values #1158

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

nvzqz
Copy link
Contributor

@nvzqz nvzqz commented Apr 7, 2022

Enables writing shorter code such as:

match error.sqlite_error_code() {
    Some(rusqlite::ffi::ErrorCode::ReadOnly) => // ...
    // ...
}

@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #1158 (b0993a1) into master (33e5f12) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #1158      +/-   ##
==========================================
- Coverage   78.89%   78.82%   -0.08%     
==========================================
  Files          48       48              
  Lines        6028     6034       +6     
==========================================
  Hits         4756     4756              
- Misses       1272     1278       +6     
Impacted Files Coverage Δ
src/error.rs 14.28% <0.00%> (-0.87%) ⬇️

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 33e5f12...b0993a1. Read the comment docs.

@gwenn gwenn merged commit f54e550 into rusqlite:master Apr 7, 2022
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.

None yet

3 participants