(effect: Statement.Statement<A>)
| 315 | }) |
| 316 | |
| 317 | const execWithLockConn = <A>(effect: Statement.Statement<A>): Effect.Effect<unknown, SqlError> => { |
| 318 | if (!lockConn) return effect |
| 319 | const [query, params] = effect.compile() |
| 320 | return lockConn.await.pipe( |
| 321 | Effect.flatMap(([conn]) => conn.executeRaw(query, params)), |
| 322 | onErrorRebuildLockConn |
| 323 | ) |
| 324 | } |
| 325 | const execWithLockConnUnprepared = <A>( |
| 326 | effect: Statement.Statement<A> |
| 327 | ): Effect.Effect<ReadonlyArray<ReadonlyArray<any>>, SqlError> => { |
nothing calls this directly
no test coverage detected