We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey there! Thanks so much for this awesome crate!
I want to write a custom wrapper for try_get, like this:
fn get_c_opt(r: &Row, id: impl QueryIdx) -> Result<Option<String>> { Ok(r.try_get::<&str, _>(id)?.map(|s| s.to_string())) } fn get_c_or_empty(r: &Row, id: impl QueryIdx) -> Result<String> { Ok(get_c_opt(r, id)?.unwrap_or_default()) }
But the QueryIdx trait is not exposed, so this doesn't compile. Is there any way to work around this, or could we expose the trait?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey there! Thanks so much for this awesome crate!
I want to write a custom wrapper for try_get, like this:
But the QueryIdx trait is not exposed, so this doesn't compile. Is there any way to work around this, or could we expose the trait?
The text was updated successfully, but these errors were encountered: