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

Support Elixir durations #688

Open
josevalim opened this issue Jul 5, 2024 · 3 comments
Open

Support Elixir durations #688

josevalim opened this issue Jul 5, 2024 · 3 comments
Labels

Comments

@josevalim
Copy link
Member

Elixir version

1.17.0

Database and Version

Any

Postgrex Version

Not yet supported

Current behavior

Postgrex.Duration is not supported.

Expected behavior

We should support the new durations and potentially deprecate Postgrex.Duration.

@greg-rychlewski
Copy link
Member

For now were you just looking to encode Elixir durations? And then when we require 1.17 we can do the decoding/replace Postgrex.Duration?

@josevalim
Copy link
Member Author

I think that's a good beginning, yeah! We could maybe already even allow defaulting to them via an option?

@josevalim
Copy link
Member Author

This is in but we want to keep it around and eventually make it the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants