Eonblast/Emysql — pull request #42 by Motiejus (2012-10-16 09:35:33+00:00)
Title: Separate Optional stuff from emysql:add_pool

Logically separate `emysql:add_pool` API to two stages:
1. Connection establishment (connect to the database server)
2. Miscellaneous options (select database, select encoding)

Now `emysql:add_pool/6` takes 6 arguments that are absolutely necessary to
create a pool:
pool name, number of connections, username, password, host, port.

`emysql:add_pool/7` might take a proplist as last argument of optional fields:
database, encoding

This makes adding optional pool settings much easier without adding more
and more arguments to `emysql:add_pool`.

Note: Since current codebase heavily depends on knowledge of encoding,
if encoding is not specified, `'utf8'` is chosen by default (configurable
in `emysql.hrl`).

Later today I hope to put another (small) pull request which adds timezone support and depends on this one.