mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
17 lines
330 B
TypeScript
17 lines
330 B
TypeScript
|
|
import { PrismaClient } from '@prisma/client'
|
||
|
|
|
||
|
|
const prisma = new PrismaClient()
|
||
|
|
|
||
|
|
async function main() {
|
||
|
|
// ... you will write your Prisma Client queries here
|
||
|
|
}
|
||
|
|
|
||
|
|
main()
|
||
|
|
.then(async () => {
|
||
|
|
await prisma.$disconnect()
|
||
|
|
})
|
||
|
|
.catch(async (e) => {
|
||
|
|
console.error(e)
|
||
|
|
await prisma.$disconnect()
|
||
|
|
process.exit(1)
|
||
|
|
})
|