volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

Get to know affected fields inside hook. #432

Closed ghost closed 5 years ago

ghost commented 5 years ago

@aarondl just a questions.

is it possible to know the affected changed fields inside hooks?

Thank you!

aarondl commented 5 years ago

It is not currently, no. There is no "dirty tracking" in sqlboiler whatsoever for better or worse so this is something sqlboiler simply can't know. Though it may be possible to provide the lists that sqlboiler has decided to insert and return if we were to break the API.

ghost commented 5 years ago

@aarondl thank you very much for your reply!