- I do not know if it would be possible while keeping all niceties of
SQL.Sandbox(especially fact that everything is ran within single transaction, which allows asynchronous testing with Postgres). - There is documentation of
Ecto.Adapters.SQL.Sandbox. - Yes, Ecto checks out new connection from pool for each insert unless you will do it on your own via
Repo.transactionorRepo.checkout - It depends on the task. You can even test it synchronously if you want. There is no “one-fit-them-all” solution.


















