()
| 112 | * Get a client from the pool for transactions. |
| 113 | */ |
| 114 | export async function getClient(): Promise<PoolClient> { |
| 115 | const p = getPool(); |
| 116 | return p.connect(); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Perform a health check. If the pool can't serve a trivial query, |
no test coverage detected