SelectoMix.Connection (selecto_mix v0.4.2)

Adapter-aware connection helpers for Selecto mix tasks.

Summary

Functions

Connect through the selected adapter.

Best-effort disconnect for short-lived task connections.

Parse a database URL into generic connection options.

Connect, run a function, then best-effort disconnect.

Functions

connect(adapter, opts)

Connect through the selected adapter.

disconnect(conn, original_opts \\ nil)

Best-effort disconnect for short-lived task connections.

parse_database_url(url)

Parse a database URL into generic connection options.

with_connection(adapter, opts, fun)

Connect, run a function, then best-effort disconnect.