Greetings!
Elixir/Phoenix noob here, so it is possible this question may have been answered before, apologies
I am trying to piece together the steps involved in using the Postgrex ltree extension in my Phoenix 1.7 app.
I have looked around and the examples I found were for a package or a custom extension. Github also does not have many examples on how to set this up in a Phoenix app.
Basically, if someone can please spell out the steps involved in Ecto + Postgrex extensions integration for the latest versions of Ecto, Postgrex + Phoenix in 2024, that would be hugely helpful.
I have gathered that there are a few things that need to line up correctly.
So it would be very helpful to understand
- what the migration will look like
- what the schema will look like and
- any other steps involved like
Postgrex.types.define
in loading and using the ltree
extension or other Postgrex extensions in a Phoenix
Thanks in advance!