(code = 0)
| 126 | } |
| 127 | |
| 128 | export async function exitWithDbClose(code = 0) { |
| 129 | const { db } = await import('@/db') |
| 130 | if ('end' in db.$client) { |
| 131 | await Promise.resolve(db.$client.end()) |
| 132 | } else if ('close' in db.$client) { |
| 133 | await Promise.resolve(db.$client.close()) |
| 134 | } |
| 135 | process.exit(code) |
| 136 | } |
| 137 | |
| 138 | |
| 139 | export async function declareLocalType() { |
no outgoing calls
no test coverage detected