Skip to content

feat: store a range in a native Postgres range column - #818

Merged
zachdaniel merged 3 commits into
ash-project:mainfrom
matt-beanland:feat/range-persistence
Aug 17, 2026
Merged

feat: store a range in a native Postgres range column#818
zachdaniel merged 3 commits into
ash-project:mainfrom
matt-beanland:feat/range-persistence

Conversation

@matt-beanland

@matt-beanland matt-beanland commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Contributor checklist

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Summary

Closes #817

1st commit is lift of @zachdaniel work on ash_postgres temporal:

https://github.com/ash-project/ash_postgres/blob/d38c7b6f8e2393620d0280d3b9ec964ea8cb106a/lib/types/range.ex
https://github.com/ash-project/ash_postgres/blob/d38c7b6f8e2393620d0280d3b9ec964ea8cb106a/lib/data_layer.ex
https://github.com/ash-project/ash_postgres/blob/d38c7b6f8e2393620d0280d3b9ec964ea8cb106a/lib/sql_implementation.ex
https://github.com/ash-project/ash_postgres/blob/d38c7b6f8e2393620d0280d3b9ec964ea8cb106a/lib/migration_generator/migration_generator.ex

2nd commit contributes test fixtures and tests including migrations.

3rd commit fixes the empty-range mapping and pins it with a test. This requires ash-project/ash#2858 to be released in order to compile.

@zachdaniel
zachdaniel merged commit 4408c82 into ash-project:main Aug 17, 2026
115 of 125 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

store a range in a native Postgres range column

2 participants