Skip to content

Add timestamp_default_now schema helpers - #3165

Merged
tyt2y3 merged 1 commit into
masterfrom
add-timestamp-default-now
Aug 8, 2026
Merged

Add timestamp_default_now schema helpers#3165
tyt2y3 merged 1 commit into
masterfrom
add-timestamp-default-now

Conversation

@tyt2y3

@tyt2y3 tyt2y3 commented Aug 8, 2026

Copy link
Copy Markdown
Member

Follow-up to #3159 (date_time_default_now).

Adds the matching _default_now helpers for the timestamp family, treating _default_now as a deliberate helper axis alongside _null / _uniq:

  • timestamp_default_now — this is the variant the crate's own timestamps() helper uses (timestamp(...).default(Expr::current_timestamp())), so it is the more commonly wanted one.
  • timestamp_with_time_zone_default_now — for completeness of the family.

Both default to Expr::current_timestamp().

Mirror the date_time_default_now helper (#3159) for the timestamp family:
timestamp_default_now and timestamp_with_time_zone_default_now, both
defaulting to Expr::current_timestamp().
@tyt2y3
tyt2y3 merged commit d7932d5 into master Aug 8, 2026
23 checks passed
@tyt2y3
tyt2y3 deleted the add-timestamp-default-now branch August 8, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant