MCPcopy Create free account
hub / github.com/Effect-TS/effect / onCommitFailure

Function onCommitFailure

packages/sql/pg/src/PgClient.ts:531–532  ·  view source on GitHub ↗
(conn: Connection)

Source from the content-addressed store, hash-verified

529 * aborted is closed on pin release.
530 */
531const onCommitFailure = (conn: Connection): Effect.Effect<void> =>
532 Effect.ignore(conn.executeUnprepared("ROLLBACK", [], undefined))
533
534const makeConnection = (
535 connection: PgConnection.PgConnection,

Callers 1

makeWithTransactionFunction · 0.85

Calls 1

executeUnpreparedMethod · 0.45

Tested by

no test coverage detected