(effect: (connection: PgConnection.PgConnection) => Effect.Effect<A, E>)
| 615 | // A pool of one: a lease that is not returned hangs the next borrow. |
| 616 | const pool = yield* PgPool.make({ ...(yield* poolConfig), maxConnections: 1 }) |
| 617 | const borrow = <A, E>(effect: (connection: PgConnection.PgConnection) => Effect.Effect<A, E>) => pool.use(effect) |
| 618 | |
| 619 | assert.deepStrictEqual( |
| 620 | (yield* borrow((connection) => connection.query("SELECT 1 AS ok"))).rows, |
no test coverage detected