New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prisma generate on binary in venv generates js client instead? #961
Comments
Hey @Bewinxed, I think you have a typo in your schema file, you have to change generator client {
provider = "prisma-client-py"
interface = "async"
recursive_type_depth = 3
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
} |
Oh godbless your soul I’ll try this
…On Wed, 15 May 2024 at 5:36 PM Robert Craigie ***@***.***> wrote:
Hey @Bewinxed <https://github.com/Bewinxed>, I think you have a typo in
your schema file, you have to change provider = "prisma-client-js" to provider
= "prisma-client-py"
generator client { provider = "prisma-client-py" interface = "async" recursive_type_depth = 3}
datasource db { provider = "postgresql" url = env("DATABASE_URL")}
—
Reply to this email directly, view it on GitHub
<#961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFY5BKVU45HGAALPWREJODZCNXFDAVCNFSM6AAAAABHLJGGFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSG4YTSMZWGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
my project structure
When I invoke prisma generate, even by calling the binary in .venv directly, it installs the @prisma library, then creates node_modules and generates the client in node_modules
I have made sure to uninstall prisma from global modules
from prisma import Prisma() does not work.
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
How to reproduce
Expected behavior
generate prisma client in python
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: