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 multi ranges #9

Open
davydog187 opened this issue Nov 2, 2022 · 1 comment
Open

Support multi ranges #9

davydog187 opened this issue Nov 2, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@davydog187
Copy link
Owner

Each postgres range type supports whats called a multirange

Every range type has a corresponding multirange type. A multirange is an ordered list of non-contiguous, non-empty, non-null ranges. Most range operators also work on multiranges, and they have a few functions of their own.

E.g.

SELECT '{}'::int4multirange;
SELECT '{[3,7)}'::int4multirange;
SELECT '{[3,7), [8,9)}'::int4multirange;

We should decide if and how we want to support multi ranges, probably under another module prefix, like EctoRange.Multi.Date

@davydog187 davydog187 added enhancement New feature or request help wanted Extra attention is needed labels Nov 2, 2022
@PJUllrich
Copy link
Collaborator

@davydog187 sounds like a good idea to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants