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
Can I generate prisma-client-py
with the Node prisma
CLI?
#159
Comments
It should be possible to generate the python client using It should be noted that you will have to For additional context the |
I honestly did not try (as I have no |
Ah okay, I should explicitly document that then, it should work in theory and I think I've tried it in the past with success. |
Considering that the pip installed CLI can not run the JS Client generation, I think that might be a valid use case (while we try to figure that out and fix it). |
I forgot that I explicitly check the prisma version before generating, this does make it more difficult to use the Node CLI to generate the Python client but it's still possible, you just have to explicitly pass the version if the Python Client is not on the latest version, e.g.
I will also improve the version check error message to include the aforementioned fix. |
However, I did encounter prisma/prisma#10573 while testing which makes the above workaround more difficult to use. |
Is there a way to use
npx prisma generate
to generate the Python client instead of using the package CLI via pip withpip install -U prisma
?The text was updated successfully, but these errors were encountered: