Skip to content

Add ToSql implementations for u64 and usize#826

Merged
thomcc merged 1 commit into
rusqlite:masterfrom
Timmmm:tosql_64
Oct 27, 2020
Merged

Add ToSql implementations for u64 and usize#826
thomcc merged 1 commit into
rusqlite:masterfrom
Timmmm:tosql_64

Conversation

@Timmmm

@Timmmm Timmmm commented Oct 26, 2020

Copy link
Copy Markdown
Contributor

Fixes #821.

Note this line: // TODO: Include the values in the error message. I wasn't sure what the best thing to do here was - ideally it would say something like Value 12342345234534 too big to store in an i64, but I think it will just say out of range integral type conversion attempted.

@codecov

codecov Bot commented Oct 26, 2020

Copy link
Copy Markdown

Codecov Report

Merging #826 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #826      +/-   ##
==========================================
+ Coverage   77.05%   77.09%   +0.04%     
==========================================
  Files          47       47              
  Lines        5431     5441      +10     
==========================================
+ Hits         4185     4195      +10     
  Misses       1246     1246              
Impacted Files Coverage Δ
src/types/mod.rs 95.23% <100.00%> (+0.17%) ⬆️
src/types/to_sql.rs 93.89% <100.00%> (+0.19%) ⬆️

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 8841187...27ae036. Read the comment docs.

@thomcc thomcc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@thomcc thomcc merged commit b0ade73 into rusqlite:master Oct 27, 2020
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.

Implement ToSql/FromSql for u64

3 participants