
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@prisma-next/driver-postgres
Advanced tools
PostgreSQL driver for Prisma Next.
The PostgreSQL driver provides transport and connection management for PostgreSQL databases. It implements the SqlDriver interface for executing SQL statements, explaining queries, and managing connections.
In Prisma Next, "driver" refers to the Prisma Next interface (not the underlying pg library). Drivers are transport-agnostic: they own pooling, connection management, and transport protocol (TCP, HTTP, etc.), but contain no dialect-specific logic. All dialect behavior lives in adapters. Instantiation is separate from connection; create() returns an unbound driver, connect(binding) binds at the boundary (ADR 159).
This package spans multiple planes:
src/exports/control.ts): Control plane entry point for driver descriptorssrc/exports/runtime.ts): Runtime entry point for driver implementationProvide PostgreSQL transport and connection management. Execute SQL statements and manage connections without dialect-specific logic.
Non-goals:
flowchart TD
subgraph "Runtime"
RT[Runtime]
ADAPTER[Adapter]
end
subgraph "Postgres Driver"
DRIVER[Driver]
POOL[Connection Pool]
CONN[Connection]
end
subgraph "PostgreSQL"
PG[(PostgreSQL)]
end
RT --> ADAPTER
ADAPTER --> DRIVER
DRIVER --> POOL
POOL --> CONN
CONN --> PG
PG --> CONN
CONN --> DRIVER
DRIVER --> RT
postgres-driver.ts)SqlDriver interface@prisma-next/sql-contract: SQL contract types (via @prisma-next/sql-contract/types)Use the descriptor + connect lifecycle:
import postgresDriver from '@prisma-next/driver-postgres/runtime';
const driver = postgresDriver.create({ cursor: { batchSize: 100 } });
await driver.connect({ kind: 'url', url: process.env.DATABASE_URL });
// driver is now bound; use acquireConnection, query, execute, etc.
Binding variants:
{ kind: 'url', url }: Driver creates a Pool from the connection string{ kind: 'pgPool', pool }: Use an existing pg Pool{ kind: 'pgClient', client }: Use an existing pg Client (direct connection)./runtime: Runtime entry point for driver implementation
postgresRuntimeDriverDescriptor — use create() for unbound driver, then connect(binding)PostgresBinding, PostgresDriverCreateOptions, QueryResult./control: Control plane entry point for driver descriptors
DriverDescriptor for use in prisma-next.config.tsFAQs
PostgreSQL driver for Prisma Next.
We found that @prisma-next/driver-postgres demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.