Skip to content

Support jiff#3018

Open
Huliiiiii wants to merge 3 commits intoSeaQL:masterfrom
Huliiiiii:jiff
Open

Support jiff#3018
Huliiiiii wants to merge 3 commits intoSeaQL:masterfrom
Huliiiiii:jiff

Conversation

@Huliiiiii
Copy link
Member

PR Info

New Features

  • Support jiff

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 726b780342

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +698 to +702
#[cfg(feature = "with-chrono")]
break 'value Value::ChronoDateTime(
row.try_get::<Option<chrono::NaiveDateTime>, _>(c.ordinal())
.expect("Failed to get timestamp"),
);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve Jiff values when default chrono features are also enabled

SeaORM's default feature set already includes with-chrono, so many users will enable with-jiff on top of the defaults. In that configuration this proxy-row conversion still breaks out on the chrono/time branch first, which means from_query_result_to_proxy_row stores Value::Chrono*/Value::Time* instead of the new Value::Jiff*. ProxyRow::try_get and the new try_getable_jiff! impl only accept Value::Jiff*, so Jiff reads through the proxy feature start failing on Postgres (and the same ordering issue exists in the SQLite proxy path).

Useful? React with 👍 / 👎.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32fed93277

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f11d8c58f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31a0824521

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +218 to +223
with-jiff = [
"jiff",
"jiff-sqlx",
"sea-query/with-jiff",
"sea-query-sqlx?/with-jiff",
]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate with-jiff away from Arrow conversions

When a project enables both with-jiff and with-arrow, Arrow round-trips for Jiff-backed models are still unsupported even though this feature set is now exposed. ActiveModel::from_arrow only retries chrono→time conversions (src/entity/active_model.rs:563-586), and sea-orm-arrow/src/lib.rs:154-170,1272-1403 only produces/extracts chrono/time Value variants, never Value::Jiff*. As a result, entities with JiffDate/JiffTime/JiffDateTime/JiffTimestamp cannot be imported from or exported to Arrow batches.

Useful? React with 👍 / 👎.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c54003d6f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 725398b5ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96663c8c39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +66 to +69
it_impl_traits!(jiff::civil::Date);
it_impl_traits!(jiff::civil::Time);
it_impl_traits!(jiff::civil::DateTime);
it_impl_traits!(jiff::Timestamp);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate the sync crate's new Jiff tests on with-jiff

These new assertions are unconditional, but the self dev-dependency in sea-orm-sync/Cargo.toml:92-97 still enables only debug-print, mock, postgres-array, and tests-cfg. That means a plain cargo test in sea-orm-sync will try to compile references to jiff::*/Jiff* without turning on with-jiff, so the sync crate's default test target is now broken unless the caller remembers to pass that feature manually. CI currently hides this by always using --features tests-features,rusqlite for the sync crate.

Useful? React with 👍 / 👎.

@Huliiiiii Huliiiiii requested review from Expurple and tyt2y3 March 22, 2026 23:23
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.

Support jiff

1 participant