Kumaran
Kumaran
WWasp-lang
Created by Kumaran on 5/3/2024 in #đŸ™‹questions
Having multiple generator in schema.prisma
Hello, Currently if I add my entities in main.wasp then the generated schema.prisma has generator in it which has js as provider. I am working on a project which has both wasp and python in it. And I would like to access db from both wasp code and python code. My plan is to define all the entities/tables needed by both python and wasp in the main.wasp file. Wasp will take care of generating client for node. If you can provide a way to add following generator somehow to generated schema.prisma
generator pyclient {
provider = "prisma-client-py"
}
generator pyclient {
provider = "prisma-client-py"
}
then I can create client for python using following simple command:
prisma generate --schema=./app/.wasp/out/db/schema.prisma --generator="prisma-client-py"
prisma generate --schema=./app/.wasp/out/db/schema.prisma --generator="prisma-client-py"
I am not sure whether this feature exists already and I couldn't find it in docs. If yes, please point me to the docs else please help me in figuring this out. Thanks in advance.
14 replies
WWasp-lang
Created by Kumaran on 11/3/2023 in #đŸ™‹questions
Can I host the frontend in github pages?
Hello. I have a doubt. Can I host the frontend in github pages? Please let me know whether I can or not.
7 replies