envs

Prisma Postgres — database connection

prisma/postgres · version 1

envs add prisma/postgres

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
DATABASE_URL required secret Pooled, and it carries the credentials in the string. Four schemes are documented depending on whether you go direct or through Accelerate, whose form embeds an API key in the URL.. Shape ^(postgres|postgresql|prisma|prisma\+postgres)://.+$. where to get it
DIRECT_URL optional secret Bypasses the pooler, which migrations and the CLI need.. Shape ^postgres(ql)?://.+$. where to get it
DIRECT_DATABASE_URL optional secret The same idea under the name Accelerate expects when the pooled string uses the prisma scheme rather than a Postgres one.. Shape ^postgres(ql)?://.+$. where to get it

The JSON the CLI reads