tarlatan
    Preparing search index...

    Function transaction

    • Runs body inside one write transaction and never leaves it open (review finding F1). The bracket is uninterruptible except for body itself. If body fails or is interrupted, the transaction is rolled back and the body's failure is returned. If COMMIT fails, the transaction is rolled back if still open and the COMMIT failure is returned. A failed ROLLBACK is returned rather than swallowed, since the connection's state is then unknown.

      Type Parameters

      • A
      • E
      • EB

      Parameters

      Returns Effect<A, E | EB>