Repository navigation
feat(postgrest): filter rows matching any of several patterns - #989
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tr00d
marked this pull request as ready for review
December 1, 2026 07:57
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A caller can keep only the rows where a column matches any of several patterns, case-sensitively.
Capability:
database.using_filters.like_any- Filter Like Any Pattern.Public API
New enum member
Constants.Operator.LikeAny = 25, used through the existingFilter,Not,OrandAnd. No new methods.Behavior
<column>=like(any).{"p1","p2"}as a query parameter on any filtered request.%in a pattern becomes*, as forLike. Each item is double-quoted, with\and"escaped, so commas and braces stay inside the item.{}; PostgREST answers it with no rows (checked against the local stack). The SDK does not validate it.PostgrestExceptionwithReason = InvalidArgument, likeIn.Deviations from supabase-js
Items are quoted and escaped; supabase-js joins them raw. Exposed through the operator enum only, not a dedicated method.
Tests
LikeAnyFilterTests*/%inside quoted items, case sensitivity, empty list, comma inside a pattern, negationLikeAnyRequestTestsLikeAnyFilterRenderingTestsDiff coverage: 100% (7 lines). Mutation: 15/15 testable mutants on changed lines killed (2 more were compile errors), 0 survivors.