You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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