mirror of
https://github.com/detleph/server.git
synced 2026-09-07 07:56:18 +02:00
boilerplate
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { PrismaClient } from '@prisma/client'
|
||||
|
||||
const prisma = new PrismaClient()
|
||||
|
||||
async function main() {
|
||||
// ... you will write your Prisma Client queries here
|
||||
console.log("Hello world!!")
|
||||
}
|
||||
|
||||
main()
|
||||
.catch((e) => {
|
||||
throw e
|
||||
})
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect()
|
||||
})
|
||||
Reference in New Issue
Block a user