You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(2) Timezones will always be normalized to UTC or assumed to be UTC when no information is available, either by PostgreSQL or Postgrex
62
62
63
-
(3) `%Duration{}` may only be used with Elixir 1.17+. Intervals will only be decoded into a `%Duration{}` struct if the option `interval_decode_type: Duration` is passed to `Postgrex.Types.define/3`.
63
+
(3) `%Duration{}` may only be used with Elixir 1.17+. Intervals will only be decoded into a `%Duration{}` struct if the option `interval_decode_type: Duration` is passed to `Postgrex.Types.define/3`. Like `Postgrex.Interval`, the decoded `Duration` keeps the same coarse units returned by PostgreSQL: the time part is stored in `:second` and is not split into `:hour`/`:minute` (e.g. `1 day 02:03:04` decodes to `%Duration{day: 1, second: 7384}`).
64
64
65
65
(4) Enumerated types (enum) are custom named database types with strings as values.
0 commit comments