15
lib/bds/application.ex
Normal file
15
lib/bds/application.ex
Normal file
@@ -0,0 +1,15 @@
|
||||
defmodule BDS.Application do
|
||||
@moduledoc false
|
||||
|
||||
use Application
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
BDS.Repo
|
||||
]
|
||||
|
||||
opts = [strategy: :one_for_one, name: BDS.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
||||
5
lib/bds/repo.ex
Normal file
5
lib/bds/repo.ex
Normal file
@@ -0,0 +1,5 @@
|
||||
defmodule BDS.Repo do
|
||||
use Ecto.Repo,
|
||||
otp_app: :bds,
|
||||
adapter: Ecto.Adapters.SQLite3
|
||||
end
|
||||
Reference in New Issue
Block a user