#1243

feat: Neon-compatible HTTP /sql endpoint

DraftSnehil-Shahwants to merge intofrom

Adds POST /sql HTTP endpoint compatible with the HTTP mode of the @neondatabase/serverless driver.

It follows a similar architecture to SupavisorWeb.WsProxy, where each request is handled as a regular Supavisor client. We first parse, understand, and build the queries (from Neon requests) to send to the DB in Supavisor.HttpSql, and then Supavisor.HttpSql.Client, which acts as a local client to Supavisor, runs them over a local connection to the transaction port.

Closes #152

Activity

19
Snehil-Shahreviewed9d ago
Snehil-Shah9d ago

@v0idpwn Currently keeping this in draft. Once we align on the core approach I'll move ahead with the documentation. Also, do we want this under a feature flag? It doesn't touch any existing pooler machinery, so I feel it can be enabled directly for all users?

v0idpwnreviewed9d ago
v0idpwnreviewed9d ago
v0idpwnreviewed9d ago
v0idpwnreviewed9d ago
S
3bd6fa6

This pull request is a draft

Merging is unavailable until it is marked ready for review.