Effect CommunityEC
Effect Community2mo ago
4 replies
danielo515

Explanation of `withTransaction` Internal Mechanism in SQL Client

Can osmeone explain me how
withTransaction
from sql client works? Not the API, I mean the internal mechanism that makes possible the JSDOc claim:
  /**
   * With the given effect, ensure all sql queries are run in a transaction.
   */
  readonly withTransaction: <R, E, A>(
    self: Effect<A, E, R>
  ) => Effect<A, E | SqlError, R>
Was this page helpful?