-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Triying to get a DateTime<Utc> from a AnyRow. #1772
New issue
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
Comments
The respective compilation unity has this imports:
|
What error are you getting? |
error[E0277]: the trait bound error[E0277]: the trait bound For more information about this error, try |
Try enabling the |
It's enabled as: sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "all", "chrono"] } |
Drop the Try |
It now compiles, thanks. |
Hello,
I'm trying to get a DateTime from a AnyRow but did not found how it is done.
The function signature is:
pub fn csv_value(row: &AnyRow, index: usize, column: &AnyColumn) -> Result<String, sqlx::Error> {
The function where i'm trying is like:
How can i get a DateTime from a AnyRow?
Thanks in advance.
The text was updated successfully, but these errors were encountered: