FeatureFuel
1

Suggestion: Renaming some filters

Source: supabase/supabase#534 · opened by @joshnuss
Some of the filter names are very short. Names like .sl(), .sr(), .adj() can be hard to remember what to they do. I think it would lead to clearer and more declarative code if the function names were a bit longer. Current list of filters: Rename suggestions: • .cs() -> .contains() or add a json: true option to .in() • .cd() -> .within() • .sl() -> .rangeLt() or add a range option to .lt(column, value, {range: true}) • .sr() -> .rangeGt() or add a range option to .gt(column, value, {range: true}) • .nxl() -> rangeGte() or add a range option to .gte(column, value, {range: true}) • .nxr() -> rangeLte() or add a range option to .lte(column, value, {range: true}) • .adj() -> .adjacent() • .ova() -> .within() • .fts() -> .textSearch(column, search, {type: 'tsvector'}) • .plfts() -> .textSearch(column, search, {type: 'plainto'}) • .phfts() -> .textSearch(…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests