Prisma2mo ago

Generate prism client

I already have a MySQL database, and with data inside, how can I generate my prism in my app without affecting this data?
2 Replies
iacta2mo ago
Nurul2mo ago
You could introspect your database to generate the schema.prisma file. Did you had a chance to look at this guide, which demonstrates how you can get started with an existing database (not starting from scratch) https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-postgresql
Add Prisma ORM to an existing project using TypeScript and PostgreS...
Learn how to add Prisma ORM to an existing TypeScript project by connecting it to your PostgreSQL database and generating a Prisma Client for database access.