Skip to content

chrisabrams/deno-with-prisma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example of how to use Prisma with Deno.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published