Replies: 1 comment
-
Please always provide some solution if you close discussions. Otherwise this is just spamming the discussion forum as others cannot learn anything from your posts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Yeah, pretty much bunch of macros and traits that allow me to automatically append
NOW()
on timestamp/timestamptz of updated_at attribute/field every time diesel::update is called on table. Just running into a few issues concerning the update_statement module being private and no other way to get SetNotCalled, SetCalled outside of the module to define UpdateStatement generic types. Given I have a bunch of tables with created_at, updated_at... I thought this would be a cool feature to work on. And, Yes, Alternatively, would have been easier to just write sql triggers... But I've invested too much time on this for it to not work.Beta Was this translation helpful? Give feedback.
All reactions