Skip to content

feat: render the range expressions to their Postgres operators - #248

Merged
zachdaniel merged 2 commits into
ash-project:mainfrom
matt-beanland:feat/range-expressions
Aug 20, 2026
Merged

feat: render the range expressions to their Postgres operators#248
zachdaniel merged 2 commits into
ash-project:mainfrom
matt-beanland:feat/range-expressions

Conversation

@matt-beanland

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

Part of ash-project/ash_postgres#821

Single commit, adds rendering clauses for: RangeAdjacent, RangeContains, RangeLower, RangeOverlaps, RangeUpper.

Note that RangeOverlaps uses Ash.Range.intersects?/2

Operands are typed rather than interpolated . This is because a plain fragment renders a range literal as an inspected %Ash.Range{} instead of a parameter.

Requires ash to release with recent merges to main and ash-project/ash#2877.
Tests will be a separate ash_postgres PR.

@zachdaniel
zachdaniel merged commit 67d9a63 into ash-project:main Aug 20, 2026
26 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.

2 participants