Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Torres committed Aug 9, 2012
1 parent 593f842 commit 4a56ce4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
@@ -0,0 +1,17 @@
# 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]}}.
```

0 comments on commit 4a56ce4

Please sign in to comment.