aindrajaya / aindrajaya/blog

Install and Generate the Prisma Client

Aperta
#6 0 commenti 0 reazioni 1 assegnatario Rivendicata da @aindrajaya Vedi su GitHub
documentation
Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Before you can access your database from Next.js using Prisma, you first need to install Prisma Client in your app. Prisma Client is tailored to your own schema. You can follow this step:
- [ ] `npm install @prisma/client` to install Prisma Client in your app
- [ ] `npx prisma generate` needed for update it every time your Prisma schema file is changing
- [ ] You'll use a single `PrismaClient` instance that you can import into any file where it's needed. The instance will be created in a `prisma.ts` file inside the `lib/` directory.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.