forked from linuxfood/rustsqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
they used to return a direct `String` or `Vec<u8>`, which may fail when it should return `NULL`. other functions do not have this issue since the automatic conversion is fully defined over INTEGER and FLOAT internal types. this commit changes them to return an optional `&str` or `&[u8]`. this correctly handles `NULL`, and moreover, reduces the redundant allocations when the buffer doesn't need to be kept. this also makes `Cursor::get_bytes` fully redundant, so it has been removed.
- Loading branch information
1 parent
7ed6b73
commit e7f9813
Showing
2 changed files
with
47 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters