Skip to content

Conversation

@grdsdev
Copy link
Contributor

@grdsdev grdsdev commented Nov 25, 2025

Summary

  • Added matchRegex() operator for PostgreSQL regex matching (~) - case sensitive
  • Added imatchRegex() operator for PostgreSQL regex matching (~*) - case insensitive
  • Added isDistinct() operator for IS DISTINCT FROM - treats NULL as comparable value
  • Reviewed and verified all existing operators against PostgREST v12 specification

What kind of change does this PR introduce?

New feature - missing operators from PostgREST v12 API

What is the current behavior?

The package was missing 3 operators from the PostgREST v12 specification:

  • match (regex ~)
  • imatch (regex ~*)
  • isdistinct (IS DISTINCT FROM)

What is the new behavior?

All PostgREST v12 operators are now implemented with proper method names:

  • matchRegex(column, pattern) - case sensitive regex matching
  • imatchRegex(column, pattern) - case insensitive regex matching
  • isDistinct(column, value) - NULL-aware inequality check

Test plan

  • Added unit tests for all 3 new operators
  • All existing operators verified against PostgREST v12 documentation
  • Code passes dart analyze with no issues
  • Code is properly formatted

References

🤖 Generated with Claude Code

Adds three missing operators from PostgREST v12 specification:
- matchRegex: PostgreSQL regex matching (~) - case sensitive
- imatchRegex: PostgreSQL regex matching (~*) - case insensitive
- isDistinct: IS DISTINCT FROM - treats NULL as comparable value

All existing operators were reviewed and verified against v12 docs.
Tests added for all new operators.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@grdsdev grdsdev requested review from a team and Vinzent03 November 25, 2025 11:27
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.

3 participants