13 lines
264 B
Elixir
13 lines
264 B
Elixir
defmodule Backend.Repo do
|
|
use Ecto.Repo,
|
|
otp_app: :backend,
|
|
adapter: Ecto.Adapters.Postgres,
|
|
timeout: 25_000
|
|
|
|
use Scrivener, page_size: 20
|
|
|
|
def init(_type, config) do
|
|
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
|
|
end
|
|
end
|