Supporting chrono after breaking sqlx change #211
vinnymeller
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Reading that issue, this isn't related to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Existing issue in sqlx repo: launchbadge/sqlx#3412 (comment)
tldr: sqlx made a breaking change - launchbadge/sqlx#2697 - where the
sqlx::types::chrono
types only get enabled iftime
is disabledthis crate and the
tower-sessions-stores
crates assumetime::OffsetDateTime
as the datetime type:tower-sessions/tower-sessions-core/src/session.rs
Line 569 in d7b7e13
I haven't had time to think about a nice solution yet but hadn't seen this posted anywhere here yet so thought I'd start the discussion. Currently it's not a great experience to work around this (described here launchbadge/sqlx#3412 (comment))
Example error message:
Beta Was this translation helpful? Give feedback.
All reactions