bitwalker / bitwalker/timex_ecto
Ecto type for Timex.Duration?
Open
- Dominant language
- Elixir
- Stars
- 162
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Is possible to use Timex.Duration (or some `Timex.Duration.Ecto`) as type for an Ecto field?
The purpose is to store, for example, a delay of something. E.g. "do not use this account for 3 weeks" in a ban-like system.
In an ideal world, it would encode to postgres `interval` type too.
Is there any chance this is supported?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.