Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Postgres] Add support for INTERVAL #197

Closed
2 tasks
mehcode opened this issue Mar 30, 2020 · 1 comment · Fixed by #271
Closed
2 tasks

[Postgres] Add support for INTERVAL #197

mehcode opened this issue Mar 30, 2020 · 1 comment · Fixed by #271
Labels
db:postgres Related to PostgreSQL E-medium enhancement New feature or request

Comments

@mehcode
Copy link
Member

mehcode commented Mar 30, 2020

  • Encode support for std::time::Duration, chrono::Duration, and time::Duration ( the second and third under chrono and time features )

  • Encode and Decode support for https://crates.io/crates/pg_interval ( under an interval feature )

@mehcode mehcode added enhancement New feature or request db:postgres Related to PostgreSQL E-medium labels Mar 30, 2020
@dimtion
Copy link
Contributor

dimtion commented Apr 17, 2020

Thank you for this project.

Is there a way to go around this issue using the query macro (like falling back to a String while type checking the INTERVAL type)?

Other than that I would be willing to help on this issue. However I'm not very familliar with sqlx currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
db:postgres Related to PostgreSQL E-medium enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants