Replies: 1 comment 1 reply
-
I don't think that this is easily possible. Sqlite assumes that paths are either utf-8 or utf-16. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because SQLite wants a path on the filesystem, there should be a way to pass a
std::path::Path
as a argument instead of just&str
to establish a connectioni know that currently
establish
is from the trait, which probably will not be changed, but there should be a custom function that accepts itor better it should be
AsRef<Path>
Why? because converting a
Path
tostr
(orString
) is lossy from what i know, because in rust strings must be UTF-8, but paths may not beBeta Was this translation helpful? Give feedback.
All reactions