Prisma

P

Prisma

The official Discord server of Prisma! Find us online at prisma.io

Join

No sign of Branching / Environments

I am new to Prisma Postgress (from Neon), and I don't see any sign of branching / db environments in the dashboard / console. On vercel I have a staging branch and a main branch. How do I deploy these to separate dbs under the same project? Ordo I have to create two projects? ...

Console errors. Dashboard frozen on web.

I just joined Prisma Postgres some minutes ago, and I am already disappointed. The dashboard is frozen and I can't click or scroll, or do anything. When I refresh, it works for like 3 seconds then freezes again. See screenshot....
No description

TypedSQL - Boolean Argument Documentation

According to the docs, boolean values are converted to TINYINT(1) in MySQL, https://www.prisma.io/docs/orm/overview/databases/mysql#native-type-mapping-from-prisma-orm-to-mysql. However, TypedSQL converts boolean js values to strings, like 'true' and 'false'. This leads to consternation when trying to craft where clauses.

Create query causes whole server to hang

Hi, we have two rather complex and deeply nested create queries in our project that when ran cause our complete Next.js server to hang. It doesn't crash with any error, it just never resolves and stops everything else from working. I am already looking into what specific part of the queries are causing this, but I wonder if its a known issue that it causes the whole server to hang....

Still not solved: Prisma can't find multi-file-separated models in 6.14.0

I am on version 6.14.0, followed all the instructions to add a typescript config file and remove the package.json instructions and ended up with this setup where it is not finding any of my models and it just dropped all my tables when migrating. Here is my setup: This is my exact file structure: ``` yda-web/...

`@prisma/client/runtime` size is big(bigger than rust-engine version)

Hi! I have a question about a preview feature no-rust-engine . We use Prisma ORM on AWS Lambda function. I updated Prisma version to 6.14.0 from 6.6.0 and setup configuration to use runtime, hoping that this will reduce the total size. Turned out the size actually increased. As seen in the screenshot, the node_modules size is around 100MB. I narrowed down the directory and found that runtime has many files that are not relevant to the project (we use postgres) should these be removed manually to reduce the total size? ...
No description

Why does Prisma add :5432 to Unix socket paths for Cloud SQL connection

Hi! I'm trying to use Prisma with Google Cloud SQL Unix sockets on Cloud Run, and I've discovered that Prisma is automatically appending :5432 to my Unix socket path, which breaks the connection. What I'm using: bashDATABASE_URL="postgresql://postgres:password@localhost/postgres?host=/cloudsql/project:region:instance" What Prisma tries to connect to:...

Need Help

I am using prisma orm. Locally everything works fine but when i deploy my project to the vercel and test it returns this error. What is the issue and how to solve this? my project is in next js
No description

Cannot find any tables with multi-file-separated models in newest version

I've just updated to version 6.14.0, followed all the instructions to add a typescript config file and remove the package.json instructions and ended up with this setup where it is not finding any of my models and it just dropped all my tables when migrating. Here is my setup: This is my exact file structure: ``` yda-web/...

Dealing with database timeouts with prisma and vercel fluid compute

Hello, we've been getting timeout errors on our production vercel deployment: `` PrismaClientKnownRequestError: Invalid prisma.store.findUnique()` invocation:...

.prisma directory no longer exists in node_modules with prisma-client-js generator

Hi, I upgraded from Prisma 6.10.1 to 6.14.0 but maintained my generator as prisma-client-js However, I noticed that the .prisma directory in node_modules no longer exists. I needed this for use in my monorepo for getting type support in my frontend apps with Vite. I had this in my Vite config: ".prisma/client/index-browser": resolve( __dirname,...

I'm trying the Rust-free version

Hello, I'm trying to use the "Rust Free" version of Prisma in my NestJS project. I followed this blog post: https://www.prisma.io/blog/try-the-new-rust-free-version-of-prisma-orm-early-access Now I'm getting a strange error that I can't seem to identify. Here's the error it generates:...

URGENT: HELP, our tables are not loading in Production

The database disappeared, no deployments in our side, and we can't see anything in the server logs.

TypedSQL Apostrophe

When I pass an apostrophe in a string argument to a typed sql query, i don't get the expected results. ```SQL -- selectBook.sql SELECT * FROM book AS b WHERE b.name LIKE CONCAT('%', ? ,'%');...

CI cache?

I run tsc check and a custom script to seed data in a GHA. They break if I dont have prisma generate, which i run with dotenv -e .env.local -- pnpm prisma generate --no-hints && dotenv -e .env.local -- pnpm exec prisma generate --sql --no-hints Question is: what do I need to cache here? My node_modules is already cached, so do I need to run this everytime? ...

Is something like this possible?

Is something like this possible with prisma: ```sql SELECT a.*, s.app_status FROM application AS a JOIN (...

Prisma does not recognize Json type even after migrate/generate

Already ran prisma generate and migrate, in my database (postgres) it recognizes descriptor column as Json
No description

Where can I find the ResponseSize slider?

I'm on the Pro plan and would like to adjust response sizes from 5MB to 10MB as mentioned here: pris.ly/configure-limits I cannot find this slider anywhere!...
No description

Can't use npx prisma db seed

Hello, this is what I get from the command I installed ts-node and added in package.json: ```ts "prisma": { "seed": "ts-node prisma/seed.ts"...
No description