1
Type safe queries and subscriptions using table introspection
Source: supabase/supabase#1011 · opened by @jsvde
Hey Supabase!
[supabase-js]( is already written in typescript so I wondered why not take it one step further and have type safe queries (and/or subscriptions) bound to the actual database schema?
With the pg-api and table introspection it would be possible to generate all types required to do so.
Would be super cool to have a typed client library according to the current database schema, since the first thing I did when trying out supabase was a typo in the table name :)
[supabase-js]( is already written in typescript so I wondered why not take it one step further and have type safe queries (and/or subscriptions) bound to the actual database schema?
With the pg-api and table introspection it would be possible to generate all types required to do so.
Would be super cool to have a typed client library according to the current database schema, since the first thing I did when trying out supabase was a typo in the table name :)
No pledges yet. Be the first to back this.
Comments
Similar requests
Add "status" column in subscriptions stripe to where filter "status" works outside of attrs
2 votes · 0 comments
Redesign of the Queries tab
4 votes · 0 comments
Supabase Auth Token Introspection Endpoint
3 votes · 0 comments
Proposal for adding type-safe for `.select()` function
5 votes · 0 comments
Enhancing Developer Experience with Client-side Raw SQL Queries
3 votes · 0 comments
No comments yet.