Ecto.Repo.checked_out-question-mark

You're seeing just the callback checked_out-question-mark, go back to Ecto.Repo module for more information.

Specs

checked_out?() :: boolean()

Returns true if a connection has been checked out.

This is true if inside a Ecto.Repo.checkout/2 or Ecto.Repo.transaction/2.

Examples

MyRepo.checked_out?
#=> false

MyRepo.transaction(fn ->
  MyRepo.checked_out? #=> true
end)

MyRepo.checkout(fn ->
  MyRepo.checked_out? #=> true
end)