2019-07-14 11:47:06 +00:00
|
|
|
defmodule Backend.Repo do
|
|
|
|
use Ecto.Repo,
|
|
|
|
otp_app: :backend,
|
2019-08-07 09:41:30 +00:00
|
|
|
adapter: Ecto.Adapters.Postgres,
|
|
|
|
timeout: 25_000
|
2019-07-14 13:40:54 +00:00
|
|
|
|
2019-07-23 12:20:34 +00:00
|
|
|
use Paginator
|
|
|
|
|
2019-07-14 13:40:54 +00:00
|
|
|
def init(_type, config) do
|
|
|
|
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
|
|
|
|
end
|
2019-07-14 11:47:06 +00:00
|
|
|
end
|