Install and Generate the Prisma Client
Offen
documentation
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.