(
effect: Statement.Statement<A>
)
| 250 | ) |
| 251 | } |
| 252 | const execWithLockConnUnprepared = <A>( |
| 253 | effect: Statement.Statement<A> |
| 254 | ): Effect.Effect<ReadonlyArray<ReadonlyArray<any>>, SqlError> => { |
| 255 | if (!lockConn) return effect.values |
| 256 | const [query, params] = effect.compile() |
| 257 | return lockConn.await.pipe( |
| 258 | Effect.flatMap(([conn]) => conn.executeUnprepared(query, params, undefined)), |
| 259 | Effect.onError(() => lockConn.unsafeRebuild()) |
| 260 | ) |
| 261 | } |
| 262 | const execWithLockConnValues = <A>( |
| 263 | effect: Statement.Statement<A> |
| 264 | ): Effect.Effect<ReadonlyArray<ReadonlyArray<any>>, SqlError> => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…