prisma-client-py icon indicating copy to clipboard operation
prisma-client-py copied to clipboard

schema.prisma on custom path

Open tmax22 opened this issue 10 months ago • 3 comments

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

tmax22 avatar Apr 15 '24 08:04 tmax22

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

jonathanblade avatar Apr 18 '24 21:04 jonathanblade

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

tmax22 avatar Apr 21 '24 08:04 tmax22

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

jonathanblade avatar Apr 22 '24 06:04 jonathanblade