Current section

Files

Jump to
db_connection lib db_connection app.ex
Raw

lib/db_connection/app.ex

defmodule DBConnection.App do
@moduledoc false
use Application
import Supervisor.Spec
def start(_, _) do
children = [
supervisor(DBConnection.Task, []),
supervisor(DBConnection.Ownership.ProxySupervisor, []),
supervisor(DBConnection.ConnectionPool.PoolSupervisor, []),
worker(DBConnection.Watcher, [])
]
Supervisor.start_link(children, strategy: :one_for_all, name: __MODULE__)
end
end