Ecto.Pools.Poolboy
Start a pool of connections using poolboy
.
Options
:size
- The number of connections to keep in the pool (default: 10):lazy
- When true, connections to the repo are lazily started (default: true):max_overflow
- The maximum overflow of connections (default: 0) (see poolboy docs):shutdown
- The shutdown method for the connections (default: 5000) (see Supervisor.Spec)
Summary↑
start_link(conn_mod, opts) | Starts a pool of connections for the given connection module and options |
Functions
Starts a pool of connections for the given connection module and options.
conn_mod
- The connection module, seeEcto.Adapters.Connection
opts
- The options for the pool and the connections