Creates a PostgreSQL adapter wired to a Hyperdrive binding.
The returned provider creates a transient client for each statement execution. Hyperdrive handles connection pooling at the edge, so this pattern remains fast and scalable in Workers.
Hyperdrive binding
Client factory (e.g. connectionString => new Client({ connectionString }))
connectionString => new Client({ connectionString })
SQLDatabase-compatible adapter
Creates a PostgreSQL adapter wired to a Hyperdrive binding.
The returned provider creates a transient client for each statement execution. Hyperdrive handles connection pooling at the edge, so this pattern remains fast and scalable in Workers.