Closed fishcakez closed 7 years ago
Ah this will raise if the connection isn't connected. Will need to write a special checkout. This can be unreliable, well a :pang
might be returned if the previous request timed out even if connection would be successful. Also need to think about what to do if inside a rolling back transaction.
@fishcakez it is also supposedly OK to handle failures in a task and handling exits, no?
Required a bit more code than I would like because had connection process callback return but it is simple and clear, and most code is tests. Will work with mariaex and postgrex without changes there. For https://github.com/elixir-ecto/ecto/issues/1789.