(
effect: Statement.Statement<A>
)
| 333 | ) |
| 334 | } |
| 335 | const execWithLockConnValues = <A>( |
| 336 | effect: Statement.Statement<A> |
| 337 | ): Effect.Effect<ReadonlyArray<ReadonlyArray<any>>, SqlError> => { |
| 338 | if (!lockConn) return effect.values |
| 339 | const [query, params] = effect.compile() |
| 340 | return lockConn.await.pipe( |
| 341 | Effect.flatMap(([conn]) => conn.executeValues(query, params)), |
| 342 | onErrorRebuildLockConn |
| 343 | ) |
| 344 | } |
| 345 | |
| 346 | const acquireLock = sql.onDialectOrElse({ |
| 347 | pg: () => { |
nothing calls this directly
no test coverage detected