aindrajaya / aindrajaya/blog

Install and Generate the Prisma Client

Offen
#6 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @aindrajaya Auf GitHub ansehen
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.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.