Prisma ORM
설치
- Yarn
- npm
yarn add -D prisma
yarn add @prisma/client
npm install -D prisma
npm install @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>