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]
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.