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
- Host: GitHub
- URL: https://github.com/devinus/epgsql_pool
- Owner: devinus
- Created: 2012-08-09T20:38:02.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-10-19T18:08:22.000Z (over 13 years ago)
- Last Synced: 2025-02-03T23:45:06.786Z (over 1 year ago)
- Language: Erlang
- Size: 240 KB
- Stars: 7
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]}}.
```