Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Two fields instead of single NullTime for _at colmns #1902

Unanswered
Luit asked this question in Feature Requests & Ideas
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /