supavisor
supavisor copied to clipboard
HTTP endpoint for SQL queries
Provide an HTTP endpoint to POST sql query strings (and parameters) and return results.
Is it the goal to keep compatibility with libraries like neondatabase/serverless (same as you've planned for Websockets)?
@daniel-xyz we are still discussing the api internally, but it's unlikely that we will maintain compatibility with the Neon approach
There's a workaround to make supavisor work with @neondatabase/serverless today:
- Configure your postgres URL like this:
POSTGRES_URL=postgres://postgres.[project-ref]:[password]@aws-0-us-west-1.pooler.supabase.com:6543/postgres?sslmode=require?workaround=supabase-pooler.vercel(example) - Create a pool and query: https://github.com/thorwebdev/supa-postgres-drizzle2/blob/tests/app/neon/page.tsx
This also works with vercel/postgres + drizzle: https://github.com/thorwebdev/supa-postgres-drizzle2/blob/tests/lib/drizzle.ts