Confused about this Elixir module definition

I’m a noobie in Elixir, I’m confused on whether this module definiftion,

defmodule MusicDB.Repo do
  use Ecto.Repo, 
  otp_app: :music_db,
  adapter: Ecto.Adapters.Postgres
end

needs MusicDB to exists (meaning Repo is the module name)? Or MusicDB.Repo is the module name itself?

1 Like

MusicDB.Repo is the module name, to be exact :"Elixir.MusicDB.Repo" == MusicDB.Repo.

3 Likes