Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 946 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 946 Bytes

Build Status Coveralls GitHub tag Hex.pm

epgpool: erlang postgresql pool.


Description

Erlang postgresql pool application based on poolboy and epgsql

Example

test.config

[
 {epgpool, [
  {database_host, "localhost"},
  {database_name, "mydb"},
  {database_user, "test_user"},
  {database_password, "passwd"}
 ]}
]
epgpool:with(fun(C) ->
    {ok, _Columns, [{A}]} = epgpool:squery(C, "select 1"),
    {ok, _Columns, [{A}]} = epgpool:squery(C, "select 2")
end)