Reuse Hook #1206
-
Is there a convenient way to write a hook such that it can be reused by all models? For example, say I have a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First, for But to answer your question about re-using hooks. There is no easy way to do that. You can consider extending the templates with the |
Beta Was this translation helpful? Give feedback.
First, for
created_at
columns, SQLBoiler can add automatic timestamps, so nothing to do on your end.But to answer your question about re-using hooks. There is no easy way to do that.
You can consider extending the templates with the
--templates
flag to generate code for whatever new functionality you want to add, but that is not the most intuitive process.