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
I can have a field for setting the creation date:
#[ormlite(default_value = "chrono::Utc::now()")] pub updated_at: Option<DateTime<Utc>>,
but how can I have a field that is auto set every time the model is modified, I.e. an updated_at field?
updated_at
The text was updated successfully, but these errors were encountered:
The library doesn't support this yet.
I think db triggers is the right approach, so that the update logic isn't dependent on the ORM.
PR is welcome, and happy to answer any questions that come up.
Sorry, something went wrong.
No branches or pull requests
I can have a field for setting the creation date:
but how can I have a field that is auto set every time the model is modified, I.e. an
updated_at
field?The text was updated successfully, but these errors were encountered: