Function
closeConnection
(c: any, dialect: Dialect)
Source from the content-addressed store, hash-verified
| 104 | } |
| 105 | |
| 106 | async function closeConnection(c: any, dialect: Dialect): Promise<void> { |
| 107 | try { |
| 108 | if (dialect === 'mysql') await c.end(); |
| 109 | else if (dialect === 'postgres') await c.end(); |
| 110 | else if (dialect === 'sqlite') c.close(); |
| 111 | } catch { /* ignore */ } |
| 112 | } |
| 113 | |
| 114 | // ───────────────────────────────────────────────────────────────────────────── |
| 115 | // db_schema |
Tested by
no test coverage detected