Skip to content

Implement basic support for numeric and date range types#612

Closed
Ragnis wants to merge 12 commits intolib:masterfrom
Ragnis:ranges
Closed

Implement basic support for numeric and date range types#612
Ragnis wants to merge 12 commits intolib:masterfrom
Ragnis:ranges

Conversation

@Ragnis
Copy link

@Ragnis Ragnis commented May 20, 2017

  • The Int32Range and Int64Range can be used for reading/writing int4range and int8range values, respectively
  • The Float64Range is useful for reading/writing numrange values, when possible loss of precision is not of concern.
  • The DateRange type can be used with the Postgres daterange type. This is the only one that currently supports infinite values.

I'm not yet sure what would be a good way of handling the numrange type. Maybe by treating the min/max values as strings?

@Ragnis Ragnis changed the title Implement basic support for numeric range types Implement basic support for numeric and date range types May 20, 2017
@UmanShahzad

This comment was marked as off-topic.

@cliedeman

This comment was marked as off-topic.

@aszecowka

This comment was marked as off-topic.

@arp242
Copy link
Collaborator

arp242 commented Jan 3, 2026

I'm closing this in favour of #1196, which seems a better solution using type parameters.

@arp242 arp242 closed this Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments