Current section

Files

Jump to
ecto_watch lib test_repo.ex
Raw

lib/test_repo.ex

defmodule EctoWatch.TestRepo do
@moduledoc false
use Ecto.Repo,
otp_app: :ecto_watch,
adapter: Ecto.Adapters.Postgres
def init(_type, config) do
{:ok,
Keyword.merge(
config,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "ecto_watch",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
)}
end
end