P
Prisma7mo ago
iacta

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
iacta
iactaOP7mo ago
UP!
Nurul
Nurul7mo 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.
Want results from more Discord servers?
Add your server