MCPcopy Create free account
hub / github.com/Y80/bmm / testDbConnect

Function testDbConnect

scripts/utils.mjs:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22export async function testDbConnect() {
23 try {
24 await dbExecute('SELECT 1;')
25 return true
26 } catch (err) {
27 console.error(err)
28 return false
29 }
30}
31
32export function redactDbConnectionUrl(connectionUrl = '') {
33 if (!connectionUrl || connectionUrl.startsWith('file:') || connectionUrl === ':memory:') {

Callers 7

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
db-init.mjsFile · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 1

dbExecuteFunction · 0.85

Tested by

no test coverage detected