ash_cubdb/lib/ash_cub_db/application.ex
James Harton 74d878b70e
All checks were successful
continuous-integration/drone/push Build is passing
feat: create and read works.
2023-09-29 20:30:42 +13:00

18 lines
409 B
Elixir

defmodule AshCubDB.Application do
@moduledoc false
use Application
@doc false
@impl true
def start(_type, _args) do
children = [
{DynamicSupervisor, strategy: :one_for_one, name: AshCubDB.DynamicSupervisor},
{Registry, keys: :unique, name: AshCubDB.Registry}
]
opts = [strategy: :one_for_one, name: AshCubDB.Supervisor]
Supervisor.start_link(children, opts)
end
end