-
Notifications
You must be signed in to change notification settings - Fork 923
Two fields instead of single NullTime for _at colmns #1902
Unanswered
Luit
asked this question in
Feature Requests & Ideas
-
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
, fields Deleted bool
and DeletedAt time.Time
instead of a single DeletedAt sql.NullTime
.
Would that be possible to have sqlc do?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment