Prisma custom flow

Hello we are trying to make something like our prisma flow like we want to controll when something happend like we want to controll when generate client and when creating migrations etc... It is possible to do it? Thanks
3 Replies
Nurul
Nurul2mo ago
Hey 👋 Could you please elaborate? I didn't understand what you are trying to achieve.
Matusko167
Matusko1672mo ago
Yea sure so we want to have custom cycle of that what happend inside commands like prisma generate or prisma db push or prisma db migrate, not full custom but we want to call it inside our code. It is possible to do something like that?
Nurul
Nurul2mo ago
Oh you mean to run these commands programatically from inside the code. This is not officially supported yet. We have a feature request here, in which there are a few workarounds mentioned that might help https://github.com/prisma/prisma/issues/4703
GitHub
Prisma Migrate: programmatic access to CLI commands (deploy, `res...
Problem It would be nice to have a way to run the migrate programmatically. I am running into an issue where my api is using lambdas (serverless) and my database is only accessible from within an a...
Want results from more Discord servers?
Add your server
More Posts
Prisma RLS using transactionsHey guys, I hope to get some help here 🙂 I want to implement RLS using a prisma client extension (Typing custom property on a methodI want to add a custom property to a findMany on a particular model to ensure that the user has accePrisma 5.12.1 client has errors accessing postgress db when using with cloudflare workers and the nePrisma 5.12.1 client has errors accessing postgress db when using with cloudflare workers and the ne`PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime` errorI'm having an error when trying to bundle my application with ts up ``` PrismaClientInitializationEForeign key constraint failed on the field: `anime_season_fkey (index)`Getting this error when I try to create a new db entry in prisma, no clue why. Using Postgres rismaDelete Prisma ModelsModels.py deosn't have the added migration even though its in the migrations folder and was applied can i pass a model to a type, the same way i pass a type to a model in prisma schema ?i have a one to one relation in prisma schema and i want to switch it with a type instead of creatinPass current user id to PostgresIn our application we've added a trigger that logs changes to tables. As part of the logs we want toPrisma migrate deploy fails in GitHub actionsWe have an application that uses Prisma for the ORM and migrations Every time we do prisma migrate dPrisma Accelerate: ConnectorError. SUPABASE[2024-05-21T05:34:31.404Z] GET http://localhost:3001/api/banners Error fetching Banners: Invalid `p