Prisma

P

Prisma

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

Join

`@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

Cannot connect prisma Postgress in Docker container

HelLo I am using Nextjs and running postgress in docker container, and Here is my docker compose file `services: postgres: image: postgres:latest...
Solution:
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!

ERROR Nuxt Build Error: [commonjs--resolver] Invalid module ".prisma/client/index-browser"

Hi i'm using Nuxt 4 + Prisma and i'm trying to build it but there's an error on it. Here's th version: "@prisma/client": "^6.14.0", "@prisma/nuxt": "^0.3.0",...

Prisma Cloud Help

Hi there, got interesting question. have migrated my postgres to prisma however i can see the data on the TablePlus but cant retrieve or see it in the prisma studio. even if i add new row it does not show up on the prisma studio nor the query that i sent. how can i resolve this is there anybody seen this error before ?

Using increment on Decimal fields?

In the docs, it explicitly mentions atomic number operations like increment, decrement etc. only works on Float and Int. https://www.prisma.io/docs/orm/reference/prisma-client-reference#atomic-number-operations However, I tried it on a Decimal field, and it seems to work fine. Does that mean I can use it without any issues? Or are there any issues that could pop up? Part of my schema:...