EctoIsolator (ecto_isolator v0.2.0)

Copy Markdown View Source

Prevents configured non-atomic operations while the current process is inside an Ecto transaction.

Summary

Functions

Raises EctoIsolator.Error when an adapter action is attempted while any configured repo is in a transaction.

Returns true when any configured repo reports an active transaction.

Functions

check!(adapter, action, opts \\ [])

Raises EctoIsolator.Error when an adapter action is attempted while any configured repo is in a transaction.

within_transaction?(repos \\ Config.repos())

Returns true when any configured repo reports an active transaction.