Replies: 2 comments 1 reply
-
You can either set the time yourself, or register a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the reply, I would like to set the time myself but I am unsure of how to go about doing it. The generated code is using the default time package and I am not sure how I can overwrite that function. Could you share a snippet of how I can set the time myself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write some unit tests for my Insert functions but the created_at and updated_at columns is using time.Now(). How can I override the return value so that it is a static timestamp.
Below is the code from the generated sqlboiler models.
Beta Was this translation helpful? Give feedback.
All reactions