Ecto v1.1.0 Ecto.Pools.Poolboy

Start a pool of connections using poolboy.

Options

  • :pool_name - The name of the pool supervisor
  • :pool_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

Functions

Starts a pool of connections for the given connection module and options

Functions

start_link(conn_mod, opts)

Starts a pool of connections for the given connection module and options.