Prisma

P

Prisma

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

Join

Delete prisma.io account

How can I delete my prisma account? I don’t need it anymore. Thanks!

Module not found errors after switching to 6.7.0 rust free pg

Hi, I keep getting these errors when using the new rust free pg version of Prisma: ``` ⨯ ./lib/generated/prisma/client.ts:21:1 Module not found: Can't resolve './enums.js' 19 | import * as Prisma from "./internal/prismaNamespace.js"...

PrismaClientKnownRequestError

I'm getting error that table can't be found. It's not working even after migrate dev --name users and generate commands. model User { id Int @default(autoincrement()) @id...

What's the purpose of this unit test?

I'm looking into testing database operations so I'm reading this blog post on unit testing. The first unit test written is this: ```ts // src/quotes/tags.service.test.ts...

Missing declaration file with `queryCompiler`?

Hey folks, I'm using the newest setup with 6.7.0: ```prisma datasource db { provider = "sqlite"...

After Prisma v6.7.0 upgrade and huge migration imports, I am facing this typedSql-related error

Unable to solve this problem, is it normal for these typed SQL generated files to have duplicate properties? For example, the main errors are duplicate properties in the generated TS file e.g (see how id field is here twice, along with various other fields): export namespace titleDescListings { export type Parameters = [userId: string, type: string, take: number, skip: number] export type Result = {...
No description

PrismaClientValidationError: Prisma Client was configured to use both the `adapter` and Accelerate,

I am getting this error in my Next.js turbo repo app. I am using 6.7.0 // Here is my code const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL });...

Issues with multiple folder schemas.

Hey all, I am currently using the "prismaSchemaFolder" preview feature, and I went to do: bunx prisma generate but I am now seeing the following: ``` Environment variables loaded from .env...

Issue with Prisma D1 Adapter and Cloudflare Workers: fs.readdir Not Implemented

I’m currently building a website using Next.js, and I am using Prisma ORM to manage a Cloudflare D1 database. However, I’ve encountered an issue. Previously, when I was using Prisma to manage a PostgreSQL database with Next.js on Cloudflare Workers, everything worked perfectly. Recently, I wanted to switch to using Cloudflare’s D1 database, but I’ve run into a problem....

error with output and accelerate on firebase functions

i update my prisma file adding the output generator client { provider = "prisma-client-js" output = "../generated/prisma" }...

Wrong path for finding generated TS queryCompiler

I have prisma in a package in my monorepo. So in backend/ I have all the prisma setup. In backend/prisma/schema.prisma I have my schema: ``` generator client { provider = "prisma-client-js"...

Access dev.db from the command line

I'm trying to access the Prisma database that my JavaScript App uses from the command line. I'm a NOOB with Prisma. I tried sqlite on Ubuntu and it complained that the database was encrypted. Can I access/manipulate a Prisma database from a Linux command line, and if so how? I suspect that has already been answered somewhere ...

prisma generate doesn't work 6.7.0

When I do npx prisma it generate this error: Cannot read properties of undefined (reading 'filter') ``` generator client {...
No description

With PrismaORM 6.6 "DATABASE_URL" Cannot Be Found

I'm using SvelteKit. I've updated the schema to use the new ESM client build, but unless I directly export DATABASE_URL prior to running the image or even the local build, it runs into errors: ```error: Environment variable not found: DATABASE_URL. --> schema.prisma:9 | 8 | provider = "mysql"...

How to access the DMMF after version 6.6.0?

Hi, I had a script I was using that reading from Prisma.DMMF, but since the past couple updates, this code path no longer seems accessible... Is there a new way to work with the DMMF? Otherwise it's quite complicated to interact with the structure of your own database for anything...

Module build failed: UnhandledSchemeError: Reading from "cloudflare:sockets" is not handled

For some reason, when I use the @prisma/adapter-pg and pass my Postgres connectionString, I get the following error? What could cause this? I'm just running locally using next dev? ``` ○ Compiling /instrumentation ... ⨯ cloudflare:sockets...

prisma db restore .sql file

Is it possible to restore on prisma postgress db a .sql file? I cannot generate a .bak file

Prisma migrate deploy only first N migrations

Is there a way to run prisma migrate deploy for only first n migrations?

Spreading data object with foreing keys in update() does not allow unchecked input

Basically the title summarizes my problem. We have a model that has category relation so it has categoryId as a foreign key. We handle type safety and validation using typebox and then spread the input object in update's data object. Like this: ```ts await prisma.product.update({...