database driver
The library that lets a program connect to and talk with a particular database.
In more detail
Each database has its own wire protocol, and the driver speaks it for you. Most drivers open direct TCP connections, while serverless drivers send queries over HTTP or WebSockets so they work where raw sockets are not allowed.
Example
The Next.js Edge runtime cannot open TCP sockets, so it needs an HTTP-based driver such as Neon's or PlanetScale's.Related terms
- connection pool — A set of already open database connections that a program reuses instead of opening a new one for each request.
- Edge runtime — A lightweight Next.js runtime based on V8 isolates and standard Web APIs, which starts almost instantly but cannot use most Node.js APIs.
- Neon — A hosted PostgreSQL service whose serverless driver sends queries over HTTP or WebSockets.
- PlanetScale — A hosted MySQL and PostgreSQL database service with a serverless driver that talks over HTTP.
Taught in
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture