Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 683 Bytes

File metadata and controls

33 lines (22 loc) · 683 Bytes

Prisma Postgres Example

This example provisions a Prisma Postgres project, database, and connection string using Alchemy.

Prerequisites

  1. Create a Prisma Postgres workspace service token.

  2. Export the token before running the example:

    export PRISMA_SERVICE_TOKEN="sk_..."
  3. Choose an Alchemy state password and export it (used to encrypt secrets locally):

    export ALCHEMY_PASSWORD="dev-password"

Usage

bun i
ALCHEMY_PASSWORD=${ALCHEMY_PASSWORD:-dev-password} bun run alchemy.run.ts

The script prints the generated database connection string to stdout.

To tear down the resources:

bun run destroy