Permalink
Browse files

Add README.md

  • Loading branch information...
1 parent 593f842 commit 4a56ce467d0036561ad3533b314ddaa71c89ca3b @devinus committed Aug 9, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 README.md
View
@@ -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.