Is it possible to compose a database url string in...
# orm-help
a
Is it possible to compose a database url string in
schema.prisma
file from several ENV variables? Something like this:
Copy code
datasource db {
  provider = "postgresql"
  url      = "postgresql://$DB_USERNAME:$DB_PASSWORD@localhost:5432/$DB_NAME"
}
I've also posted a discussion about this here https://github.com/prisma/prisma/discussions/12600
n
Hey Alexey 👋 Answered in Discussion
👍 1