Accept pure SQL on postgrest, we will be able to use other ORMS on Vercel Edge Runtime #14321
Unanswered
Jaaneek
asked this question in
Feature Requests
Replies: 1 comment 7 replies
|
Execute pure sql through postgrest is actually needed? Supabase is providing a connection pooling with postgres, So you can use it. https://supabase.com/docs/guides/functions/connect-to-postgres |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Since postgrest is a server connected straight to the database, I was wondering if making it accept an optional SQL string would be possible.
I understand that it's not possible on client due to SQL injections. I'm not asking for that.
Not only that, but I would like it to accept SQL only when a service key was provided, meaning it would be only accessible on the server.
This could be very similar to https://planetscale.com/blog/introducing-the-planetscale-serverless-driver-for-javascript
We would be able to opt out of the bad DX that supabase-js query client gives us and use whatever ORM we want, for example kysely or drizzle are perfect for edge runtime.
The bad DX I'm talking about is mostly typesafety:
supabase/postgrest-js#303
I would also appreciate the ETA on fixing the above issue
All reactions