#development #elixir #phoenix

Sometimes you want to find out information about your Repo configuration.

You can dive into the config files and ENV variables to sort out what's being used… or you can take the easier path!

In an iex session (that has your Repo available), access the configuration via Repo.config/0!

 1$ iex -S mix phx.server
 2
 3iex> MyApp.Repo.config()
 4[
 5  telemetry_prefix: [:pento, :repo],
 6  otp_app: :pento,
 7  timeout: 15000,
 8  username: "postgres",
 9  password: "postgres",
10  hostname: "localhost",
11  database: "example_dev",
12  stacktrace: true,
13  show_sensitive_data_on_connection_error: true,
14  pool_size: 10
15]