An example of Deno 2 with Prisma, using Sqlite as the database.
Add the following to the .env
file:
DATABASE_URL="file:./dev.db"
deno install # (Follow direcitons in command line if you have to given additional permissions)
deno task prisma:generate
This is a basic example of how to use Prisma on Deno with TypeScript types.
deno task test
The prisma/patch.ts
file is needed to be modify the TypeScript definition from Prisma so Deno is able to resolve some of the types for the Prisma client.