walrus icon indicating copy to clipboard operation
walrus copied to clipboard

Support for `in` operator

Open bhvngt opened this issue 3 years ago • 4 comments

Hi, I am eagerly waiting for this functionality for my project. Just curious if support for in operator is in the roadmap. It will be super handy if in is supported.

bhvngt avatar Sep 30 '21 13:09 bhvngt

Yes "in" support is definitely on the roadmap

Here's the full list of operators being considered https://postgrest.org/en/latest/api.html#operators

olirice avatar Oct 02 '21 13:10 olirice

Hi @olirice

What are the supported operators by walrus as of now? Is it only eq?

osaxma avatar Jan 21 '22 22:01 osaxma

Here are the allowed equality operations https://github.com/supabase/walrus/blob/6b6c3ec212e91f3c2a51fa6698c0209dd5208b20/sql/walrus--0.1.sql#L10 but the availability may be limited depending on which client lib you're using

olirice avatar Jan 21 '22 23:01 olirice

I'm using dart library, but I was told it was a real time limitation according to this comment:

  • supabase-community/supabase-flutter#91

I'll share your comment in supabase/realtime#222

Thank you!

osaxma avatar Jan 21 '22 23:01 osaxma

At Revaly, we'd really love to have the .in operator in https://github.com/supabase/supabase-js

Would help significantly with using the Dataloader pattern for batches of data.

Marviel avatar Dec 09 '22 21:12 Marviel

Closing this b/c it's been implemented: https://github.com/supabase/walrus/pull/63.

If you would like to use this in Realtime you can check out https://github.com/supabase/realtime/issues/401#issuecomment-1413111707.

w3b6x9 avatar Feb 02 '23 03:02 w3b6x9