Hey, is there any way I can do something like this...
# orm-help
s
Hey, is there any way I can do something like this:
Copy code
# schema.prisma

datasource db {
    provider = "postgresql"
    url      = "file:./test.db"
}
For postgres? I need to create a mock db for tests in order to not pollute production database. Right now I am getting this error (which is clear):
Copy code
Error validating datasource `db`: The URL for datasource `db` must start with the protocol `postgresql://`
r
You need to use an actual DB for testing against Postgres. This might help.
s
So it’s basically adding a new schema where we can store the data and tear it down once done. Hmm interesting, I’ll check it out thanks!
💯 1