Skip to content

Conversation

@JoeTurki
Copy link

@JoeTurki JoeTurki commented Oct 12, 2025

Introduces a new --temporal option to choose temporal type mapping:

  • raw (default): primitive types for backward compatibility
  • time: uses time crate (time::Date, time::OffsetDateTime, time::Duration)
  • chrono: uses chrono crate (chrono::NaiveDate, chrono::DateTime, etc.)
  • Adds support for ClickHouse Time and Time64(precision) types.

Updated all snapshots.

We use this tool at Ceeblue, but difficult to work with for date & time types,
without using syn and quote. This patch solves it for us.

resolves #13

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2025

CLA assistant check
All committers have signed the CLA.

@JoeTurki JoeTurki force-pushed the add-temporal branch 2 times, most recently from d76582f to b72498e Compare October 12, 2025 22:25
Introduces a new --temporal option to choose temporal type mapping:
- raw (default): primitive types for backward compatibility
- time: uses time crate (time::Date, time::OffsetDateTime, time::Duration)
- chrono: uses chrono crate (chrono::NaiveDate, chrono::DateTime, etc.)
- Adds support for ClickHouse Time and Time64(precision) types.

Updated all snapshots.
@JoeTurki
Copy link
Author

@slvrtrn sorry for the ping, can you please check this when you have time :)

@slvrtrn
Copy link
Contributor

slvrtrn commented Oct 22, 2025

@abonander PTAL

@slvrtrn slvrtrn requested a review from abonander October 22, 2025 10:24
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.

Generate time/chrono

3 participants