Ecto.Adapters.SQL.Sandbox
Start a pool with a single sandboxed SQL connection.
Options
:shutdown
- The shutdown method for the connections (default: 5000) (see Supervisor.Spec)
Summary↑
handle_query(query, log, opts, s) | |
start_link(conn_mod, opts) | Starts a pool with a single sandboxed connections for the given SQL connection module and options |
Functions
Specs:
- start_link(module, Keyword.t) :: {:ok, pid} | {:error, any}
Starts a pool with a single sandboxed connections for the given SQL connection module and options.
conn_mod
- The connection module, seeEcto.Adapters.Connection
opts
- The options for the pool and the connections