bitwalker / bitwalker/timex_ecto

Ecto type for Timex.Duration?

Open
#84 3 comments 4 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.