P
Prismathis hour
stamura

Can we commit the generated code thanks to Rust-free ORM?

First of all, thanks for the v6.16 release! https://github.com/prisma/prisma/releases/tag/6.16.0 Does this release allows us to commit the generated code to Git? (I've been waiting for this because I want to use TypedSQL without having to set up a DB in the CI environment) The reason I'm asking is that when I generated code in a Docker environment and a Mac environment, there were only very slight differences. There are only minor differences in the contents of generated/internal/class.ts, and all other code appears to be exactly the same. While these differences exist, I still can't commit the code - do you have any good solutions or idea for this? My code is as follows:
generator client {
provider = "prisma-client"
output = "../src/generated"
engineType = "client"
previewFeatures = ["strictUndefinedChecks"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client"
output = "../src/generated"
engineType = "client"
previewFeatures = ["strictUndefinedChecks"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
import { PrismaPg } from '@prisma/adapter-pg'
import { appConfig } from '@/appConfig.js'
import { PrismaClient } from '@/generated/client.js'

const adapter = new PrismaPg({ connectionString: appConfig.databaseUrl })

export const prisma = new PrismaClient({ adapter })
import { PrismaPg } from '@prisma/adapter-pg'
import { appConfig } from '@/appConfig.js'
import { PrismaClient } from '@/generated/client.js'

const adapter = new PrismaPg({ connectionString: appConfig.databaseUrl })

export const prisma = new PrismaClient({ adapter })
GitHub
Release 6.16.0 · prisma/prisma
Today, we are excited to share the 6.16.0 stable release 🎉 🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X! Prisma ORM This section contains all ...
2 Replies
Prisma AI Help
Prisma AI Helpthis hour
You selected to wait for the human sages. They'll share their wisdom soon. Grab some tea while you wait, or check out #ask-ai if you'd like a quick chat with the bot anyway!
stamura
stamuraOPthis hour
↑difference between linux & mac
No description

Did you find this page helpful?