Ecto.Adapters.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)
Summary↑
start_link(conn_mod, opts) | Starts a pool of connections for the given connection module and options |
stop(pool) | Stop the pool |
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
Stop the pool.