Skip to main content

Postgres client & connection (Neon serverless)

Generated from pattern-library/registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Databases & Storage · Tier: light · Maturity: proven (verified 2026-08-20 @ 1a130d67) · Risk: medium — external managed service (Neon Postgres)

Sets up the Drizzle client for PostgreSQL using the Neon serverless driver as the app's single database connection entrypoint.

When to use: Reach for it whenever server-side code needs a database handle to run Drizzle queries.

Docs

Code

Proof


Machine-readable record: databases-postgres-connection in pattern-library/registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback