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!

$ iex -S mix phx.server

iex> MyApp.Repo.config()
[
  telemetry_prefix: [:pento, :repo],
  otp_app: :pento,
  timeout: 15000,
  username: "postgres",
  password: "postgres",
  hostname: "localhost",
  database: "example_dev",
  stacktrace: true,
  show_sensitive_data_on_connection_error: true,
  pool_size: 10
]