Skip to content

Add Postgres Multirange behaviors for types #27

@Danieth

Description

@Danieth

I'm working on a PR that will extend how this handles types to fully embrace how Postgres handles types (namely, the existing behavior differs for Date, Time & ActiveSupport::TimeWithZone objects).

This was prompted by a gem I'm writing that will add in support for PG Multiranges in ActiveRecord, utilizing your gem as the in Rails data structure. Ultimately, I'd like to add this support directly into Rails itself, but, that's a ways off.

I have some other thoughts for small changes I'd like to make that I'll put into another PR (I think the initializer could accept an option to assume the input ranges are already sorted).

What do you think @khiav223577 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions