I want to use one database url for prisma introspe...
# orm-help
a
I want to use one database url for prisma introspect, and a different one for prisma generate -- specifically, im calling prisma introspect from my dev environment and prisma generate from prod after deployment. any tips on how i should do this?
r
Hey @Agrippa Kellum 👋 Could you explain to me the use case of this setup and where it would be required?
a
Sure. I'm developing on my laptop, which connects to my database via a public IP. I need to call
prisma introspect
and
prisma generate
in my dev environment for obvious reasons. And then I deploy to Google cloud functions, which connect to the database using a Unix socket. I could use the public IP but for various reasons, the socket is favorable.
r
prisma generate
doesn't require any endpoint to be set so you can call it from anywhere without an endpoint as well.