Skip to content

Conversation

@Himmelschmidt
Copy link

Summary

  • Adds SqliteDateTime wrapper implementing SqlTimestamp
  • Enables optional time crate support alongside default chrono

Ref: apalis-dev/apalis#654, apalis-dev/apalis#649

Add support for the `time` crate as an alternative datetime library,
giving users the choice between `chrono` and `time` via feature flags.

Changes:
- Add `SqliteDateTime` abstraction in new `timestamp` module
- `chrono` feature (default) uses chrono::DateTime<Utc>
- `time` feature uses time::OffsetDateTime
- Make chrono dependency optional (still default)
- Update TaskRow to use generic timestamp type
- Adapt to apalis-core API changes (generic TaskRow<T>, removed
  get_queue(), simplified TaskResult and SqlContext types)

Note: Uses path dependencies for unreleased apalis-core/apalis-sql.
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