Two fields instead of single NullTime for _at colmns #1902
Unanswered
Luit
asked this question in
Feature Requests & Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if it would be possible to have optional datetime/timestamp colmns work as two separate fields; a boolean field and the timestamp itself.
For example, when using a soft-delete and registering that in a nullable timestamp column called
deleted_at
, fieldsDeleted bool
andDeletedAt time.Time
instead of a singleDeletedAt sql.NullTime
.Would that be possible to have sqlc do?
Beta Was this translation helpful? Give feedback.
All reactions