4
Subscribing to Views (in addition to Tables)
Source: supabase/supabase#11794 · opened by @yekta
Feature request
I'm not sure if this exists already but I couldn't get it to work. It would be nice if we could subscribe to views in addition to tables. I'm not familiar enough with the system to say if this is easy, hard or possible.
The problem
I want to give public access to certain columns in a table (instead of rows). I learned that views is a solution, but I don't seem to be able to use views with realtime.
Solution I'd like
Given messages_public is a view based on messages, the usage might look like this:
Or this
Describe alternatives you've considered
Currently I'm just manually polling the view instead of a realtime subscription, which isn't ideal.
I'm not sure if this exists already but I couldn't get it to work. It would be nice if we could subscribe to views in addition to tables. I'm not familiar enough with the system to say if this is easy, hard or possible.
The problem
I want to give public access to certain columns in a table (instead of rows). I learned that views is a solution, but I don't seem to be able to use views with realtime.
Solution I'd like
Given messages_public is a view based on messages, the usage might look like this:
Or this
Describe alternatives you've considered
Currently I'm just manually polling the view instead of a realtime subscription, which isn't ideal.
No pledges yet. Be the first to back this.
Comments
Similar requests
Subscribing to a table doesn't load relationships to other tables
4 votes · 0 comments
pgx-managed Postgres w/ wrappers behaved differently from locally-installed Postgres w/ wrappers
2 votes · 0 comments
Ways to organize tables and views in folders
1 vote · 0 comments
Better support for (Materialized) Views
24 votes · 0 comments
Dashboard Enhancement: Add Edit and Delete actions for Database Views
3 votes · 0 comments
No comments yet.