elixir-ecto / postgrex

PostgreSQL driver for Elixir
http://hexdocs.pm/postgrex/
1.12k stars 275 forks source link

Support Elixir durations #688

Open josevalim opened 4 months ago

josevalim commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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

josevalim commented 3 months ago

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