An open API service indexing awesome lists of open source software.

https://github.com/devinus/epgsql_pool

Pooled epgsql connections using Poolboy
https://github.com/devinus/epgsql_pool

Last synced: 8 months ago
JSON representation

Pooled epgsql connections using Poolboy

Awesome Lists containing this project

README

          

# epgsql_pool

## Usage

### In a supervisor tree

```erlang
Args = [{name, {local, pool1}},
{size, 10},
{max_overflow, 10},
{hostname, "127.0.0.1"},
{database, "db1"},
{username, "db1"},
{password, "abc123"}],
Pool = epgsql_pool:child_spec(pool1, Args),
{ok, {{one_for_one, 10, 10}, [Pool]}}.
```