Safely Share Connections with Allowances
Learn how to work with the limitations of shared mode.
We'll cover the following
Allowances
Ecto provides a mechanism called allowances to work around the limitations of shared mode. This allows us to pick and choose which processes we share our database connection with. We can keep a single database connection for all processes needed for our test and ensure that the database state is isolated from any other tests running concurrently.
Let’s go back to the test we looked at in the last section.
Get hands-on with 1400+ tech skills courses.