Commit 6655c5f
committed
Fetch integer as i64
SQLite stores integers in 64 bit.
If we try to get i32, it is just [cast internally](https://docs.rs/libsql/0.9.2/src/libsql/rows.rs.html#169-177) as i32.
The logic for fallible int conversion is already written. This commit
makes use of it and makes it explicit that we are actually retrieving an i64 from the database before converting it to our model type.1 parent f477e90 commit 6655c5f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments