Hello Elixir friends!
I’m opening a dynamic connection to a database without a Repo using Postgrex.start_link
.
After I do my business with it (eg running some queries with Postgrex.query
) I’d like to release the connection.
I don’t need to keep state or reopen the connection if it crashes or anything, they’re mostly fire and forget queries.
What would be the best way to do it? Using Process.exit
?
I appreciate any help.