Hi. I would like to use interceptors for following two use cases but I am not sure how to implement it properly. Anyone have some example?
1. I would like to fill timestamps created_at and updated_at automatically. I can use clientDefault, but I would like to have the same value for both columns during insert
2. I would like to update updated_at to current timestamp in update statement
I am using just exposed DSL, not DAO. I would like to make it generic, supporting insert/batchinsert/update/upsert....
Any ideas?