Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
254
async
function
clearDB() {
255
await
prisma.tag.deleteMany({})
256
await
prisma.comment.deleteMany({})
257
await
prisma.post.deleteMany({})
258
await
prisma.user.deleteMany({})
259
}
260
261
clearDB()
262
.then(main)
Callers
1
script.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected