- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Add TryFromU64
trait for DateTime<FixedOffset>
#330
Comments
Hi @kev0960, welcome!! Oh, are you using date time column as primary key? |
Yes :) Postgres Schema looks like this
|
I created a pull request here: #331 |
@tyt2y3 Entity file looks like this
|
Oh I see, a composite primary key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The timestamp column (with time zone) generates the field with
chrono::DateTime<chrono::FixedOffset>
. Sadly,DeriveEntityModel
macro fails becauseTryFromU64
is not implemented for this type.Example error:
The text was updated successfully, but these errors were encountered: