
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@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.
The npm package @prisma-next/driver-postgres receives a total of 10,551 weekly downloads. As such, @prisma-next/driver-postgres popularity was classified as popular.
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 Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.