MCPcopy Create free account
hub / github.com/prisma/prisma-examples / clearDB

Function clearDB

databases/cockroachdb/src/script.ts:254–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252}
253
254async function clearDB() {
255 await prisma.tag.deleteMany({})
256 await prisma.comment.deleteMany({})
257 await prisma.post.deleteMany({})
258 await prisma.user.deleteMany({})
259}
260
261clearDB()
262 .then(main)

Callers 1

script.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected