MCPcopy Create free account
hub / github.com/dev-mastery/comments-api / closeDb

Function closeDb

__test__/fixtures/db.js:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17export async function closeDb () {
18 await connection.close()
19 await db.close()
20}
21
22export async function clearDb () {
23 await db.collection('comments').deleteMany({})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected