Skip to content

Commit

Permalink
Add doc about URL config precedence (#4332)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski authored Dec 1, 2023
1 parent 4bd63cc commit 345026b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ecto/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ defmodule Ecto.Repo do
config :my_app, Repo,
url: "ecto://postgres:postgres@localhost/ecto_simple"
The schema can be of any value. The path represents the database name
while options are simply merged in.
The schema can be of any value and the path represents the database name.
The URL will be used generate the relevant Repo configuration values, such
as `:database`, `:username`, `:password`, `:hostname` and `:port`. These
values take precedence over those already specified in the Repo's configuration.
URL can include query parameters to override shared and adapter-specific
options, like `ssl`, `timeout` and `pool_size`. The following example
Expand Down

0 comments on commit 345026b

Please sign in to comment.