[erlang-questions] [ANN] Asynchronous PostgreSQL driver

Max Lapshin <>
Tue Nov 1 08:16:32 CET 2011


Anton, haven't you looked at modern mysql drivers? Maybe there is some
code to share, like connection pool.

And also: I think it would be really very convenient to have something
like implicit connection:


epgsql:establish_connection(...)

{ok, Result} = epgsql:query("SELECT * FROM articles ..");


Usually you are working with single database and perhaps it would be
good to have API for implicit singleton database connection.
Passing established connection to database through all levels of
business logic may be rather inconvenient sometimes and often
ends in having global variables.



More information about the erlang-questions mailing list