Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 654 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 654 Bytes

Prisma on Deno

An example of Deno 2 with Prisma, using Sqlite as the database.

Development

Create .env file

Add the following to the .env file:

DATABASE_URL="file:./dev.db"

Setup

deno install # (Follow direcitons in command line if you have to given additional permissions)
deno task prisma:generate

Run test to see Prisma on Deno

This is a basic example of how to use Prisma on Deno with TypeScript types.

deno task test

Notes

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.