RobertCraigie / prisma-client-py

Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
https://prisma-client-py.readthedocs.io
Apache License 2.0
1.85k stars 81 forks source link

schema.prisma on custom path #940

Open tmax22 opened 5 months ago

tmax22 commented 5 months ago

currently this lib searches for schema.prisma on /, is it possible to specify custom path such /my-schemas/schema.prisma?

jonathanblade commented 5 months ago

@tmax22 prisma generate —-schema=./my-schemas/schema.prisma

tmax22 commented 5 months ago

no it does not work. in my case --schema=./my-schemas/schema.prisma reference to javascript worksapce, and this command just re-generates the javascript client in node_modules folder instead of generation python client on python venv

jonathanblade commented 5 months ago

If you have both clients (js and python) installed: /path/to/python/venv/bin/prisma generate —-schema=./my-schemas/schema.prisma