Packages

This library wraps Ecto to provides default functions to access and store data.

Current section

Files

Jump to
lazy_context lib examples repo.ex
Raw

lib/examples/repo.ex

defmodule LazyContext.Examples.Repo do
use Ecto.Repo,
otp_app: :lazy_context,
adapter: Ecto.Adapters.Postgres
# @doc """
# Load poolsize from env at run time (even in a release), as it needs a type convertion
# """
# def init(_, opts) do
# {:ok, Keyword.put(opts, :pool_size, String.to_integer(System.get_env("POOL_SIZE") || "10"))}
# end
end