(effect: Statement.Statement<A>)
| 242 | }) |
| 243 | |
| 244 | const execWithLockConn = <A>(effect: Statement.Statement<A>): Effect.Effect<unknown, SqlError> => { |
| 245 | if (!lockConn) return effect |
| 246 | const [query, params] = effect.compile() |
| 247 | return lockConn.await.pipe( |
| 248 | Effect.flatMap(([conn]) => conn.executeRaw(query, params)), |
| 249 | Effect.onError(() => lockConn.unsafeRebuild()) |
| 250 | ) |
| 251 | } |
| 252 | const execWithLockConnUnprepared = <A>( |
| 253 | effect: Statement.Statement<A> |
| 254 | ): Effect.Effect<ReadonlyArray<ReadonlyArray<any>>, SqlError> => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…