How do I use external libraries in an Erlang escript?

Viewed 1023

I want to write a throwaway Erlang script using escript that talks to a PostgreSQL database. How do I reference the epgsql application from my script?

If I simply {ok, C} = pgsql:connect(Host, User, Pass, Opts), then I get undefined function pgsql:connect/4.

2 Answers
Related