Skip to main content

Prisma ORM


설치

yarn add -D prisma
yarn add @prisma/client

설정

prisma/schema.prisma
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "<provider>"
url = env("DATABASE_URL")
}
.env
DATABASE_URL=<provider>://<user>:<password>@<host>:<port>/<database>?<option>