PrismaP
Prisma2mo ago
4 replies
Shurei

Mysql and Sqlite in datasource

Hey, in my project I would like to use sqlite for development, and mysql for production, except that :
// prisma/schema.prisma

/// ... ///
datasource db {
    provider = env("DATABASE_PROVIDER")
}
/// ... ///

It doesn't work and returns an error. I looked at the documentation and I don't see any mention of this. Is it possible to use both ?
Was this page helpful?