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

Taught in

References