설치(react.ver)
npm i -D prisma
init
npx prisma init
prisma Extension 설치
planetscal create database
Scoop설치
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
Planetscale설치
scoop bucket add pscale https://github.com/planetscale/scoop-bucket.git
scoop install pscale mysql
scoop update pscale
pscale auth login
DB연결
pscale connect (db이름)
npx prisma db push
- Prisma ORM에서 사용하는 데이터베이스 스키마를 데이터베이스에 적용하는 명령어
pisma client(라이브러리)
npm i @prisma/client
- backend파일 위치에서 설치
실행
npx prisma studio