Prisma Login
- pscale auth login
Prisma Planet Scale Bridge 연결
- pscale connect (데이터 베이스 이름)
Prisma datbase 생성
- pscale database create (데이터 베이스 이름) --region gcp-asia-norteast3
Prisma datbase 푸쉬(schema.prisma의 변경 사항을 저장)
- npx prisma db push
Prisma studio 브라우저에서 열기
- npx prisma studio
Client 생성
npm install @prisma/client
import { PrismaClient } from "@prisma/client";
npx prisma generate
'지식 정리 📝' 카테고리의 다른 글
React Hook Form With Next.Js Test (0) | 2024.01.14 |
---|---|
Mui DatePicker 키보드 Event PreventDefault 하기 (0) | 2024.01.12 |
이미지 미리보기 & 삭제 & 순서 바꾸 바꾸기 (0) | 2024.01.11 |
PlanetScale DB 연결 법 (0) | 2024.01.10 |
PlanetScale CLI (zsh: command not found: brew Error 해결법) (0) | 2024.01.09 |