Prisma

P

Prisma

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

Join

Migrating from MariaDB to sqlite

I am currently migrating from mariadb to sqlite (both using prisma). I have multiple Decimal(20,8) values in my prisma schema file. Do i need to store the values as text or does the prisma sqlite client keep the high decimal precision?...

Unable to use s3 binaries distribution for corporated environments

Hi Im having issues on using the s3 binaries mirror http://prisma-builds.s3-eu-west-1.amazonaws.com/, its having issues returning 403 generate npx prisma generate ...

With the new changes can @prisma/client be a development dependency?

- There is new prisma-client generator - There is no more rust engine - There is custom output for generated prisma code so we no longer import anything from node_modules - Also adapters ...

AnswerOverflow alternative to manage Discord forum

Hey team, big fan of Prisma here. I noticed your forum is synced to the web with AnswerOverflow. I’ve been working on Paladin (using Prisma hehe), which provides a cleaner, searchable view of forums and makes moderation from the web easier. If it’s something that could help, you can check it out here: Paladin. It’s completely free to use and can either complement your existing setup or run on its own. :cowboy:...

Edge/Cloudflare issue with new ts client: `Accelerate not set up` even if we definitely set it up

This is our stack: - Nuxt 4 app - Deployed on Cloudflare Workers - Prisma ORM + Prisma Postgres + Prisma Accelerate ...

TypedSQL and case

I need to create a TypedSQL query but it doesn't seem to be able to read case. Do I need to @map all of the parts of the model to snake_case?

Why would Prisma modify completely different table in scope of migration?

I have the following model ```js model RouteText { id Int @id @default(autoincrement())...

Best practice for making manual database changes that are incompatible with completed migrations

After bringing up the issue with the AI bot here: https://discord.com/channels/937751382725886062/1420316663349252136 I've been trying to figure out the best course of action for running prisma migrations on a table that has been manually edited. From this discussion my understanding is that I shouldn't ever make a change to the table that doesn't make it forever backwards and forwards compatible or else I have to do a db reset every time. The need to reset my db every time A) won't work in production and B) means locally all of my test data is deleted which would take me forever to add back in especially if the schema is even slightly different (previous times I've tried to re import seed data if the data has any unused columns or tables the whole import fails instead of ignoring them). What's the solution? Don't ever make any changes manually? Make changes that are always backwards compatible? Always be okay with doing `db reset and just manually re add the data?...

Best practice for route protection in Next.js + Auth.js + Prisma (avoiding Prisma Edge runtime issue

Hi everyone, I’m a beginner with the Next.js + Auth.js + Prisma stack and I’m stuck on route protection. I already set up GitHub login successfully (https://github.com/harley61p/nextjs-authjs-prisma-example.git). Now I want to protect certain routes, so that only logged-in users can access them. ...

Bug on the cut feature

Can someone help me? When i cut the animation and add keyframes the keyframes didnt sync with the animation bar

Bun, Prisma & Rust free engine errors

Im using bun, sqlite & Prisma and trying to use the new rust free engine. However when I use the better-sqlite3 adapter im returned with this error:
error: The module 'better_sqlite3' was compiled against a different Node.js ABI version using NODE_MODULE_VERSION 127. This version of Bun requires NODE_MODULE_VERSION 137. Please try re-compiling or re-installing the module.
clientVersion: "6.16.2",
error: The module 'better_sqlite3' was compiled against a different Node.js ABI version using NODE_MODULE_VERSION 127. This version of Bun requires NODE_MODULE_VERSION 137. Please try re-compiling or re-installing the module.
clientVersion: "6.16.2",
Any clues if this ABI mismatch can be resolved? or if we can use Bun built in driver?...

What happened to prisma pulse?

I see there's an project on github for it but all the links to documentation no longer work. Is pulse still maintained?

Invalid module ".prisma" is not a valid package name imported from C:\source\nuxt\node_modules\@pris

I've pulled down the sample project from https://github.com/prisma/prisma-examples/tree/latest/orm/nuxt I haven't changed anything. When I try to build it with npm build, I get this error: Invalid module ".prisma" is not a valid package name imported from C:\source\nuxt\node_modules@prisma\client\default.js...

Using Rust free Prisma with Mongo

Is there any plan to add a database adapter for mongo in order to be able to use Prisma rust free with mongo

Prisma extension typing with metrics

How can I get proper typing when using dynamic client extensions, while also using the metrics preview feature? I'm currently on: Prisma v.4.16.2 In looking for answers I see this Github Issue that seems to indicate this is not possible, in which case I'd love some feedback about what's the best way forward: https://github.com/prisma/prisma/discussions/21123...

how to integrate prisma postgres with netlify in september?

All the instructions show an outdated interface where you can easily click Netlify integration–however, the interface I see just allows me to set up an OAuth app, which requires a callback URL. I don't have one.

PrismaClient does not exist on @prisma/client error

I have used this method to gen client forever but am getting this error for the first time
No description

schema engine error

I am getting the Schema engin error: I am developing Express backend and prisma + postgreSQL DB from online. I just tried several DBs from prisma.io, neon.com, render.com But I am still getting Schema Engine Error....

Error: Failed to invalidate Accelerate cache. Response was 400 Bad Request. {"code":"P6003","messag

Error: Failed to invalidate Accelerate cache. Response was 400 Bad Request. {"code":"P6003","message":"There is a hold on your account. Reason: planLimitReached. Please contact Prisma support if you think this is an error."} I have basic plan for 10$ and reached only 30k queries....