Erlang postgresql pool
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.travis.yml
LICENSE
README.md
rebar.config
rebar.config.script
rebar.lock

README.md

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)