Specify the prisma/schema.prisma file when I execute npx electric-sql generate. #568
Replies: 2 comments 5 replies
-
Hi, We use prisma tooling as part of our client generation. But we don't run from your Prisma schema. The workflow is:
The generator script will pull down the electrified subset of actual your Postgres DDL schema (which you happen to have created/managed using Prisma) and then generate the client from that. Hope that makes sense! James |
Beta Was this translation helpful? Give feedback.
-
👋 we've been working the last month on a rebuild of the Electric server over at a temporary repo https://github.com/electric-sql/electric-next/ You can read more about why we made the decision at https://next.electric-sql.com/about We're really excited about all the new possibilities the new server brings and we hope you'll check it out soon and give us your feedback. We're now moving the temporary repo back here. As part of that migration we're closing all the old issues, PRs, and discussions. We really appreciate you taking the time to start this discussion! If it's still relevant in the new system, please reopen. |
Beta Was this translation helpful? Give feedback.
-
Firstly, thank you for creating this fantastic project.
Here's my situation: I have already generated the prisma/schema.prisma file using
npx prisma generate --schema="prisma/schema.prisma"
.Now, I want to generate
src/generated/client/index.ts
.When executing
npx electric-sql generate
, I received this log:npx prisma generate --schema=".electric_migrations_tmp_7uuABl/prisma/schema.prisma"
.So I got the wrong client which was generated by tmp schema.
Is there action I was doing wrong?
I would be very grateful If you could help me
Beta Was this translation helpful? Give feedback.
All reactions