Skip to content

Commit 48bc34d

Browse files
authored
Document disconnect_all/3 (#322)
1 parent df77232 commit 48bc34d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/db_connection/connection_pool.ex

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ defmodule DBConnection.ConnectionPool do
66
77
You're not supposed to call any functions on this pool directly, but only pass this
88
as the value of the `:pool` option in functions such as `DBConnection.start_link/2`.
9+
10+
`disconnect_all/3`, which by default will result in connections being
11+
reestablished, can be called periodically to recycle checked-in connections
12+
after a maximum lifetime is reached. `Ecto SQL` users may find it at
13+
https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.html#disconnect_all/3
914
"""
1015

1116
use GenServer

0 commit comments

Comments
 (0)